1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00
denoland-deno/tests/testdata/bench/multiple_group.ts
Asher Gomez c6f1107e9c
chore: update references to deno_std to use JSR (#23239)
There are more uses of `deno.land/std` in the codebase, but for URL
parsing purposes rather than network calls or documentation.
2024-04-10 17:26:35 -04:00

15 lines
525 B
TypeScript

Deno.bench("noop", { group: "noop" }, () => {});
Deno.bench("noop2", { group: "noop", baseline: true }, () => {});
Deno.bench("noop3", { group: "url" }, () => {});
Deno.bench("parse url 2x", { group: "url", baseline: true }, () => {
new URL("https://jsr.io/@std/http/0.221.0/file_server.ts");
new URL("https://jsr.io/@std/http/0.221.0/file_server.ts");
});
Deno.bench("parse url 200x", { group: "url" }, () => {
for (let i = 0; i < 200; i++) {
new URL("https://jsr.io/@std/http/0.221.0/file_server.ts");
}
});