summaryrefslogtreecommitdiff
path: root/cli/bench
diff options
context:
space:
mode:
Diffstat (limited to 'cli/bench')
-rw-r--r--cli/bench/deno_common.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/bench/deno_common.js b/cli/bench/deno_common.js
index 7d4ebb37c..554015c6c 100644
--- a/cli/bench/deno_common.js
+++ b/cli/bench/deno_common.js
@@ -55,7 +55,7 @@ Deno.bench("b64_rt_short", { n: 1e6 }, () => {
const dataChunk = new Uint8Array(100);
const file = Deno.openSync("/dev/null", { write: true });
Deno.bench("write_null", { n: 5e5 }, () => {
- Deno.writeSync(file.rid, dataChunk);
+ file.writeSync(dataChunk);
});
}