Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upPerformance regression on Windows due to removal of jemalloc #36328
Comments
This comment has been minimized.
This comment has been minimized.
|
Seems to be within the error bars on OSX. |
brson
added
I-slow
O-windows
regression-from-stable-to-stable
labels
Sep 7, 2016
This comment has been minimized.
This comment has been minimized.
|
I found that it's my dependency that has the performance regression: https://github.com/iopq/monoid running the bench on 2016-01-20 gives test bench_cowstring ... bench: 71 ns/iter (+/- 4) running the same thing on 2016-01-21 gives test bench_cowstring ... bench: 130 ns/iter (+/- 5) the performance hasn't recovered since all these tests are doing is string concatenation
|
This comment has been minimized.
This comment has been minimized.
|
The reduced test case does also not reproduce the problem on OS X. Looking at the changes, this regression may have been caused by disabling jemalloc on |
This comment has been minimized.
This comment has been minimized.
|
This does look like it's because jemalloc was disabled. On the 2016-09-08 nightly for
Adding
Compared with the 2016-01-20 nightly:
And the 2016-01-21 nightly:
|
brson
added
A-allocators
P-low
I-nominated
T-libs
labels
Sep 13, 2016
This comment has been minimized.
This comment has been minimized.
|
Libs team needs to explain the path forward for re-gaining this perf loss. We're unlikely to add jemalloc back by default here. |
brson
removed
the
I-nominated
label
Oct 4, 2016
This comment has been minimized.
This comment has been minimized.
|
Right now the intended path forward to regain this perf is by stabilizing the global allocator API, and publishing the jemalloc crate to crates.io. |
brson
changed the title
Performance regression on Windows
Performance regression on Windows due to removal of jemalloc
Oct 6, 2016
This comment has been minimized.
This comment has been minimized.
|
We're unlikely to really do anything to fix this, so I'm going to close this in favor of #27389. It's highly likely that all programs will start to link to jemalloc by default once we stabilize that feature. |
iopq commentedSep 7, 2016
•
edited
https://bitbucket.org/iopq/fizzbuzz-in-rust
Steps to reproduce:
rustup install nightly-2016-01-20cargo cleanrustup run nightly-2016-01-20 cargo benchobserve 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)
rustup install nightly-2016-01-21cargo cleanrustup run nightly-2016-01-21 cargo benchobserve 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
test bench_cowbuzz ... bench: 996 ns/iter (+/- 31)
test bench_fizzbuzz ... bench: 1,420 ns/iter (+/- 50)