Skip to content

Commit c5edf1b

Browse files
committed
Bump benchmark dependencies to the latest
1 parent 6c930d7 commit c5edf1b

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

spdlog/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ paste = "1.0.14"
7575
trybuild = "1.0.90"
7676

7777
# [bench-dependencies]
78-
log = "=0.4.21"
78+
log = "=0.4.22"
7979
slog = "=2.7.0"
8080
sloggers = "=2.2.0"
8181
log4rs = "=1.3.0"
82-
fast_log = "=1.6.16"
82+
fast_log = "=1.7.4"
8383
fern = "=0.6.2"
84-
flexi_logger = "=0.28.3"
84+
flexi_logger = "=0.29.2"
8585
ftlog = "=0.2.14"
8686
tracing = "=0.1.40"
8787
tracing-subscriber = "=0.3.18"

spdlog/benches/fast_log/3_rotating_daily_async.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ use std::time::Duration;
1010
use fast_log::{
1111
config::Config,
1212
consts::LogSize,
13-
plugin::{file_split::KeepType, packer::LogPacker},
13+
plugin::{
14+
file_split::{KeepType, Rolling, RollingType},
15+
packer::LogPacker,
16+
},
1417
};
1518
use log::info;
1619
use test::Bencher;
@@ -24,7 +27,8 @@ fn bench_4_rotating_daily_async(bencher: &mut Bencher) {
2427
.join("rotating_daily_async.log")
2528
.to_str()
2629
.unwrap(),
27-
LogSize::EB(1), // There is no unlimited option, so we use a large size
30+
// There is no unlimited option, so we use a large size
31+
Rolling::new(RollingType::BySize(LogSize::EB(1))),
2832
KeepType::KeepTime(Duration::from_secs(24 * 3600)),
2933
LogPacker {},
3034
)

0 commit comments

Comments
 (0)