Construct Intl perf (v2)

Revision 2 of this benchmark created on


Setup

let formatter = undefined;

Test runner

Ready to run.

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

formatter.formatToParts(new Date())
ready
Using preconstructed
formatter ??= new Intl.DateTimeFormat(undefined, { timeZoneName: "short" });

formatter.formatToParts(new Date())
ready

Revisions

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