summaryrefslogtreecommitdiff
path: root/cli/bench/console.js
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2023-03-03 19:04:10 +0530
committerGitHub <noreply@github.com>2023-03-03 19:04:10 +0530
commit38555a6a0fe9a7235776afe0ebfb2a24dc518391 (patch)
treeef9506c500451e5f2ef4ae5b70eda85c7147a25e /cli/bench/console.js
parent64503fabd81e38c58d44d23ae94f5b87a384b86e (diff)
feat(ops): reland fast zero copy string arguments (#17996)
Reland https://github.com/denoland/deno/pull/16777 The codegen is disabled in async ops and when fallback to slow call is possible (return type is a Result) to avoid hitting this V8 bug: https://github.com/denoland/deno/issues/17159
Diffstat (limited to 'cli/bench/console.js')
-rw-r--r--cli/bench/console.js5
1 files changed, 0 insertions, 5 deletions
diff --git a/cli/bench/console.js b/cli/bench/console.js
index f31d77d25..5f67c0a4b 100644
--- a/cli/bench/console.js
+++ b/cli/bench/console.js
@@ -1,8 +1,3 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
const count = 100000;
-
-const start = Date.now();
for (let i = 0; i < count; i++) console.log("Hello World");
-const elapsed = Date.now() - start;
-const rate = Math.floor(count / (elapsed / 1000));
-console.log(`time ${elapsed} ms rate ${rate}`);