Test name | Executions per second |
---|---|
Date.now() | 3117195.5 Ops/sec |
new Date().getTime(); | 2703279.5 Ops/sec |
performance.now() | 2440463.0 Ops/sec |
var timestamp = null;
timestamp = Date.now();
timestamp = new Date().getTime();
timestamp = performance.now()