diff --git a/Cargo.lock b/Cargo.lock index a04c3edecc..69c752c8c8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1373,6 +1373,7 @@ name = "hyper_threading" version = "0.9.2" dependencies = [ "cairo-vm", + "mimalloc", "rayon", "tracing", ] diff --git a/examples/hyper_threading/Cargo.toml b/examples/hyper_threading/Cargo.toml index e518c2bdc0..48b7aab996 100644 --- a/examples/hyper_threading/Cargo.toml +++ b/examples/hyper_threading/Cargo.toml @@ -12,3 +12,11 @@ keywords.workspace = true cairo-vm = { workspace = true } rayon = "1.9.0" tracing = "0.1.40" +mimalloc = { version = "0.1.37", default-features = false, optional = true } + + + +[features] +default = ["with_mimalloc"] +with_mimalloc = ["cairo-vm/with_mimalloc", "mimalloc"] +lambdaworks-felt = ["cairo-vm/lambdaworks-felt"] diff --git a/hyper-threading.sh b/examples/hyper_threading/hyper-threading.sh similarity index 90% rename from hyper-threading.sh rename to examples/hyper_threading/hyper-threading.sh index 6a7ff4d102..7cdcc4ebb9 100644 --- a/hyper-threading.sh +++ b/examples/hyper_threading/hyper-threading.sh @@ -1,7 +1,7 @@ #!/bin/bash thread_counts=(1 2 4 5 6 7 8 9 10 11 12 13 14 16 32 ) -binary="target/release/hyper_threading" +binary="../../target/release/hyper_threading" cmd="hyperfine -r 1"