Date.now() vs performance.nowFastest: Date.now() (2.2x faster)
7,316,175 ops/sec
3,335,550 ops/sec
Fastest: Date.now() (2.9x faster)
6,375,700 ops/sec
2,228,944 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() | |
| performance.now |
| Test name | Executions per second |
|---|---|
| ✓ Date.now() | 4,387,294 Ops/sec |
| performance.now | 1,753,910 Ops/sec |