Script Preparation code:
Tests:
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: 6 months ago)
Mozilla/5.0 (Android 15; Mobile; rv:148.0) Gecko/148.0 Firefox/148.0
Firefox Mobile 148 on Android
View result in a separate tab
String.fromCharCode on Array
41K/s
String.fromCodePoint on Array
19K/s
TextDecoder on Uint8Array
17K/s
String.fromCharCode on Uint8Array
11K/s
String.fromCodePoint on Uint8Array
8K/s
View exact numbers
Test name Executions per second
String.fromCharCode on Array 40,660 Ops/sec
String.fromCodePoint on Array 18,693 Ops/sec
TextDecoder on Uint8Array 16,904 Ops/sec
String.fromCharCode on Uint8Array 11,276 Ops/sec
String.fromCodePoint on Uint8Array 8,015 Ops/sec