Skip to content

Commit

Permalink
Bump benchmark dependencies to the latest
Browse files Browse the repository at this point in the history
  • Loading branch information
SpriteOvO committed Oct 7, 2024
1 parent 6c930d7 commit c5edf1b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions spdlog/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ paste = "1.0.14"
trybuild = "1.0.90"

# [bench-dependencies]
log = "=0.4.21"
log = "=0.4.22"
slog = "=2.7.0"
sloggers = "=2.2.0"
log4rs = "=1.3.0"
fast_log = "=1.6.16"
fast_log = "=1.7.4"
fern = "=0.6.2"
flexi_logger = "=0.28.3"
flexi_logger = "=0.29.2"
ftlog = "=0.2.14"
tracing = "=0.1.40"
tracing-subscriber = "=0.3.18"
Expand Down
8 changes: 6 additions & 2 deletions spdlog/benches/fast_log/3_rotating_daily_async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ use std::time::Duration;
use fast_log::{
config::Config,
consts::LogSize,
plugin::{file_split::KeepType, packer::LogPacker},
plugin::{
file_split::{KeepType, Rolling, RollingType},
packer::LogPacker,
},
};
use log::info;
use test::Bencher;
Expand All @@ -24,7 +27,8 @@ fn bench_4_rotating_daily_async(bencher: &mut Bencher) {
.join("rotating_daily_async.log")
.to_str()
.unwrap(),
LogSize::EB(1), // There is no unlimited option, so we use a large size
// There is no unlimited option, so we use a large size
Rolling::new(RollingType::BySize(LogSize::EB(1))),
KeepType::KeepTime(Duration::from_secs(24 * 3600)),
LogPacker {},
)
Expand Down

0 comments on commit c5edf1b

Please sign in to comment.