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