Compare serialize/unserialize PHP functions

Using 100000 element array as source data

Serialize save: 2.977 ms (1.5M)
Serialize read: 4.510 ms

JSON save: 1.844 ms (575.11K)
JSON read: 8.063 ms

PHP save: 8.719 ms (1.7M)
PHP read: 26.914 ms

Memcache set: 5.930 ms
Memcache get: 2.358 ms

IGBinary save: 1.446 ms (720.21K)
IGBinary read: 1.975 ms

MsgPack save: 1.399 ms (360.05K)
MsgPack read: 2.808 ms

[Use sample JSON] [View source]