note 129255 added to function.serialize
| From: | Absorbing at main dot php dot net | Date: | Fri, 16 Feb 2024 17:03:42 +0000 |
| Subject: | note 129255 added to function.serialize | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-221207@lists.php.net to get a copy of this message | ||
I ran exactly the same as both Kantin Charignon and MiChAeLoKGB, again fixing the small variable
errors.
As time is progressing, serialize() is outperforming json_encode() more and more, though hardware
progression is likely also playing a role in the performance here
PHP Version: 8.2.15
PHP serialized in 0.0014880187511444 seconds average
JSON encoded in 0.0019630115032196 seconds average
serialize() was roughly 31.92% faster than json_encode()
Test took 3.4516279697418 seconds with 1000 iterations.
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.13.131 (proxied: 86.180.134.173)
----
Manual Page -- https://php.net/manual/en/function.serialize.php
Edit -- https://main.php.net/note/edit/129255
Del: integrated -- https://main.php.net/note/delete/129255/integrated
Del: useless -- https://main.php.net/note/delete/129255/useless
Del: bad code -- https://main.php.net/note/delete/129255/bad+code
Del: spam -- https://main.php.net/note/delete/129255/spam
Del: non-english -- https://main.php.net/note/delete/129255/non-english
Del: in docs -- https://main.php.net/note/delete/129255/in+docs
Del: other reasons-- https://main.php.net/note/delete/129255
Reject -- https://main.php.net/note/reject/129255
Search -- https://main.php.net/manage/user-notes.php