Skip to content

Commit b648a9a

Browse files
committed
Auto merge of rust-lang#3387 - RalfJung:bench, r=RalfJung
make 'invalidate' benchmark shorter This is currently by far the slowest benchmark in our suite, taking >9s, when the second slowest takes 2.7s. So let's speed this up to 2.3s, making it still the second-slowest in the benchmark suite. `@saethlin` any objections? Also, why is this called "invalidate"? It got added in rust-lang/miri#3083 but I can't figure out the point of that name even after looking at the PR.^^ There should be a comment in the benchmark explaining what it is testing.
2 parents d7864d2 + 311024c commit b648a9a

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/tools/miri/bench-cargo-miri/invalidate/Cargo.lock renamed to src/tools/miri/bench-cargo-miri/range-iteration/Cargo.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
version = 3
44

55
[[package]]
6-
name = "invalidate"
6+
name = "range-iteration"
77
version = "0.1.0"

src/tools/miri/bench-cargo-miri/invalidate/Cargo.toml renamed to src/tools/miri/bench-cargo-miri/range-iteration/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "invalidate"
2+
name = "range-iteration"
33
version = "0.1.0"
44
edition = "2021"
55

Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1+
//! This generates a lot of work for the AllocId part of the GC.
12
fn main() {
23
// The end of the range is just chosen to make the benchmark run for a few seconds.
3-
for _ in 0..200_000 {}
4+
for _ in 0..50_000 {}
45
}

0 commit comments

Comments
 (0)