Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
perfomance.now vs Date.now vs new Date().getTime() and toString(36)
Comparing performance of perfomance.now, Date.now and new Date().getTime() and converting to b36 string
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Browser:
Chrome 130
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Benchmark engine:
Benchmark.js
performance.now().toString(36)
2.3M/s
Date.now().toString(36)
2.3M/s
new Date().getTime().toString(36);
2.1M/s
View exact numbers
Test name
Executions per second
✓
performance.now().toString(36)
2,283,992 Ops/sec
Date.now().toString(36)
2,274,782 Ops/sec
new Date().getTime().toString(36);
2,104,006 Ops/sec
Script Preparation code:
var timestamp = null;
Tests:
performance.now().toString(36)
timestamp = performance.now().toString(36);
Date.now().toString(36)
timestamp = Date.now().toString(36);
new Date().getTime().toString(36);
timestamp = new Date().getTime().toString(36);