HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 75 community runs

Desktop Results:
Chrome 42 runs
JSON Strings Encode
1.3M/s
JSON Numbers Encode
923K/s
MsgPack Numbers Encode
251K/s
MsgPack Strings Encode
59K/s

Fastest: JSON Strings Encode (21.8x faster)

View exact numbers
  • JSON Strings Encode: 1,294,685 ops/sec
  • JSON Numbers Encode: 923,088 ops/sec
  • MsgPack Numbers Encode: 250,532 ops/sec
  • MsgPack Strings Encode: 59,328 ops/sec
Firefox 16 runs
JSON Strings Encode
1.5M/s
JSON Numbers Encode
933K/s
MsgPack Numbers Encode
192K/s
MsgPack Strings Encode
107K/s

Fastest: JSON Strings Encode (14.0x faster)

View exact numbers
  • JSON Strings Encode: 1,498,457 ops/sec
  • JSON Numbers Encode: 932,534 ops/sec
  • MsgPack Numbers Encode: 192,200 ops/sec
  • MsgPack Strings Encode: 106,981 ops/sec
Mobile Results:
Chrome 17 runs
JSON Strings Encode
1.3M/s
JSON Numbers Encode
968K/s
MsgPack Numbers Encode
199K/s
MsgPack Strings Encode
50K/s

Fastest: JSON Strings Encode (25.1x faster)

View exact numbers
  • JSON Strings Encode: 1,256,472 ops/sec
  • JSON Numbers Encode: 967,519 ops/sec
  • MsgPack Numbers Encode: 198,901 ops/sec
  • MsgPack Strings Encode: 50,048 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
    MsgPack Strings Encode
    JSON Strings Encode
    MsgPack Numbers Encode
    JSON Numbers Encode

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 18 hours ago)
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Mobile Safari/537.36
Chrome Mobile 150 on Android
View result in a separate tab
JSON Numbers Encode
878K/s
JSON Strings Encode
844K/s
MsgPack Numbers Encode
120K/s
MsgPack Strings Encode
18K/s
View exact numbers
Test name Executions per second
JSON Numbers Encode 877,939 Ops/sec
JSON Strings Encode 843,553 Ops/sec
MsgPack Numbers Encode 120,440 Ops/sec
MsgPack Strings Encode 17,977 Ops/sec