mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 01:29:35 +08:00
easylogging bench
This commit is contained in:
16
bench/easylogging-bench.cpp
Normal file
16
bench/easylogging-bench.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#include "easylogging++.h"
|
||||
|
||||
_INITIALIZE_EASYLOGGINGPP
|
||||
|
||||
int main(int, char* [])
|
||||
{
|
||||
int howmany = 1000000;
|
||||
|
||||
// Load configuration from file
|
||||
el::Configurations conf("easyl.conf");
|
||||
el::Loggers::reconfigureLogger("default", conf);
|
||||
|
||||
for(int i = 0 ; i < howmany; ++i)
|
||||
LOG(INFO) << "easylog message #" << i << ": This is some text for your pleasure";
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user