Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36
Chrome 97
Mac OS X 10.15.7
Desktop
2 years ago
Test name Executions per second
Moment add day 36192.3 Ops/sec
Luxon add day 19128.3 Ops/sec
Moment add second 34897.5 Ops/sec
Luxon add second 14316.9 Ops/sec
Luxon, add day, precreated date 20445.2 Ops/sec
Moment, add day, precreated date 1036209.7 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Moment add day

  • Luxon add day

  • Moment add second

  • Luxon add second

  • Luxon, add day, precreated date

  • Moment, add day, precreated date