1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-26 16:09:27 -05:00
denoland-deno/cli/tests/testdata/bench/group_baseline.ts

16 lines
458 B
TypeScript
Raw Normal View History

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 200x", { group: "url" }, () => {
for (let i = 0; i < 200; i++) {
new URL("https://deno.land/std/http/server.ts");
}
});