2023-12-18 04:27:14 +05:30
|
|
|
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 }, () => {
|
2024-04-11 07:26:35 +10:00
|
|
|
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");
|
2023-12-18 04:27:14 +05:30
|
|
|
});
|
|
|
|
|
|
|
|
Deno.bench("parse url 200x", { group: "url" }, () => {
|
|
|
|
for (let i = 0; i < 200; i++) {
|
2024-04-11 07:26:35 +10:00
|
|
|
new URL("https://jsr.io/@std/http/0.221.0/file_server.ts");
|
2023-12-18 04:27:14 +05:30
|
|
|
}
|
|
|
|
});
|