1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-21 23:04:45 -05:00

bench(deno_common): track new Request() (#12164)

Indirectly tests for:
- url parsing
- abort signal no-ops
- webidl & other overhead
This commit is contained in:
Aaron O'Mullan 2021-09-21 12:34:27 +02:00 committed by GitHub
parent 923c5432e0
commit ac8b6689b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();