Skip to content

Commit

Permalink
use jemalloc
Browse files Browse the repository at this point in the history
  • Loading branch information
nekomoto911 committed Oct 14, 2024
1 parent 405f7b3 commit a707bb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 3 additions & 0 deletions benches/gigagas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<TxEnv>) {
let mut env = Env::default();
env.cfg.chain_id = NamedChain::Mainnet.into();
Expand Down

0 comments on commit a707bb2

Please sign in to comment.