Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131
Windows
Desktop
one year ago
Benchmark.js
date convert to timestamp + sort (timezone safe)
95K/s
date convert to date + sort a-b (timezone safe)
62K/s
View exact numbers
| Test name |
Executions per second |
|
✓
sort
|
1,392,189 Ops/sec |
|
manual compare
|
947,423 Ops/sec |
|
localcompare
|
666,820 Ops/sec |
|
date convert to timestamp + sort (timezone safe)
|
95,383 Ops/sec |
|
date convert to date + sort a-b (timezone safe)
|
62,255 Ops/sec |
Tests:
-
sort
-
localcompare
-
manual compare
-
date convert to date + sort a-b (timezone safe)
-
date convert to timestamp + sort (timezone safe)