diff --git a/charabia/Cargo.toml b/charabia/Cargo.toml index af14379..ef7d0b9 100644 --- a/charabia/Cargo.toml +++ b/charabia/Cargo.toml @@ -79,10 +79,9 @@ german-segmentation = [] [dev-dependencies] criterion = "0.5" -jemallocator = "0.5.4" quickcheck = "1" quickcheck_macros = "1" - +mimalloc = "0.1.43" [[bench]] name = "bench" diff --git a/charabia/benches/bench.rs b/charabia/benches/bench.rs index 85aa6e3..7f2b17f 100644 --- a/charabia/benches/bench.rs +++ b/charabia/benches/bench.rs @@ -1,8 +1,9 @@ use charabia::{Language, Script, Segment, Tokenize}; use criterion::{black_box, criterion_group, criterion_main, BenchmarkId, Criterion}; +use mimalloc::MiMalloc; #[global_allocator] -static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc; +static GLOBAL: MiMalloc = MiMalloc; static DATA_SET: &[((usize, Script, Language), &str)] = &[ // short texts (~130 bytes)