Closed
Description
https://bitbucket.org/iopq/fizzbuzz-in-rust
Steps to reproduce:
- Compile this with
rustup install nightly-2016-01-20
cargo clean
rustup run nightly-2016-01-20 cargo bench
observe that you get nice performance:
running 2 tests
test bench_cowbuzz ... bench: 891 ns/iter (+/- 72)
test bench_fizzbuzz ... bench: 1,125 ns/iter (+/- 40)
- Compile this with
rustup install nightly-2016-01-21
cargo clean
rustup run nightly-2016-01-21 cargo bench
observe that you get a performance regression:
test bench_cowbuzz ... bench: 1,071 ns/iter (+/- 42)
test bench_fizzbuzz ... bench: 1,542 ns/iter (+/- 101)
rustc -vV gives
commit-hash: 7dce32e
commit-date: 2016-01-20
host: i686-pc-windows-gnu
release: 1.7.0-nightly
- The performance is worse in every version including the current nightly, 2016-06-12 gives
test bench_cowbuzz ... bench: 996 ns/iter (+/- 31)
test bench_fizzbuzz ... bench: 1,420 ns/iter (+/- 50)
Metadata
Metadata
Assignees
Labels
Area: Custom and system allocatorsIssue: Problems and improvements with respect to performance of generated code.Operating system: WindowsLow priorityRelevant to the library API team, which will review and decide on the PR/issue.Performance or correctness regression from one stable version to another.