forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
3 changed files
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
version = 3 | ||
|
||
[[package]] | ||
name = "invalidate" | ||
name = "range-iteration" | ||
version = "0.1.0" |
2 changes: 1 addition & 1 deletion
2
...ri/bench-cargo-miri/invalidate/Cargo.toml → ...nch-cargo-miri/range-iteration/Cargo.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[package] | ||
name = "invalidate" | ||
name = "range-iteration" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
|
3 changes: 2 additions & 1 deletion
3
...i/bench-cargo-miri/invalidate/src/main.rs → ...ch-cargo-miri/range-iteration/src/main.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
//! This generates a lot of work for the AllocId part of the GC. | ||
fn main() { | ||
// The end of the range is just chosen to make the benchmark run for a few seconds. | ||
for _ in 0..200_000 {} | ||
for _ in 0..50_000 {} | ||
} |