Script Preparation code:
Tests:

Historical Performance Data aggregated from 159 community runs

Desktop Results:
Chrome 105 runs
String.split
10K/s
JSON.parse
6K/s

Fastest: String.split (1.6x faster)

View exact numbers
  • String.split: 10,321 ops/sec
  • JSON.parse: 6,368 ops/sec
Firefox 29 runs
String.split
6K/s
JSON.parse
6K/s
View exact numbers
  • String.split: 6,091 ops/sec
  • JSON.parse: 5,749 ops/sec
Safari 8 runs
String.split
12K/s
JSON.parse
9K/s

Fastest: String.split (1.4x faster)

View exact numbers
  • String.split: 12,233 ops/sec
  • JSON.parse: 8,516 ops/sec
Mobile Results:
Chrome 12 runs
String.split
7K/s
JSON.parse
5K/s

Fastest: String.split (1.3x faster)

View exact numbers
  • String.split: 6,550 ops/sec
  • JSON.parse: 4,977 ops/sec
Safari 5 runs
String.split
12K/s
JSON.parse
8K/s

Fastest: String.split (1.6x faster)

View exact numbers
  • String.split: 12,101 ops/sec
  • JSON.parse: 7,505 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
    JSON.parse
    String.split

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:152.0) Gecko/20100101 Firefox/152.0
Firefox 152 on Windows
View result in a separate tab
String.split
21K/s
JSON.parse
9K/s
View exact numbers
Test name Executions per second
String.split 20,698 Ops/sec
JSON.parse 8,587 Ops/sec