14 breaking releases

new 0.15.0 Oct 12, 2021
0.13.0 Sep 28, 2021
0.7.0 Jul 26, 2021

#17 in #deno

Download history 3/week @ 2021-06-25 3/week @ 2021-07-02 15/week @ 2021-07-09 28/week @ 2021-07-16 20/week @ 2021-07-23 28/week @ 2021-07-30 25/week @ 2021-08-06 46/week @ 2021-08-13 26/week @ 2021-08-20 3/week @ 2021-08-27 1/week @ 2021-09-03 22/week @ 2021-09-10 32/week @ 2021-09-17 33/week @ 2021-09-24 31/week @ 2021-10-01 37/week @ 2021-10-08

100 downloads per month
Used in 2 crates

MIT license

4.5MB
10K SLoC

Rust 7.5K SLoC // 0.1% comments TypeScript 1K SLoC // 0.1% comments JavaScript 863 SLoC // 0.1% comments

Benching utility for deno_core op system

Example:

use deno_bench_util::bench_or_profile;
use deno_bench_util::bencher::{benchmark_group, Bencher};
use deno_bench_util::bench_js_sync};

use deno_core::op_sync;
use deno_core::serialize_op_result;
use deno_core::JsRuntime;
use deno_core::Op;
use deno_core::OpState;

fn setup(runtime: &mut JsRuntime) {
  runtime.register_op("nop", |state, _| {
    Op::Sync(serialize_op_result(Ok(9), state))
  });
  runtime.sync_ops_cache();
}

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

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

Dependencies

~54MB
~1M SLoC