mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-28 17:19:34 +08:00
clang format
This commit is contained in:
@@ -41,9 +41,11 @@ int main(int, char *[])
|
||||
try
|
||||
{
|
||||
|
||||
cout << "*******************************************************************************\n";
|
||||
cout << "******************************************************************"
|
||||
"*************\n";
|
||||
cout << "Single thread\n";
|
||||
cout << "*******************************************************************************\n";
|
||||
cout << "******************************************************************"
|
||||
"*************\n";
|
||||
|
||||
auto basic_st = spdlog::basic_logger_mt("basic_st", "logs/basic_st.log", true);
|
||||
bench(howmany, basic_st);
|
||||
@@ -56,9 +58,11 @@ int main(int, char *[])
|
||||
|
||||
bench(howmany, spdlog::create<null_sink_st>("null_st"));
|
||||
|
||||
cout << "\n*******************************************************************************\n";
|
||||
cout << "\n****************************************************************"
|
||||
"***************\n";
|
||||
cout << threads << " threads sharing same logger\n";
|
||||
cout << "*******************************************************************************\n";
|
||||
cout << "******************************************************************"
|
||||
"*************\n";
|
||||
|
||||
auto basic_mt = spdlog::basic_logger_mt("basic_mt", "logs/basic_mt.log", true);
|
||||
bench_mt(howmany, basic_mt, threads);
|
||||
@@ -70,9 +74,11 @@ int main(int, char *[])
|
||||
bench_mt(howmany, daily_mt, threads);
|
||||
bench(howmany, spdlog::create<null_sink_st>("null_mt"));
|
||||
|
||||
cout << "\n*******************************************************************************\n";
|
||||
cout << "\n****************************************************************"
|
||||
"***************\n";
|
||||
cout << "async logging.. " << threads << " threads sharing same logger\n";
|
||||
cout << "*******************************************************************************\n";
|
||||
cout << "******************************************************************"
|
||||
"*************\n";
|
||||
|
||||
for (int i = 0; i < 3; ++i)
|
||||
{
|
||||
|
Reference in New Issue
Block a user