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 (Macintosh; Intel Mac OS X 10.15; rv:137.0) Gecko/20100101 Firefox/137.0
Browser:
Firefox 137
Operating system:
Mac OS X 10.15
Device Platform:
Desktop
Date tested:
one year ago
Benchmark engine:
Benchmark.js
Date.now().toString(36)
16.0M/s
new Date().getTime().toString(36);
14.0M/s
performance.now().toString(36)
7.0M/s
View exact numbers
Test name
Executions per second
✓
Date.now().toString(36)
16,026,873 Ops/sec
new Date().getTime().toString(36);
13,971,298 Ops/sec
performance.now().toString(36)
7,016,100 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);