Test name | Executions per second |
---|---|
Date.now() | 4667950.5 Ops/sec |
new Date().getTime(); | 4305239.5 Ops/sec |
performance.now() | 3666646.2 Ops/sec |
var timestamp = null;
timestamp = Date.now();
timestamp = new Date().getTime();
timestamp = performance.now()