Script Preparation code:
Tests:

Historical Performance Data aggregated from 59 community runs

Desktop Results:
Chrome 40 runs
Split and Join
438K/s
Regex
219K/s

Fastest: Split and Join (2.0x faster)

View exact numbers
  • Split and Join: 437,906 ops/sec
  • Regex: 219,358 ops/sec
Firefox 13 runs
Split and Join
800K/s
Regex
90K/s

Fastest: Split and Join (8.9x faster)

View exact numbers
  • Split and Join: 799,617 ops/sec
  • Regex: 89,988 ops/sec
Safari 6 runs
Regex
160.0M/s
Split and Join
377K/s

Fastest: Regex (424.2x faster)

View exact numbers
  • Regex: 160,042,272 ops/sec
  • Split and Join: 377,305 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
    Regex
    Split and Join

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 9 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:145.0) Gecko/20100101 Firefox/145.0
Firefox 145 on Windows
View result in a separate tab
Split and Join
697K/s
Regex
72K/s
View exact numbers
Test name Executions per second
Split and Join 697,309 Ops/sec
Regex 71,692 Ops/sec