Skip to content

Commit 40a02a3

Browse files
committed
Use jemalloc in benchmark
1 parent fb4f427 commit 40a02a3

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

aptos-move/e2e-benchmark/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ rand = { workspace = true }
3131
serde_json = { workspace = true }
3232
tokio = { workspace = true }
3333

34+
[target.'cfg(unix)'.dependencies]
35+
jemallocator = { workspace = true }
36+
3437
[features]
3538
default = []
3639
profiling = ["e2e-move-tests/profiling"]

aptos-move/e2e-benchmark/src/main.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ use rand::{rngs::StdRng, SeedableRng};
1919
use serde_json::json;
2020
use std::{collections::HashMap, process::exit};
2121

22+
#[cfg(unix)]
23+
#[global_allocator]
24+
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
25+
2226
// bump after a bigger test or perf change, so you can easily distinguish runs
2327
// that are on top of this commit
2428
const CODE_PERF_VERSION: &str = "v1";

0 commit comments

Comments
 (0)