mirror of
https://github.com/denoland/deno.git
synced 2024-11-28 16:20:57 -05:00
9ede8d7b69
Added group banner to bench output. --------- Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
15 lines
492 B
TypeScript
15 lines
492 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://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");
|
|
}
|
|
});
|