Test name | Executions per second |
---|---|
Date.now() | 5095042.0 Ops/sec |
new Date().getTime(); | 5106580.5 Ops/sec |
performance.now() | 4134464.8 Ops/sec |
var timestamp = null;
timestamp = Date.now();
timestamp = new Date().getTime();
timestamp = performance.now()