Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0
Firefox 124
Linux
Desktop
7 months ago
Test name Executions per second
TextDecoder on Uint8Array 21103.3 Ops/sec
String.fromCharCode on Uint8Array 7943.6 Ops/sec
String.fromCharCode on Array 12561.7 Ops/sec
String.fromCodePoint on Uint8Array 7349.1 Ops/sec
String.fromCodePoint on Array 9588.3 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