@ -69,9 +69,9 @@ int main(int argc, char* argv[])
cout < < " Single thread, " < < format ( howmany ) < < " iterations, auto flush= " < < auto_flush < < endl ;
cout < < " Single thread, " < < format ( howmany ) < < " iterations, auto flush= " < < auto_flush < < endl ;
cout < < " ******************************************************************************* \n " ;
cout < < " ******************************************************************************* \n " ;
auto rotating_st = spdlog : : rotating_logger_st ( " rotating_st " , " logs/ rotating_st" , file_size , rotating_files , auto_flush ) ;
auto rotating_st = spdlog : : rotating_logger_st ( " rotating_st " , " rotating_st.log " , file_size , rotating_files , auto_flush ) ;
bench ( howmany , rotating_st ) ;
bench ( howmany , rotating_st ) ;
auto daily_st = spdlog : : daily_logger_st ( " daily_st " , " logs/ daily_st" , auto_flush ) ;
auto daily_st = spdlog : : daily_logger_st ( " daily_st " , " daily_st.log " , auto_flush ) ;
bench ( howmany , daily_st ) ;
bench ( howmany , daily_st ) ;
bench ( howmany , spdlog : : create < null_sink_st > ( " null_st " ) ) ;
bench ( howmany , spdlog : : create < null_sink_st > ( " null_st " ) ) ;
@ -79,11 +79,11 @@ int main(int argc, char* argv[])
cout < < threads < < " threads sharing same logger, " < < format ( howmany ) < < " iterations, auto_flush= " < < auto_flush < < endl ;
cout < < threads < < " threads sharing same logger, " < < format ( howmany ) < < " iterations, auto_flush= " < < auto_flush < < endl ;
cout < < " ******************************************************************************* \n " ;
cout < < " ******************************************************************************* \n " ;
auto rotating_mt = spdlog : : rotating_logger_mt ( " rotating_mt " , " logs/ rotating_mt" , file_size , rotating_files , auto_flush ) ;
auto rotating_mt = spdlog : : rotating_logger_mt ( " rotating_mt " , " rotating_mt.log " , file_size , rotating_files , auto_flush ) ;
bench_mt ( howmany , rotating_mt , threads ) ;
bench_mt ( howmany , rotating_mt , threads ) ;
auto daily_mt = spdlog : : daily_logger_mt ( " daily_mt " , " logs/ daily_mt" , auto_flush ) ;
auto daily_mt = spdlog : : daily_logger_mt ( " daily_mt " , " daily_mt.log " , auto_flush ) ;
bench_mt ( howmany , daily_mt , threads ) ;
bench_mt ( howmany , daily_mt , threads ) ;
bench ( howmany , spdlog : : create < null_sink_st > ( " null_mt " ) ) ;
bench ( howmany , spdlog : : create < null_sink_st > ( " null_mt " ) ) ;
@ -96,7 +96,7 @@ int main(int argc, char* argv[])
for ( int i = 0 ; i < 3 ; + + i )
for ( int i = 0 ; i < 3 ; + + i )
{
{
auto as = spdlog : : daily_logger_st ( " as " , " logs/ daily_async" , auto_flush ) ;
auto as = spdlog : : daily_logger_st ( " as " , " daily_async.log " , auto_flush ) ;
bench_mt ( howmany , as , threads ) ;
bench_mt ( howmany , as , threads ) ;
spdlog : : drop ( " as " ) ;
spdlog : : drop ( " as " ) ;
}
}