Construct Intl perf

Benchmark created on


Setup

const formatter = new Intl.DateTimeFormat(undefined, { timeZoneName: "short" });

Test runner

Ready to run.

Testing in
TestOps/sec
Constructed before call
const formatterNew = new Intl.DateTimeFormat(undefined, { timeZoneName: "short" });

formatterNew.formatToParts(new Date())
ready
Using preconstructed
formatter.formatToParts(new Date())
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.