HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Mobile Results:
Chrome 5 runs
JSON Strings Encode
338K/s
MsgPack Numbers Encode
305K/s
JSON Numbers Encode
277K/s
MsgPack Strings Encode
74K/s

Fastest: JSON Strings Encode (4.5x faster)

View exact numbers
  • JSON Strings Encode: 338,339 ops/sec
  • MsgPack Numbers Encode: 304,969 ops/sec
  • JSON Numbers Encode: 277,173 ops/sec
  • MsgPack Strings Encode: 74,495 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: 8 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:146.0) Gecko/20100101 Firefox/146.0
Firefox 146 on Mac OS X 10.15
View result in a separate tab
JSON Strings Encode
679K/s
JSON Numbers Encode
599K/s
MsgPack Numbers Encode
548K/s
MsgPack Strings Encode
351K/s
View exact numbers
Test name Executions per second
JSON Strings Encode 679,381 Ops/sec
JSON Numbers Encode 599,297 Ops/sec
MsgPack Numbers Encode 547,953 Ops/sec
MsgPack Strings Encode 350,697 Ops/sec