Script Preparation code:
Tests:

Historical Performance Data aggregated from 18 community runs

Desktop Results:
Chrome 13 runs
timestamp = Date.now();
8.8M/s
timestamp = new Date().toISOString();
1.7M/s

Fastest: timestamp = Date.now(); (5.1x faster)

View exact numbers
  • timestamp = Date.now();: 8,787,380 ops/sec
  • timestamp = new Date().toISOString();: 1,726,006 ops/sec
Firefox 5 runs
timestamp = Date.now();
16.1M/s
timestamp = new Date().toISOString();
3.3M/s

Fastest: timestamp = Date.now(); (4.8x faster)

View exact numbers
  • timestamp = Date.now();: 16,075,407 ops/sec
  • timestamp = new Date().toISOString();: 3,347,357 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    timestamp = Date.now();
    timestamp = new Date().toISOString();

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (X11; Linux x86_64; rv:139.0) Gecko/20100101 Firefox/139.0
Firefox 139 on Linux
View result in a separate tab
timestamp = Date.now();
22.4M/s
timestamp = new Date().toISOString();
11.5M/s
View exact numbers
Test name Executions per second
timestamp = Date.now(); 22,355,450 Ops/sec
timestamp = new Date().toISOString(); 11,484,954 Ops/sec