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