Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 Edg/135.0.0.0
Chrome 135
Windows
Desktop
one year ago
Test name Executions per second
timestamp = Date.now(); 7636813.5 Ops/sec
timestamp = new Date().toISOString(); 1460112.5 Ops/sec
Script Preparation code:
Tests:
  • timestamp = Date.now();

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