Script Preparation code:
Tests:
  • TextDecoder on Uint8Array

  • String.fromCharCode on Uint8Array

  • String.fromCharCode on Array

  • String.fromCodePoint on Uint8Array

  • String.fromCodePoint on Array

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    TextDecoder on Uint8Array
    String.fromCharCode on Uint8Array
    String.fromCharCode on Array
    String.fromCodePoint on Uint8Array
    String.fromCodePoint on Array

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (X11; Linux x86_64; rv:135.0) Gecko/20100101 Firefox/135.0
Firefox 135 on Linux
View result in a separate tab
Test name Executions per second
TextDecoder on Uint8Array 29480.1 Ops/sec
String.fromCharCode on Uint8Array 15879.3 Ops/sec
String.fromCharCode on Array 57867.5 Ops/sec
String.fromCodePoint on Uint8Array 12409.2 Ops/sec
String.fromCodePoint on Array 27346.9 Ops/sec