Test case name | Result |
---|---|
Uint8Array.from + codePointAt | |
Uint8Array.from + charCodeAt | |
for-loop + codePointAt | |
for-loop + charCodeAt | |
for-loop + Uint8Array.from + codePointAt (small chunk) | |
for-loop + Uint8Array.from + charCodeAt (small chunk) | |
for-loop + Uint8Array.from + codePointAt (big chunk) | |
for-loop + Uint8Array.from + charCodeAt (big chunk) |
Test name | Executions per second |
---|---|
Uint8Array.from + codePointAt | 12.1 Ops/sec |
Uint8Array.from + charCodeAt | 12.9 Ops/sec |
for-loop + codePointAt | 9.8 Ops/sec |
for-loop + charCodeAt | 8.5 Ops/sec |
for-loop + Uint8Array.from + codePointAt (small chunk) | 8.7 Ops/sec |
for-loop + Uint8Array.from + charCodeAt (small chunk) | 8.7 Ops/sec |
for-loop + Uint8Array.from + codePointAt (big chunk) | 9.0 Ops/sec |
for-loop + Uint8Array.from + charCodeAt (big chunk) | 8.9 Ops/sec |