Commit 04549b87 authored by gabime's avatar gabime

increased fast_os size to 192

parent 4b3e5b3e
...@@ -29,14 +29,14 @@ int main(int argc, char* argv[]) ...@@ -29,14 +29,14 @@ int main(int argc, char* argv[])
cout_logger.info() << "Hello cout logger!"; cout_logger.info() << "Hello cout logger!";
logger my_logger ("my_logger", {null_sink}); logger my_logger ("my_logger", {null_sink});
std::string s(100, '0');
const unsigned int howmany = 5000000;
auto start = system_clock::now(); auto start = system_clock::now();
const unsigned int howmany = 5000000;
for(unsigned int i = 0; i < howmany ; i++) for(unsigned int i = 0; i < howmany ; i++)
my_logger.info() << "Hello logger " << i; my_logger.info() << s;
//my_logger.info() << "Hello logger " << i;;
//async->shutdown(seconds(3)); //async->shutdown(seconds(3));
auto delta = system_clock::now() - start; auto delta = system_clock::now() - start;
......
...@@ -71,7 +71,7 @@ protected: ...@@ -71,7 +71,7 @@ protected:
} }
private: private:
//std::string _str; //std::string _str;
fast_buf<128> _fastbuf; fast_buf<192> _fastbuf;
}; };
class fast_oss:public std::ostream class fast_oss:public std::ostream
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment