glog bench

This commit is contained in:
gabime
2014-11-23 00:24:46 +02:00
parent ece27ac952
commit 6f550c3271
6 changed files with 88 additions and 8 deletions

17
bench/glog-bench.cpp Normal file
View File

@@ -0,0 +1,17 @@
#include "glog/logging.h"
int main(int, char* argv[])
{
int howmany = 1000000;
FLAGS_logtostderr = 0;
FLAGS_log_dir = "logs";
google::InitGoogleLogging(argv[0]);
for(int i = 0 ; i < howmany; ++i)
LOG(INFO) << "glog message # " << i;
return 0;
}