Compare serialize/unserialize PHP functions

Using 100000 element array as source data

Serialize save: 2.855 ms (1.5M)
Serialize read: 4.260 ms

JSON save: 1.666 ms (575.14K)
JSON read: 6.614 ms

PHP save: 8.482 ms (1.7M)
PHP read: 25.811 ms

Memcache set: 5.469 ms
Memcache get: 2.274 ms

IGBinary save: 1.332 ms (720.09K)
IGBinary read: 1.953 ms

MsgPack save: 1.519 ms (359.93K)
MsgPack read: 2.733 ms

[Use sample JSON] [View source]