Timing and memory measurement originally created when my PHPUnit tests started taking up over an hour of time and consuming over 9GB of memory. Then I decided to push it on repository for others to use, after I searched for some comparitions on internet and found very basic ones. I then expanded testing to the earlier version of PHP when I realized that many people are still using it.
Command:
docker exec prinstpl_php_array_vs_object_benchmark-php_74-1 php -f /opt/project/test.php ; sleep 5 ; docker exec prinstpl_php_array_vs_object_benchmark-php_80-1 php -f /opt/project/test.php ; sleep 5 ; docker exec prinstpl_php_array_vs_object_benchmark-php_81-1 php -f /opt/project/test.php ; sleep 5 ; docker exec prinstpl_php_array_vs_object_benchmark-php_82-1 php -f /opt/project/test.php ; sleep 5 ; docker exec prinstpl_php_array_vs_object_benchmark-php_83-1 php -f /opt/project/test.php
The screenshots was taken from the test results on my local machines from Docker containers. PDF file is in the "assets" folder.