Skip to content

Performance regression on Windows due to removal of jemalloc #36328

Closed
@iopq

Description

@iopq

https://bitbucket.org/iopq/fizzbuzz-in-rust

Steps to reproduce:

  1. 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)

  1. 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

  1. 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

No one assigned

    Labels

    A-allocatorsArea: Custom and system allocatorsI-slowIssue: Problems and improvements with respect to performance of generated code.O-windowsOperating system: WindowsP-lowLow priorityT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions