Test name | Executions per second |
---|---|
Date.now() | 3262482.8 Ops/sec |
new Date().getTime(); | 2861022.0 Ops/sec |
performance.now() | 2431623.5 Ops/sec |
var timestamp = null;
timestamp = Date.now();
timestamp = new Date().getTime();
timestamp = performance.now()