Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0
Firefox 133
Windows
Desktop
24 days ago
Test name Executions per second
TextDecoder on Uint8Array 47927.1 Ops/sec
String.fromCharCode on Uint8Array 20650.2 Ops/sec
String.fromCharCode on Array 47104.7 Ops/sec
String.fromCodePoint on Uint8Array 19393.8 Ops/sec
String.fromCodePoint on Array 40818.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