Test name | Executions per second |
---|---|
Date.now() | 6581913.5 Ops/sec |
new Date().getTime(); | 5721491.5 Ops/sec |
performance.now() | 4159624.8 Ops/sec |
var timestamp = null;
timestamp = Date.now();
timestamp = new Date().getTime();
timestamp = performance.now()