From cb6700fa5aac03fb3e082f9ed2e01d74238e6a99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Fri, 9 Dec 2022 16:43:36 +0100 Subject: unstable: remove Deno.spawn, Deno.spawnSync, Deno.spawnChild APIs (#16893) This commit removes three unstable Deno APIs: - "Deno.spawn()" - "Deno.spawnSync()" - "Deno.spawnChild()" These APIs were replaced by a unified "Deno.Command" API. --- cli/bench/command.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 cli/bench/command.js (limited to 'cli/bench/command.js') 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(); +}); -- cgit v1.2.3