Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 18_1_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1.1 Mobile/15E148 Safari/604.1
Mobile Safari 18
iOS 18.1.1
Mobile
14 days ago
Test name Executions per second
timestamp = Date.now(); 38783464.0 Ops/sec
timestamp = new Date().toISOString(); 6416779.5 Ops/sec
Script Preparation code:
Tests:
  • timestamp = Date.now();

  • timestamp = new Date().toISOString();