diff options
author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2021-10-06 20:18:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-06 20:18:25 +0200 |
commit | c4b995ffe64728dd47a5ef0cbb47fc513e7a756e (patch) | |
tree | 87c16d273c30845d21d44103e83d366295bd4dcf | |
parent | 4e3068be6374cf25b663ed731152909ecb0a743f (diff) |
bench(op_baseline): measure Deno.core.isProxy() (#12347)
-rw-r--r-- | bench_util/benches/op_baseline.rs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/bench_util/benches/op_baseline.rs b/bench_util/benches/op_baseline.rs index 0496a034b..10b5a6f6e 100644 --- a/bench_util/benches/op_baseline.rs +++ b/bench_util/benches/op_baseline.rs @@ -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); |