Last active
August 29, 2018 14:56
-
-
Save tmotyl/68a3c61e86e595e6f540881ac7c71de3 to your computer and use it in GitHub Desktop.
new benchmark
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
php -v | |
PHP 7.2.7-0ubuntu0.18.04.2 | |
Opcache cli enabled: | |
php test.php | |
JSON serializing: 4.27 | |
2339.52req/s | |
content size: 141230 | |
JSON unserializing: 7.39 | |
1352.93req/s | |
Native serializing: 0.59 | |
16907.12req/s | |
content size: 145441 | |
Native unserializing: 1.75 | |
5705.11req/s | |
=====================PERSIST================== | |
save to php file: 6.69 | |
1494.72req/s | |
include php file: 9.65 | |
1036.67req/s | |
save json serialized array to file: 7.18 | |
1393.12req/s | |
read json encoded array from php file: 7.66 | |
1305.09req/s | |
save serialize() array to php file: 3.88 | |
2577.3req/s | |
read serialized array from php file: 2.08 | |
4802.49req/s | |
====== | |
Opcache cli disabled | |
====== | |
JSON serializing: 4.13 | |
2419.51req/s | |
content size: 141230 | |
JSON unserializing: 7.34 | |
1361.72req/s | |
Native serializing: 0.7 | |
14284.49req/s | |
content size: 145441 | |
Native unserializing: 1.69 | |
5917.29req/s | |
=====================PERSIST================== | |
save to php file: 5.91 | |
1692.89req/s | |
include php file: 9.83 | |
1017.1req/s | |
save json serialized array to file: 7.86 | |
1272.72req/s | |
read json encoded array from php file: 7.67 | |
1304.48req/s | |
save serialize() array to php file: 3.06 | |
3271.94req/s | |
read serialized array from php file: 2.04 | |
4896.77req/s | |
================ | |
PHP FPM opcache enabled | |
================ | |
JSON serializing: 8.96 | |
1116.69req/s | |
content size: 141230 | |
JSON unserializing: 9.79 | |
1021.39req/s | |
Native serializing: 1.15 | |
8699req/s | |
content size: 145441 | |
Native unserializing: 2.03 | |
4918.65req/s | |
=====================PERSIST================== | |
save to php file: 19.51 | |
512.61req/s | |
include php file: 11.12 | |
899.21req/s | |
save json serialized array to file: 18.04 | |
554.46req/s | |
read json encoded array from php file: 9.84 | |
1016.04req/s | |
save serialize() array to php file: 13.09 | |
763.94req/s | |
read serialized array from php file: 2.6 | |
3845.74req/s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment