Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Safari/605.1.15
Safari 14
Mac OS X 10.15.6
Desktop
3 years ago
Test name Executions per second
MsgPack Strings Encode 17412.7 Ops/sec
JSON Strings Encode 426864.7 Ops/sec
MsgPack Numbers Encode 69545.0 Ops/sec
JSON Numbers Encode 256481.2 Ops/sec
MsgPack Numbers decode 647317.0 Ops/sec
Msgpack String decode 161680.6 Ops/sec
JSON parse numbers 290503.8 Ops/sec
JSON parse strings 420211.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • MsgPack Strings Encode

  • JSON Strings Encode

  • MsgPack Numbers Encode

  • JSON Numbers Encode

  • MsgPack Numbers decode

  • Msgpack String decode

  • JSON parse numbers

  • JSON parse strings


;