Use mimalloc for benchmarks on macOS

This commit is contained in:
Loïc Lecrenier 2022-08-10 12:31:09 +02:00
parent 950d8e4c44
commit 8f73251012
6 changed files with 24 additions and 0 deletions

View file

@ -18,6 +18,10 @@ use roaring::RoaringBitmap;
#[global_allocator]
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
#[cfg(target_os = "macos")]
#[global_allocator]
static ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc;
const BENCHMARK_ITERATION: usize = 10;
fn setup_dir(path: impl AsRef<Path>) {