Tests:
-
Loop ParseInt
-
Loop Constructor
-
DataView
-
Direct Constructor
-
Direct ParseInt
-
Direct Constructor with split
Rendered benchmark preparation results:
Latest run results:
Run details: (Test run date:
one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131 on Mac OS X 10.15.7
View result in a separate tab
Direct Constructor with split
29.2M/s
Direct Constructor
15.4M/s
View exact numbers
| Test name |
Executions per second |
|
✓
Direct Constructor with split
|
29,224,200 Ops/sec |
|
Direct Constructor
|
15,368,719 Ops/sec |
|
Direct ParseInt
|
6,233,455 Ops/sec |
|
Loop Constructor
|
5,543,766 Ops/sec |
|
Loop ParseInt
|
5,354,088 Ops/sec |
|
DataView
|
4,770,310 Ops/sec |
Do you really want to delete benchmark?