diff --git a/Cargo.toml b/Cargo.toml index 7b6f1ce..0c7b0df 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -34,6 +34,7 @@ rayon = "1.10.0" revme = "0.10.3" fastrace = { version = "0.7", features = ["enable"] } fastrace-jaeger = "0.7" +tikv-jemallocator = "0.5.0" [lints] rust.missing_debug_implementations = "warn" diff --git a/benches/gigagas.rs b/benches/gigagas.rs index 7e5372b..29cefe2 100644 --- a/benches/gigagas.rs +++ b/benches/gigagas.rs @@ -21,6 +21,9 @@ pub mod erc20; const GIGA_GAS: u64 = 1_000_000_000; +#[global_allocator] +static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc; + fn bench(c: &mut Criterion, name: &str, db: InMemoryDB, txs: Vec) { let mut env = Env::default(); env.cfg.chain_id = NamedChain::Mainnet.into();