Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 YaBrowser/25.2.0.0 Safari/537.36
Yandex Browser 25
Windows
Desktop
29 days ago
Test name Executions per second
new Date().toISOString() 1270094.2 Ops/sec
new Date().toLocaleString() 575741.5 Ops/sec
Script Preparation code:
AخA
 
var timestamp = null;
Tests:
  • new Date().toISOString()

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

     
    timestamp = new Date().toLocaleString();