Compare serialize/unserialize PHP functions
Using 100000 element array as source data
Serialize save: 3.435 ms (1.5M)
Serialize read: 4.135 ms
JSON save: 1.881 ms (575.17K)
JSON read: 6.887 ms
PHP save: 8.386 ms (1.7M)
PHP read: 27.242 ms
Memcache set: 6.231 ms
Memcache get: 2.575 ms
IGBinary save: 1.680 ms (719.98K)
IGBinary read: 2.065 ms
MsgPack save: 5.010 ms (359.82K)
MsgPack read: 2.916 ms
[Use sample JSON] [View source]