Bench | Time |
---|---|
(bool) $a | 275 ms |
boolval($a) | 984 ms |
- Serialize a simple array with
php-5.6
Function | Time |
---|---|
bin_encode | 1088 ms |
msgpack_pack | 1232 ms |
bson_encode | 1288 ms |
json_encode | 1826 ms |
serialize | 2579 ms |
igbinary_serialize | 2704 ms |
var_export | 3445 ms |
- Serialize a simple object with
php-5.6
Function | Time |
---|---|
bin_encode | 598 ms |
msgpack_pack | 647 ms |
bson_encode | 775 ms |
json_encode | 1224 ms |
serialize | 1675 ms |
igbinary_serialize | 1973 ms |
var_export | 2578 ms |
- Serialize an array with 10000 integer(s) object with
php-5.6
Function | Time |
---|---|
igbinary_serialize | 901 ms |
msgpack_pack | 944 ms |
bin_encode | 1008 ms |
json_encode | 1047 ms |
bson_encode | 1288 ms |
var_export | 1720 ms |
serialize | 2656 ms |