diff options
Diffstat (limited to 'cli/bench')
| -rw-r--r-- | cli/bench/command.js (renamed from cli/bench/spawn.js) | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/bench/spawn.js b/cli/bench/command.js index f5a658f3f..5b57dd4f6 100644 --- a/cli/bench/spawn.js +++ b/cli/bench/command.js @@ -1,11 +1,11 @@ // Copyright 2018-2022 the Deno authors. All rights reserved. MIT license. Deno.bench("echo deno", async () => { - await Deno.spawn("echo", { args: ["deno"] }); + await new Deno.Command("echo", { args: ["deno"] }).output(); }); Deno.bench("cat 128kb", async () => { - await Deno.spawn("cat", { + await new Deno.Command("cat", { args: ["./cli/bench/testdata/128k.bin"], - }); + }).output(); }); |
