Skip to content

Instantly share code, notes, and snippets.

@jorgecc
Last active May 30, 2020 16:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jorgecc/af36ee78270b30300ffc35cf6959d403 to your computer and use it in GitHub Desktop.
Save jorgecc/af36ee78270b30300ffc35cf6959d403 to your computer and use it in GitHub Desktop.
type time
json_encode array 23.508071899414
serialize array 20.003318786621 (better)
json_decode array 120.9020614624
unserialize array 39.196014404297
json_encode object stdclass 24.199485778809
serialize object stdclass 32.901763916016
json_decode object stdclass 127.10094451904
unserialize object stdclass 102.61535644531
json_encode object 24.39022064209
serialize object 32.877922058105
json_decode object 126.21879577637
unserialize object 129.1036605835 (worst)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment