Compare serialize/unserialize PHP functions

Using 100000 element array as source data

Serialize save: 2.939 ms (1.5M)
Serialize read: 4.047 ms

JSON save: 1.778 ms (574.83K)
JSON read: 6.607 ms

PHP save: 8.504 ms (1.7M)
PHP read: 26.075 ms

Memcache set: 5.754 ms
Memcache get: 2.951 ms

IGBinary save: 1.716 ms (720.04K)
IGBinary read: 2.012 ms

MsgPack save: 1.480 ms (359.89K)
MsgPack read: 3.884 ms

[Use sample JSON] [View source]