1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00
denoland-deno/cli/bench/command.js

12 lines
318 B
JavaScript
Raw Normal View History

// Copyright 2018-2024 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();
});