Created
May 4, 2016 16:17
-
-
Save rickytato/21eec6e01fc8102cc6eb29623aeac95f to your computer and use it in GitHub Desktop.
PHP serializer benckmark (json, igbinary, msgpack)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[integer ] default json igbinary msgpack | |
status : OK OK OK OK | |
serialize : 0.0134 (100%) 0.0078 ( 58%) 0.0075 ( 56%) 0.0083 ( 62%) | |
unserialize: 0.0158 (100%) 0.0185 (117%) 0.0071 ( 44%) 0.0101 ( 64%) | |
size : 13 (100%) 10 ( 76%) 9 ( 69%) 5 ( 38%) | |
[double ] default json igbinary msgpack | |
status : OK OK OK OK | |
serialize : 0.0308 (100%) 0.0108 ( 35%) 0.0076 ( 24%) 0.0079 ( 25%) | |
unserialize: 0.0285 (100%) 0.0203 ( 71%) 0.0072 ( 25%) 0.0101 ( 35%) | |
size : 21 (100%) 15 ( 71%) 13 ( 61%) 9 ( 42%) | |
[string ] default json igbinary msgpack | |
status : OK OK OK OK | |
serialize : 0.0128 (100%) 0.0187 (145%) 0.0086 ( 67%) 0.0077 ( 59%) | |
unserialize: 0.0167 (100%) 0.0310 (185%) 0.0085 ( 50%) 0.0113 ( 67%) | |
size : 40 (100%) 34 ( 85%) 38 ( 95%) 34 ( 85%) | |
[array ] default json igbinary msgpack | |
status : OK OK OK OK | |
serialize : 0.0391 (100%) 0.0748 (191%) 0.0369 ( 94%) 0.0195 ( 49%) | |
unserialize: 0.0517 (100%) 0.1101 (213%) 0.0338 ( 65%) 0.0400 ( 77%) | |
size : 226 (100%) 176 ( 77%) 186 ( 82%) 171 ( 75%) | |
[array ] default json igbinary msgpack | |
status : OK OK OK OK | |
serialize : 0.0439 (100%) 0.1390 (316%) 0.0565 (128%) 0.0218 ( 49%) | |
unserialize: 0.0948 (100%) 0.2041 (215%) 0.0588 ( 62%) 0.0780 ( 82%) | |
size : 406 (100%) 351 ( 86%) 346 ( 85%) 341 ( 83%) | |
[object ] default json igbinary msgpack | |
status : OK *NG* OK OK | |
serialize : 0.0568 (100%) 0.0866 (152%) 0.0556 ( 97%) 0.0340 ( 59%) | |
unserialize: 0.1185 (100%) 0.1884 (158%) 0.0740 ( 62%) 0.1040 ( 87%) | |
size : 275 (100%) 206 ( 74%) 204 ( 74%) 190 ( 69%) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment