Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
Chrome 132
Mac OS X 10.15.7
Desktop
2 months ago
Test name Executions per second
Luxon (from string) 218360.1 Ops/sec
Luxon (from existing DateTimes) 9759164.0 Ops/sec
Raw math (from minutes) 101910776.0 Ops/sec
Raw math (from milliseconds) 101206976.0 Ops/sec
Javascript date time object (string parsing) 3287836.5 Ops/sec
Javascript date time object (already created) 10298646.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Luxon (from string)

  • Luxon (from existing DateTimes)

  • Raw math (from minutes)

  • Raw math (from milliseconds)

  • Javascript date time object (string parsing)

  • Javascript date time object (already created)