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:
parent
923c5432e0
commit
ac8b6689b2
1 changed files with 5 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue