Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,4 @@ lto = "fat"
[profile.bench]
# Required for gungraun
debug = true
strip = false
18 changes: 9 additions & 9 deletions builtins-test/benches/mem_icount.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ mod mcpy {
],
setup = setup,
)]
fn bench((len, mut dst, src): (usize, AlignedSlice, AlignedSlice)) {
fn bench_cpy((len, mut dst, src): (usize, AlignedSlice, AlignedSlice)) {
unsafe {
black_box(memcpy(
black_box(dst.as_mut_ptr()),
Expand All @@ -118,7 +118,7 @@ mod mcpy {
}
}

library_benchmark_group!(name = memcpy; benchmarks = bench);
library_benchmark_group!(name = memcpy; benchmarks = bench_cpy);
}

mod mset {
Expand Down Expand Up @@ -157,7 +157,7 @@ mod mset {
],
setup = setup,
)]
fn bench((len, mut dst): (usize, AlignedSlice)) {
fn bench_set((len, mut dst): (usize, AlignedSlice)) {
unsafe {
black_box(memset(
black_box(dst.as_mut_ptr()),
Expand All @@ -167,7 +167,7 @@ mod mset {
}
}

library_benchmark_group!(name = memset; benchmarks = bench);
library_benchmark_group!(name = memset; benchmarks = bench_set);
}

mod mcmp {
Expand Down Expand Up @@ -225,7 +225,7 @@ mod mcmp {
],
setup = setup
)]
fn bench((len, mut dst, src): (usize, AlignedSlice, AlignedSlice)) {
fn bench_cmp((len, mut dst, src): (usize, AlignedSlice, AlignedSlice)) {
unsafe {
black_box(memcmp(
black_box(dst.as_mut_ptr()),
Expand All @@ -235,7 +235,7 @@ mod mcmp {
}
}

library_benchmark_group!(name = memcmp; benchmarks = bench);
library_benchmark_group!(name = memcmp; benchmarks = bench_cmp);
}

mod mmove {
Expand Down Expand Up @@ -384,7 +384,7 @@ mod mmove {
],
setup = setup_forward
)]
fn forward((len, spread, mut buf): (usize, usize, AlignedSlice)) {
fn forward_move((len, spread, mut buf): (usize, usize, AlignedSlice)) {
// Test moving from the start of the buffer toward the end
unsafe {
black_box(memmove(
Expand Down Expand Up @@ -478,7 +478,7 @@ mod mmove {
],
setup = setup_backward
)]
fn backward((len, spread, mut buf): (usize, usize, AlignedSlice)) {
fn backward_move((len, spread, mut buf): (usize, usize, AlignedSlice)) {
// Test moving from the end of the buffer toward the start
unsafe {
black_box(memmove(
Expand All @@ -489,7 +489,7 @@ mod mmove {
}
}

library_benchmark_group!(name = memmove; benchmarks = forward, backward);
library_benchmark_group!(name = memmove; benchmarks = forward_move, backward_move);
}

use mcmp::memcmp;
Expand Down
2 changes: 1 addition & 1 deletion ci/bench-icount.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ tag="$(echo "$target" | cut -d'-' -f1)"
# Run benchmarks once
function run_icount_benchmarks() {
cargo_args=(
"--bench" "icount"
"--bench" "*icount*"
"--no-default-features"
"--features" "unstable,unstable-float,icount"
)
Expand Down
Loading