Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0
Firefox 128
Windows
Desktop
3 days ago
Test name Executions per second
Uint8Array.from + codePointAt 52.2 Ops/sec
Uint8Array.from + charCodeAt 53.6 Ops/sec
for-loop + codePointAt 750.6 Ops/sec
for-loop + charCodeAt 658.4 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)


;