g2log benchmarks

This commit is contained in:
gabime
2014-11-24 02:44:45 +02:00
parent 0926a6e2c3
commit 135d0e221c
5 changed files with 93 additions and 29 deletions

16
bench/g2log-bench.cpp Normal file
View File

@@ -0,0 +1,16 @@
#include "g2logworker.h"
#include "g2log.h"
int main(int, char* argv[])
{
int howmany = 1000000;
g2LogWorker g2log(argv[0], "logs");
g2::initializeLogging(&g2log);
for(int i = 0 ; i < howmany; ++i)
LOG(INFO) << "g2log message # " << i << ": This is some text for your pleasure";
return 0;
}