blob: 86c545116f5e9853e912082d8589755ee6add22d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
Deno.bench("noop", () => {});
Deno.bench("noop2", { baseline: true }, () => {});
Deno.bench("noop3", { group: "url" }, () => {});
Deno.bench("parse url 2x", { group: "url", baseline: true }, () => {
new URL("https://deno.land/std/http/server.ts");
new URL("https://deno.land/std/http/server.ts");
});
Deno.bench("parse url 6x", { group: "url" }, () => {
new URL("https://deno.land/std/http/server.ts");
new URL("https://deno.land/std/http/server.ts");
new URL("https://deno.land/std/http/server.ts");
new URL("https://deno.land/std/http/server.ts");
new URL("https://deno.land/std/http/server.ts");
new URL("https://deno.land/std/http/server.ts");
});
|