Tests:
-
directly set
-
push values
-
buf2hex()
-
precomputed ASCII with shift
-
array prototype map
-
base64
-
base64 loop
Rendered benchmark preparation results:
Latest run results:
Run details: (Test run date:
one year ago)
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 on Windows
View result in a separate tab
array prototype map
1.0M/s
precomputed ASCII with shift
862K/s
View exact numbers
| Test name |
Executions per second |
|
✓
base64 loop
|
4,389,550 Ops/sec |
|
base64
|
3,442,614 Ops/sec |
|
push values
|
3,320,278 Ops/sec |
|
directly set
|
2,518,190 Ops/sec |
|
buf2hex()
|
1,633,907 Ops/sec |
|
array prototype map
|
1,007,366 Ops/sec |
|
precomputed ASCII with shift
|
861,667 Ops/sec |
Do you really want to delete benchmark?