Created
May 12, 2020 16:35
-
-
Save romanitalian/07c8e7831f9d8775d572c488a093962e to your computer and use it in GitHub Desktop.
How fast is PHP-8 going to be?
This file contains hidden or 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
#!/bin/bash | |
# How fast is PHP-8 going to be? | |
# https://levelup.gitconnected.com/how-fast-is-php-8-going-to-be-f7fdc111cd6 | |
mkdir ~/wks/src/roman.dev/how_fast_php8 | |
cd ~/wks/src/roman.dev/how_fast_php8 | |
wget https://gist.githubusercontent.com/romanitalian/c39b7e3182c82f518f0bd74e531f39d1/raw/3e8235f998aaf9f19b671fda75de80393756e33e/bubble.php | |
# PHP 7.4 (without JIT) | |
docker container run --rm -v $(pwd):/script/ php:7.4 php /script/bubble.php | |
# 0.12348413467407 | |
# PHP 8 (without JIT activated) | |
docker container run --rm -v $(pwd):/script/ martinpham/php8:fpm-extra-alpine php /script/bubble.php | |
# 0.12921810150146 | |
# PHP 8 (with JIT activated) | |
docker container run --rm -v $(pwd):/script/ keinos/php8-jit php /script/bubble.php | |
# 0.068613052368164 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment