Skip to content

Commit

Permalink
test(rsjudge-judger): ✅ use logarithmic scale
Browse files Browse the repository at this point in the history
  • Loading branch information
Jisu-Woniu committed Jun 10, 2024
1 parent 1820a95 commit a5c291e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/rsjudge-judger/benches/default_comparer.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
use std::{hint::black_box, io, path::Path};

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

let mut group = c.benchmark_group("DefaultComparer");
group.sampling_mode(SamplingMode::Flat);
group.plot_config(PlotConfiguration::default().summary_scale(AxisScale::Logarithmic));
for (size_str, bytes) in [
("1k", KILO),
("16k", 16 * KILO),
Expand Down

0 comments on commit a5c291e

Please sign in to comment.