diff options
Diffstat (limited to 'cli/bench/deno_common.js')
-rw-r--r-- | cli/bench/deno_common.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cli/bench/deno_common.js b/cli/bench/deno_common.js index 1e3034c27..cc54b1036 100644 --- a/cli/bench/deno_common.js +++ b/cli/bench/deno_common.js @@ -71,6 +71,10 @@ function benchRead128k() { ); } +function benchRequestNew() { + return benchSync("request_new", 5e5, () => new Request("https://deno.land")); +} + async function main() { // v8 builtin that's close to the upper bound non-NOPs benchDateNow(); @@ -83,5 +87,6 @@ async function main() { benchReadZero(); benchWriteNull(); await benchRead128k(); + benchRequestNew(); } await main(); |