Date.now(); vs new Date()Fastest: Date.now(); (1.5x faster)
30,947,972 ops/sec
21,144,604 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Date.now(); | |
| new Date() |
| Test name | Executions per second |
|---|---|
| ✓ Date.now(); | 34,910,648 Ops/sec |
| new Date() | 28,744,326 Ops/sec |