benchmarksgame-rs icon indicating copy to clipboard operation
benchmarksgame-rs copied to clipboard

try using the system allocator

Open llogiq opened this issue 8 years ago • 3 comments

On r/rust, Alex Chrichton suggested we can use the system allocator.

This would presumably rid us of the 6MB upfront allocation of jemalloc, and make Rust look leaner in the benchmarks, so I'd like to benchmark this once I get to my PC.

llogiq avatar Oct 17 '15 10:10 llogiq

Note: This only works on nightly, so it doesn't work for us. However, configuring jemalloc might. I'm looking into that next.

llogiq avatar Oct 19 '15 06:10 llogiq

With https://github.com/rust-lang/rust/pull/51241/ available since two releases (or three releases in few days) this should be considered again. If machine running the benchmarks has fairly recent glibc (at least 2.26) this could bring nice speedup.

mati865 avatar Sep 10 '18 16:09 mati865

Apart from the binary_trees benchmark, which uses an arena anyway, none of the benchmarks allocate enough to make any difference, apart from reducing the base profile a bit.

llogiq avatar Sep 10 '18 19:09 llogiq