HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 26 community runs

Desktop Results:
Chrome 21 runs
JSON Strings Encode
1.3M/s
JSON Numbers Encode
911K/s
JSON string decode
825K/s
msgpack string decode
330K/s
MsgPack Numbers Encode
271K/s
MsgPack Strings Encode
211K/s

Fastest: JSON Strings Encode (6.1x faster)

View exact numbers
  • JSON Strings Encode: 1,289,903 ops/sec
  • JSON Numbers Encode: 911,203 ops/sec
  • JSON string decode: 825,409 ops/sec
  • msgpack string decode: 330,043 ops/sec
  • MsgPack Numbers Encode: 270,806 ops/sec
  • MsgPack Strings Encode: 211,117 ops/sec
Mobile Results:
Chrome 5 runs
JSON Strings Encode
1.4M/s
JSON Numbers Encode
1.0M/s
JSON string decode
649K/s
msgpack string decode
206K/s
MsgPack Numbers Encode
156K/s
MsgPack Strings Encode
79K/s

Fastest: JSON Strings Encode (18.2x faster)

View exact numbers
  • JSON Strings Encode: 1,440,514 ops/sec
  • JSON Numbers Encode: 1,015,651 ops/sec
  • JSON string decode: 649,255 ops/sec
  • msgpack string decode: 205,720 ops/sec
  • MsgPack Numbers Encode: 156,082 ops/sec
  • MsgPack Strings Encode: 79,150 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
    JSON string decode
    msgpack string decode

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 7 months ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.127 Safari/537.36 OPR/60.3.3004.55692
Opera 60 on Linux
View result in a separate tab
JSON Strings Encode
40K/s
JSON string decode
37K/s
JSON Numbers Encode
35K/s
MsgPack Numbers Encode
14K/s
MsgPack Strings Encode
11K/s
msgpack string decode
10K/s
View exact numbers
Test name Executions per second
JSON Strings Encode 39,516 Ops/sec
JSON string decode 37,260 Ops/sec
JSON Numbers Encode 34,632 Ops/sec
MsgPack Numbers Encode 13,742 Ops/sec
MsgPack Strings Encode 11,390 Ops/sec
msgpack string decode 10,165 Ops/sec