Thanks to visit codestin.com
Credit goes to lib.rs

224 breaking releases

Uses new Rust 2024

new 0.226.0 Feb 17, 2026
0.224.0 Feb 2, 2026
0.219.0 Dec 20, 2025
0.215.0 Oct 30, 2025
0.7.0 Jul 26, 2021

#143 in Profiling


Used in fewer than 14 crates

MIT license

17KB
177 lines

Benching utility for deno_core op system

Example:

use deno_bench_util::bench_js_sync;
use deno_bench_util::bench_or_profile;
use deno_bench_util::bencher::Bencher;
use deno_bench_util::bencher::benchmark_group;
use deno_core::Extension;

#[op2]
#[number]
fn op_nop() -> usize {
  9
}

fn setup() -> Vec<Extension> {
  vec![Extension {
    name: "my_ext",
    ops: std::borrow::Cow::Borrowed(&[op_nop::DECL]),
  }]
}

fn bench_op_nop(b: &mut Bencher) {
  bench_js_sync(b, r#"Deno.core.ops.op_nop();"#, setup);
}

benchmark_group!(benches, bench_op_nop);
bench_or_profile!(benches);

Dependencies

~96MB
~2M SLoC