Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Chrome 133
Windows
Desktop
6 days ago
Test name Executions per second
Uint8Array.from + codePointAt 13.0 Ops/sec
Uint8Array.from + charCodeAt 13.2 Ops/sec
for-loop + codePointAt 9.9 Ops/sec
for-loop + charCodeAt 7.2 Ops/sec
Script Preparation code:
Tests:
  • 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)


;