From dd998b935f512162d93761d89dab7e14a23fe5d7 Mon Sep 17 00:00:00 2001 From: Asuna Date: Tue, 8 Oct 2024 04:45:07 +0800 Subject: [PATCH] Remove accidentally added comments in benchmark `fast_log` --- .../fast_log/2_rotating_file_size_async.rs | 20 ------------------- .../fast_log/3_rotating_daily_async.rs | 12 ----------- 2 files changed, 32 deletions(-) diff --git a/spdlog/benches/fast_log/2_rotating_file_size_async.rs b/spdlog/benches/fast_log/2_rotating_file_size_async.rs index 0e5c9d1..408ec49 100644 --- a/spdlog/benches/fast_log/2_rotating_file_size_async.rs +++ b/spdlog/benches/fast_log/2_rotating_file_size_async.rs @@ -26,23 +26,3 @@ fn bench_3_rotating_file_size_async(bencher: &mut Bencher) { bencher.iter(|| info!(bench_log_message!())) } - -// #[bench] -// fn bench_4_rotating_daily_async(bencher: &mut Bencher) { -// bench_any( -// bencher, -// tracing_appender::rolling::daily(&*LOGS_PATH, "rotating_daily.log"), -// ); -// } -// -// #[bench] -// fn bench_5_level_off(bencher: &mut Bencher) { -// let _guard = tracing::dispatcher::set_default( -// &tracing_subscriber::fmt() -// .with_max_level(LevelFilter::OFF) -// .finish() -// .into(), -// ); -// -// bencher.iter(|| info!(bench_log_message!())) -// } diff --git a/spdlog/benches/fast_log/3_rotating_daily_async.rs b/spdlog/benches/fast_log/3_rotating_daily_async.rs index 3c359e1..68f8235 100644 --- a/spdlog/benches/fast_log/3_rotating_daily_async.rs +++ b/spdlog/benches/fast_log/3_rotating_daily_async.rs @@ -37,15 +37,3 @@ fn bench_4_rotating_daily_async(bencher: &mut Bencher) { bencher.iter(|| info!(bench_log_message!())) } - -// #[bench] -// fn bench_5_level_off(bencher: &mut Bencher) { -// let _guard = tracing::dispatcher::set_default( -// &tracing_subscriber::fmt() -// .with_max_level(LevelFilter::OFF) -// .finish() -// .into(), -// ); -// -// bencher.iter(|| info!(bench_log_message!())) -// }