Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36
Chrome 123
Linux
Desktop
7 months ago
Test name Executions per second
TextDecoder on Uint8Array 9725.1 Ops/sec
String.fromCharCode on Uint8Array 17383.7 Ops/sec
String.fromCharCode on Array 55075.2 Ops/sec
String.fromCodePoint on Uint8Array 7385.9 Ops/sec
String.fromCodePoint on Array 9013.2 Ops/sec
Script Preparation code:
Tests:
  • TextDecoder on Uint8Array

  • String.fromCharCode on Uint8Array

  • String.fromCharCode on Array

  • String.fromCodePoint on Uint8Array

  • String.fromCodePoint on Array