Skip to content

Commit f82f361

Browse files
committed
Also run bench functions in release
1 parent 175b45d commit f82f361

13 files changed

+1289
-89
lines changed

ci/run.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,14 @@ else
2626
run="cargo test --manifest-path testcrate/Cargo.toml --no-fail-fast --target $target"
2727
$run
2828
$run --release
29-
$run --benches
3029
$run --features c
3130
$run --features c --release
3231
$run --features no-asm
3332
$run --features no-asm --release
3433
$run --features no-f16-f128
3534
$run --features no-f16-f128 --release
35+
$run --benches
36+
$run --benches --release
3637
fi
3738

3839
if [ "${TEST_VERBATIM:-}" = "1" ]; then

testcrate/Cargo.toml

+4-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ default-features = false
2222
features = ["public-test-deps"]
2323

2424
[dev-dependencies]
25-
criterion = { version = "0.5.1", default-features = false }
25+
criterion = { version = "0.5.1", default-features = false, features = ["cargo_bench_support"] }
2626
paste = "1.0.15"
2727

2828
[target.'cfg(all(target_arch = "arm", not(any(target_env = "gnu", target_env = "musl")), target_os = "linux"))'.dev-dependencies]
@@ -45,6 +45,9 @@ no-sys-f16-f128-convert = []
4545
# Skip tests that rely on f16 symbols being available on the system
4646
no-sys-f16 = []
4747

48+
# Enable report generation without bringing in more dependencies by default
49+
benchmarking-reports = ["criterion/plotters", "criterion/html_reports"]
50+
4851
[[bench]]
4952
name = "float_add"
5053
harness = false

0 commit comments

Comments
 (0)