diff options
Diffstat (limited to 'cli/bench/async_ops.js')
-rw-r--r-- | cli/bench/async_ops.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cli/bench/async_ops.js b/cli/bench/async_ops.js index ac4eb6858..2647accbd 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) : 100000; +count = count ? parseInt(count, 10) : 1000000; async function bench(fun) { const start = Date.now(); @@ -16,4 +16,5 @@ async function bench(fun) { if (--total) queueMicrotask(() => bench(fun)); } -bench(() => Deno.core.opAsync("op_void_async")); +const { ops } = Deno.core; +bench(() => ops.op_void_async()); |