Tests:

Historical Performance Data aggregated from 9 community runs

Desktop Results:
Chrome 9 runs
str2ab
2.0M/s
textencoder api
789K/s

Fastest: str2ab (2.6x faster)

View exact numbers
  • str2ab: 2,028,270 ops/sec
  • textencoder api: 789,292 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    str2ab
    textencoder api

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 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
textencoder api
2.8M/s
str2ab
1.3M/s
View exact numbers
Test name Executions per second
textencoder api 2,783,721 Ops/sec
str2ab 1,336,300 Ops/sec