Skip to content

Commit 850447d

Browse files
committed
Auto merge of #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 #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 3e6847c + b3481a4 commit 850447d

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bench-cargo-miri/invalidate/Cargo.toml renamed to 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

Lines changed: 2 additions & 1 deletion
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)