summaryrefslogtreecommitdiff
path: root/cli/ops/bench.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/ops/bench.rs')
-rw-r--r--cli/ops/bench.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/cli/ops/bench.rs b/cli/ops/bench.rs
index f569a8cbb..0f7509751 100644
--- a/cli/ops/bench.rs
+++ b/cli/ops/bench.rs
@@ -101,6 +101,8 @@ struct BenchInfo<'s> {
group: Option<String>,
ignore: bool,
only: bool,
+ #[serde(default)]
+ warmup: bool,
}
#[derive(Debug, Serialize)]
@@ -128,6 +130,7 @@ fn op_register_bench<'a>(
group: info.group,
ignore: info.ignore,
only: info.only,
+ warmup: info.warmup,
};
let function: v8::Local<v8::Function> = info.function.v8_value.try_into()?;
let function = v8::Global::new(scope, function);