You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 1, 2026. It is now read-only.
use this image for the php-fpm container (erdiko/php-fpm:latest). You can grab the docker scripts from erdiko. The image has yaml 2 support.
create a simple class to read a json file (can steal the one from erdiko 2 or create your own)
create a simple class to read a yaml file
create a yaml and a json file with 10 lines each
create a script that reads a json file 1000 times. Be sure to time how long it takes using microtime()
create a script that reads a yaml file 1000 times. Time it same as above.
log the results in a readme file.
Try again but with larger files (100 lines)
It’s best not to use the erdiko framework here. Just use raw php so we get a better sense of how long it takes to read and decode json/yaml files. I want to support yaml in erdiko 2 but I’m not sure if there will be a performance penalty.
. I want to get some stats on parsing yaml vs json. I want to see what the performance is between the two.
*create a folder called yaml inside the repo and use this for all the code for the performance test, https://github.com/Erdiko/performance-tests
It’s best not to use the erdiko framework here. Just use raw php so we get a better sense of how long it takes to read and decode json/yaml files. I want to support yaml in erdiko 2 but I’m not sure if there will be a performance penalty.