mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
20 lines
474 B
JavaScript
20 lines
474 B
JavaScript
import { bench, run } from "../runner.mjs";
|
|
|
|
bench(`new URL('https://example.com/')`, () => {
|
|
const url = new URL("https://example.com/");
|
|
});
|
|
|
|
bench(`new URL('https://example.com')`, () => {
|
|
const url = new URL("https://example.com");
|
|
});
|
|
|
|
bench(`new URL('https://www.example.com')`, () => {
|
|
const url = new URL("https://www.example.com");
|
|
});
|
|
|
|
bench(`new URL('https://www.example.com/')`, () => {
|
|
const url = new URL("https://www.example.com/");
|
|
});
|
|
|
|
await run();
|