1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

bench(op_baseline): measure Deno.core.isProxy() (#12347)

This commit is contained in:
Aaron O'Mullan 2021-10-06 20:18:25 +02:00 committed by GitHub
parent 4e3068be63
commit c4b995ffe6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,5 +47,15 @@ fn bench_op_async(b: &mut Bencher) {
bench_js_async(b, r#"Deno.core.opAsync("pi_async", null);"#, setup); 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); bench_or_profile!(benches);