Script Preparation code:
Tests:

Historical Performance Data aggregated from 15 community runs

Desktop Results:
Chrome 15 runs
Replace (SIMPLE)
4.9M/s
Split and Join
438K/s
Replace (REGEX)
210K/s

Fastest: Replace (SIMPLE) (23.6x faster)

View exact numbers
  • Replace (SIMPLE): 4,940,108 ops/sec
  • Split and Join: 437,516 ops/sec
  • Replace (REGEX): 209,630 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
    Replace (SIMPLE)
    Split and Join
    Replace (REGEX)

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Mobile Safari/537.36
Chrome Mobile 136 on Android
View result in a separate tab
Replace (SIMPLE)
5.4M/s
Split and Join
293K/s
Replace (REGEX)
222K/s
View exact numbers
Test name Executions per second
Replace (SIMPLE) 5,394,970 Ops/sec
Split and Join 292,555 Ops/sec
Replace (REGEX) 221,779 Ops/sec