mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
15 lines
291 B
JavaScript
15 lines
291 B
JavaScript
import { bench, run } from "../runner.mjs";
|
|
|
|
const url = "http://localhost:3000/";
|
|
const clonable = new Request(url);
|
|
|
|
bench("request.clone().method", () => {
|
|
return clonable.clone().method;
|
|
});
|
|
|
|
bench("new Request(url).method", () => {
|
|
return new Request(url).method;
|
|
});
|
|
|
|
await run();
|