Skip to content

Commit 7750e36

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

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/benchmark.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v4
1717
with:
18+
lfs: true
1819
submodules: recursive
1920
- name: Install dependencies
2021
run: |

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)