diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2022-10-27 07:58:27 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-27 16:58:27 +0200 |
commit | 115cc1e6ae00cfd9283c1549060892e0c00dcbc4 (patch) | |
tree | 695d3d5715439796c48780df49039f1803d6aae3 /cli/bench/async_ops.js | |
parent | 02187966c108fd50354c8de57bab443a5b262373 (diff) |
Revert "perf(core): generate inlined wrappers for async ops (#16428)" (#16443)
Diffstat (limited to 'cli/bench/async_ops.js')
-rw-r--r-- | cli/bench/async_ops.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cli/bench/async_ops.js b/cli/bench/async_ops.js index 2647accbd..ac4eb6858 100644 --- a/cli/bench/async_ops.js +++ b/cli/bench/async_ops.js @@ -5,7 +5,7 @@ let [total, count] = typeof Deno !== "undefined" : [process.argv[2], process.argv[3]]; total = total ? parseInt(total, 0) : 50; -count = count ? parseInt(count, 10) : 1000000; +count = count ? parseInt(count, 10) : 100000; async function bench(fun) { const start = Date.now(); @@ -16,5 +16,4 @@ async function bench(fun) { if (--total) queueMicrotask(() => bench(fun)); } -const { ops } = Deno.core; -bench(() => ops.op_void_async()); +bench(() => Deno.core.opAsync("op_void_async")); |