Script Preparation code:
Tests:

Historical Performance Data aggregated from 62 community runs

Desktop Results:
Chrome 38 runs
json short string
9.8M/s
base64 short string
6.3M/s
base64 long string
927K/s
json long string
355K/s

Fastest: json short string (27.7x faster)

View exact numbers
  • json short string: 9,829,902 ops/sec
  • base64 short string: 6,336,745 ops/sec
  • base64 long string: 927,365 ops/sec
  • json long string: 354,569 ops/sec
Firefox 13 runs
base64 short string
17.0M/s
json short string
9.8M/s
json long string
841K/s
base64 long string
496K/s

Fastest: base64 short string (34.2x faster)

View exact numbers
  • base64 short string: 16,964,486 ops/sec
  • json short string: 9,837,079 ops/sec
  • json long string: 841,020 ops/sec
  • base64 long string: 495,971 ops/sec
Safari 5 runs
json short string
8.7M/s
base64 short string
7.7M/s
json long string
929K/s
base64 long string
889K/s

Fastest: json short string (9.8x faster)

View exact numbers
  • json short string: 8,697,679 ops/sec
  • base64 short string: 7,653,014 ops/sec
  • json long string: 929,392 ops/sec
  • base64 long string: 888,515 ops/sec
Mobile Results:
Chrome 6 runs
json short string
4.8M/s
base64 short string
2.8M/s
base64 long string
393K/s
json long string
280K/s

Fastest: json short string (17.1x faster)

View exact numbers
  • json short string: 4,785,281 ops/sec
  • base64 short string: 2,804,198 ops/sec
  • base64 long string: 392,636 ops/sec
  • json long string: 280,238 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
    base64 short string
    base64 long string
    json short string
    json long string

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.3.1 Safari/605.1.15
Safari 26 on Mac OS X 10.15.7
View result in a separate tab
json short string
29.6M/s
base64 short string
20.0M/s
base64 long string
4.1M/s
json long string
570K/s
View exact numbers
Test name Executions per second
json short string 29,577,172 Ops/sec
base64 short string 20,040,678 Ops/sec
base64 long string 4,104,451 Ops/sec
json long string 570,098 Ops/sec