mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
* Update URL from WebKit * Set `ERR_MISSING_ARGS` code on all Error objects from C++ * Fix the `code` * [autofix.ci] apply automated fixes * Micro optimize URL * [autofix.ci] apply automated fixes * Update url.mjs * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
20 lines
473 B
JavaScript
20 lines
473 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();
|