mirror of
https://github.com/denoland/deno.git
synced 2024-11-01 09:24:20 -04:00
cb6700fa5a
This commit removes three unstable Deno APIs: - "Deno.spawn()" - "Deno.spawnSync()" - "Deno.spawnChild()" These APIs were replaced by a unified "Deno.Command" API.
11 lines
318 B
JavaScript
11 lines
318 B
JavaScript
// 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();
|
|
});
|