From 38555a6a0fe9a7235776afe0ebfb2a24dc518391 Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Fri, 3 Mar 2023 19:04:10 +0530 Subject: 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 --- cli/bench/console.js | 5 ----- 1 file changed, 5 deletions(-) (limited to 'cli/bench/console.js') 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}`); -- cgit v1.2.3