HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 26 community runs

Desktop Results:
Chrome 26 runs
JSON Strings Encode
1.6M/s
MsgPack Numbers Decode
1.5M/s
JSON Numbers Encode
1.1M/s
MsgPack Numbers Encode
1.0M/s
MsgPack String Decode
904K/s
JSON String Decode
901K/s
JSON Numbers Decode
856K/s
MsgPack Strings Encode
669K/s

Fastest: JSON Strings Encode (2.3x faster)

View exact numbers
  • JSON Strings Encode: 1,557,553 ops/sec
  • MsgPack Numbers Decode: 1,493,822 ops/sec
  • JSON Numbers Encode: 1,057,112 ops/sec
  • MsgPack Numbers Encode: 1,011,807 ops/sec
  • MsgPack String Decode: 903,543 ops/sec
  • JSON String Decode: 900,700 ops/sec
  • JSON Numbers Decode: 855,983 ops/sec
  • MsgPack Strings Encode: 668,829 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
    MsgPack Numbers Decode
    JSON Numbers Decode
    JSON String Decode
    MsgPack String Decode

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36
Chrome 138 on Mac OS X 10.15.7
View result in a separate tab
JSON Strings Encode
5.2M/s
JSON Numbers Encode
3.3M/s
MsgPack Numbers Decode
2.1M/s
MsgPack String Decode
2.0M/s
JSON Numbers Decode
1.7M/s
JSON String Decode
1.7M/s
MsgPack Numbers Encode
1.4M/s
MsgPack Strings Encode
1.3M/s
View exact numbers
Test name Executions per second
JSON Strings Encode 5,150,769 Ops/sec
JSON Numbers Encode 3,300,693 Ops/sec
MsgPack Numbers Decode 2,056,593 Ops/sec
MsgPack String Decode 2,042,407 Ops/sec
JSON Numbers Decode 1,699,705 Ops/sec
JSON String Decode 1,670,133 Ops/sec
MsgPack Numbers Encode 1,422,884 Ops/sec
MsgPack Strings Encode 1,328,965 Ops/sec