Skip to content

Commit a5c291e

Browse files
committed
test(rsjudge-judger): ✅ use logarithmic scale
1 parent 1820a95 commit a5c291e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crates/rsjudge-judger/benches/default_comparer.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
use std::{hint::black_box, io, path::Path};
22

33
use criterion::{
4-
criterion_group, criterion_main, BenchmarkId, Criterion, SamplingMode, Throughput,
4+
criterion_group, criterion_main, AxisScale, BenchmarkId, Criterion, PlotConfiguration,
5+
Throughput,
56
};
67
use rsjudge_judger::{comparer::DefaultComparer, Comparer as _};
78
use tokio::{fs::File, runtime::Runtime};
@@ -20,7 +21,7 @@ fn bench(c: &mut Criterion) {
2021
];
2122

2223
let mut group = c.benchmark_group("DefaultComparer");
23-
group.sampling_mode(SamplingMode::Flat);
24+
group.plot_config(PlotConfiguration::default().summary_scale(AxisScale::Logarithmic));
2425
for (size_str, bytes) in [
2526
("1k", KILO),
2627
("16k", 16 * KILO),

0 commit comments

Comments
 (0)