Skip to content

Commit f0835a8

Browse files
authored
Merge pull request #144 from fitzgen/faster-slower-wording
Always use "faster" in effect size summary
2 parents 00b9d2d + a59b685 commit f0835a8

2 files changed

Lines changed: 11 additions & 21 deletions

File tree

crates/cli/src/benchmark.rs

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -463,14 +463,9 @@ fn display_effect_size(
463463
let ratio_ci = effect_size.half_width_confidence_interval / effect_size.a_mean;
464464
writeln!(
465465
output_file,
466-
" {a_engine} is {ratio_min:.2}x to {ratio_max:.2}x {faster_slower} than {b_engine}!",
466+
" {a_engine} is {ratio_min:.2}x to {ratio_max:.2}x faster than {b_engine}!",
467467
a_engine = a_engine,
468468
b_engine = b_engine,
469-
faster_slower = if effect_size.a_mean < effect_size.b_mean {
470-
"FASTER"
471-
} else {
472-
"SLOWER"
473-
},
474469
ratio_min = ratio - ratio_ci,
475470
ratio_max = ratio + ratio_ci,
476471
)?;
@@ -479,14 +474,9 @@ fn display_effect_size(
479474

480475
writeln!(
481476
output_file,
482-
" {b_engine} is {ratio_min:.2}x to {ratio_max:.2}x {faster_slower} than {a_engine}!",
477+
" {b_engine} is {ratio_min:.2}x to {ratio_max:.2}x faster than {a_engine}!",
483478
a_engine = a_engine,
484479
b_engine = b_engine,
485-
faster_slower = if effect_size.b_mean < effect_size.a_mean {
486-
"FASTER"
487-
} else {
488-
"SLOWER"
489-
},
490480
ratio_min = ratio - ratio_ci,
491481
ratio_max = ratio + ratio_ci,
492482
)?;
@@ -644,8 +634,8 @@ compilation :: cycles :: benchmarks-next/pulldown-cmark/benchmark.wasm
644634
645635
Δ = 231879938.88 ± 5920528.32 (confidence = 95%)
646636
647-
new_backend.so is 0.75x to 0.76x SLOWER than old_backend.so!
648-
old_backend.so is 1.32x to 1.34x FASTER than new_backend.so!
637+
new_backend.so is 0.75x to 0.76x faster than old_backend.so!
638+
old_backend.so is 1.32x to 1.34x faster than new_backend.so!
649639
650640
[889384088 935555419.78 1045075629] new_backend.so
651641
[688072501 703675480.90 826253416] old_backend.so
@@ -654,8 +644,8 @@ compilation :: nanoseconds :: benchmarks-next/pulldown-cmark/benchmark.wasm
654644
655645
Δ = 79845660.57 ± 2038688.33 (confidence = 95%)
656646
657-
new_backend.so is 0.75x to 0.76x SLOWER than old_backend.so!
658-
old_backend.so is 1.32x to 1.34x FASTER than new_backend.so!
647+
new_backend.so is 0.75x to 0.76x faster than old_backend.so!
648+
old_backend.so is 1.32x to 1.34x faster than new_backend.so!
659649
660650
[306252409 322151144.14 359863566] new_backend.so
661651
[236932712 242305483.57 284514295] old_backend.so
@@ -664,8 +654,8 @@ execution :: nanoseconds :: benchmarks-next/pulldown-cmark/benchmark.wasm
664654
665655
Δ = 467229.61 ± 57708.35 (confidence = 95%)
666656
667-
new_backend.so is 1.13x to 1.16x FASTER than old_backend.so!
668-
old_backend.so is 0.86x to 0.89x SLOWER than new_backend.so!
657+
new_backend.so is 1.13x to 1.16x faster than old_backend.so!
658+
old_backend.so is 0.86x to 0.89x faster than new_backend.so!
669659
670660
[3061587 3240065.98 4419514] new_backend.so
671661
[3510983 3707295.59 5811112] old_backend.so
@@ -674,8 +664,8 @@ execution :: cycles :: benchmarks-next/pulldown-cmark/benchmark.wasm
674664
675665
Δ = 1356859.60 ± 167590.00 (confidence = 95%)
676666
677-
new_backend.so is 1.13x to 1.16x FASTER than old_backend.so!
678-
old_backend.so is 0.86x to 0.89x SLOWER than new_backend.so!
667+
new_backend.so is 1.13x to 1.16x faster than old_backend.so!
668+
old_backend.so is 0.86x to 0.89x faster than new_backend.so!
679669
680670
[8891120 9409439.69 12834660] new_backend.so
681671
[10196192 10766299.29 16875960] old_backend.so

crates/data/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ authors = ["Sightglass Project Developers"]
55
edition = "2018"
66

77
[dependencies]
8-
anyhow = ""
8+
anyhow = "1.0.40"
99
csv = "1.1.5"
1010
serde = { version = "1.0.118", features = ["derive", "rc"] }
1111
serde_json = "1.0.60"

0 commit comments

Comments
 (0)