diff options
Diffstat (limited to 'cli')
-rw-r--r-- | cli/bench/async_ops.js | 5 | ||||
-rw-r--r-- | cli/tests/unit/metrics_test.ts | 2 |
2 files changed, 3 insertions, 4 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")); diff --git a/cli/tests/unit/metrics_test.ts b/cli/tests/unit/metrics_test.ts index 7f78d4578..82ff7ddd0 100644 --- a/cli/tests/unit/metrics_test.ts +++ b/cli/tests/unit/metrics_test.ts @@ -84,6 +84,6 @@ Deno.test(function opNamesMatch() { // @ts-ignore: Deno.core allowed Deno.core.opNames().sort(), // @ts-ignore: Deno.core allowed - Object.keys(Deno.core.ops).sort().filter((name) => name !== "asyncOpsInfo"), + Object.keys(Deno.core.ops).sort(), ); }); |