mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 01:29:35 +08:00
glog bench
This commit is contained in:
17
bench/glog-bench.cpp
Normal file
17
bench/glog-bench.cpp
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user