Compare serialize/unserialize PHP functions
Using 20000 element array as source data
Serialize save: 3.596 ms (1.46M)
Serialize read: 6.797 ms
JSON save: 4.154 ms (876.63K)
JSON read: 9.602 ms
PHP save: 18.409 ms (1.78M)
PHP read: 26.329 ms
Memcache set: 8.401 ms
Memcache get: 2.736 ms
IGBinary save: 6.477 ms (364.67K)
IGBinary read: 2.283 ms
MsgPack save: 5.732 ms (638.31K)
MsgPack read: 5.330 ms
[Use sample JSON] [View source]