Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36
Chrome 53
Mac OS X 10.10.3
Other
8 years ago
Test name Executions per second
new Date 1881653.5 Ops/sec
setTime 1812004.0 Ops/sec
Mod 24 Hours 9976233.0 Ops/sec
New Date set All 1671587.6 Ops/sec
Script Preparation code:
Tests:
  • new Date

  • setTime

  • Mod 24 Hours

  • New Date set All