| Test case name | Result |
|---|---|
| directly set | |
| push values | |
| buf2hex() | |
| precomputed ASCII with shift | |
| array prototype map | |
| base64 | |
| base64 loop | |
| string + | |
| string + 2 | |
| string + pad |
| Test name | Executions per second |
|---|---|
| directly set | 2449344.0 Ops/sec |
| push values | 3418329.5 Ops/sec |
| buf2hex() | 1701248.1 Ops/sec |
| precomputed ASCII with shift | 864891.2 Ops/sec |
| array prototype map | 1193146.8 Ops/sec |
| base64 | 3353756.8 Ops/sec |
| base64 loop | 4347946.5 Ops/sec |
| string + | 5316500.0 Ops/sec |
| string + 2 | 5316376.5 Ops/sec |
| string + pad | 4910442.0 Ops/sec |