Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Chrome 130
Windows
Desktop
one year ago
Benchmark.js
new Date().getTime().toString(36);
361K/s
performance.now().toString(36)
353K/s
Date.now().toString(36)
353K/s
View exact numbers
Test name Executions per second
new Date().getTime().toString(36); 360,739 Ops/sec
performance.now().toString(36) 353,437 Ops/sec
Date.now().toString(36) 352,706 Ops/sec
Script Preparation code:
Tests: