MsgPack Strings Encode vs JSON Strings Encode vs MsgPack Numbers Encode vs JSON Numbers Encode vs JSON string decode vs msgpack string decodeFastest: JSON Strings Encode (6.1x faster)
1,289,903 ops/sec
911,203 ops/sec
825,409 ops/sec
330,043 ops/sec
270,806 ops/sec
211,117 ops/sec
Fastest: JSON Strings Encode (18.2x faster)
1,440,514 ops/sec
1,015,651 ops/sec
649,255 ops/sec
205,720 ops/sec
156,082 ops/sec
79,150 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| MsgPack Strings Encode | |
| JSON Strings Encode | |
| MsgPack Numbers Encode | |
| JSON Numbers Encode | |
| JSON string decode | |
| msgpack string decode |
| 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 |