Skip to content

Commit

Permalink
Add benchmark for DateTime.local with zone
Browse files Browse the repository at this point in the history
  • Loading branch information
schleyfox committed Jan 20, 2024
1 parent 3125686 commit def2eac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion benchmarks/datetime.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function runDateTimeSuite() {
const dt = DateTime.now();

suite
.add("DateTime.local", () => {
.add("DateTime.now", () => {
DateTime.now();
})
.add("DateTime.fromObject with locale", () => {
Expand All @@ -18,6 +18,9 @@ function runDateTimeSuite() {
.add("DateTime.local with numbers", () => {
DateTime.local(2017, 5, 15);
})
.add("DateTime.local with numbers and zone", () => {
DateTime.local(2017, 5, 15, 11, 7, 35, { zone: "America/New_York" });
})
.add("DateTime.fromISO", () => {
DateTime.fromISO("1982-05-25T09:10:11.445Z");
})
Expand Down

0 comments on commit def2eac

Please sign in to comment.