Test case name | Result |
---|---|
new Date() | |
Intl.DateTimeFormat() | |
Date().toLocaleString() | |
JavaScript Date Time format | |
JavaScript Date Time format using Template Strings. |
Test name | Executions per second |
---|---|
new Date() | 1427766.8 Ops/sec |
Intl.DateTimeFormat() | 740363.4 Ops/sec |
Date().toLocaleString() | 21434.3 Ops/sec |
JavaScript Date Time format | 1503405.4 Ops/sec |
JavaScript Date Time format using Template Strings. | 6510590.0 Ops/sec |