Skip to content

Commit

Permalink
bench(op_baseline): measure Deno.core.isProxy() (denoland#12347)
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronO authored Oct 6, 2021
1 parent 4e3068b commit c4b995f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion bench_util/benches/op_baseline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,15 @@ fn bench_op_async(b: &mut Bencher) {
bench_js_async(b, r#"Deno.core.opAsync("pi_async", null);"#, setup);
}

benchmark_group!(benches, bench_op_pi_json, bench_op_nop, bench_op_async);
fn bench_is_proxy(b: &mut Bencher) {
bench_js_sync(b, r#"Deno.core.isProxy(42);"#, setup);
}

benchmark_group!(
benches,
bench_op_pi_json,
bench_op_nop,
bench_op_async,
bench_is_proxy
);
bench_or_profile!(benches);

0 comments on commit c4b995f

Please sign in to comment.