Forked from lennardv2/1. Building PHP-MAMP on Apple Silicon M1.md
Created
February 25, 2025 15:28
-
-
Save ajvillegas/05a0bc2bcb782c1db52dc15e9b4a31f6 to your computer and use it in GitHub Desktop.
Revisions
-
lennardv2 revised this gist
Oct 26, 2022 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,6 @@ # Building the MAMP stack (php, apache & mysql) on Apple Silicon ARM (native) ## Update! This tutorial is outdated. Nowadays brew installes m1 binaries just fine. Also use valet: https://laravel.com/docs/9.x/valet. It's 10x easier. -
lennardv2 revised this gist
Oct 26, 2022 . 1 changed file with 5 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,10 @@ # Building the MAMP stack (php, apache & mysql) on Apple Silicon ARM (native) ## Note Just use valet: https://laravel.com/docs/9.x/valet In this tutorial, we'll build the the nescessary packages for ARM via homebrew. After that we'll configure apache2 for using virtual hosts. The native php is ofcourse way faster, see the results of [this](https://github.com/rusoft/php-simple-benchmark-script/blob/master/bench.php) benchmark [below](https://gist.github.com/lvoogdt/538d93ae35297b35e8b56db95b49469c#benchmark-rosetta2-phpmd). TEST NAME | SECONDS | OP/SEC | -
lennardv2 revised this gist
Apr 29, 2021 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -40,6 +40,8 @@ export PATH="/opt/homebrew/bin:$PATH" Note: checkout [this comment](https://gist.github.com/lvoogdt/538d93ae35297b35e8b56db95b49469c#gistcomment-3545290) if you have problems building python. Update: Building is probably not necessary anymore, you can omit the -s flag. ``` brew install -s mysql [email protected] httpd ``` -
lennardv2 revised this gist
Dec 7, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -140,7 +140,7 @@ mkdir ~/MAMP/httpd/vhosts ## Addding a website / virtual host ``` mkdir ~/MAMP/www/dev.example.com mkdir ~/MAMP/www/dev.example.com/public_html mkdir ~/MAMP/www/dev.example.com/logs ``` -
lennardv2 revised this gist
Dec 7, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -122,7 +122,7 @@ And add the following to the bottom: ``` LoadModule php7_module /opt/homebrew/opt/php@7.4/lib/httpd/modules/libphp7.so <FilesMatch \.php$> SetHandler application/x-httpd-php -
lennardv2 revised this gist
Dec 7, 2020 . 1 changed file with 14 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -177,12 +177,25 @@ Now restart: ~/MAMP/restart.sh ``` ## Troubleshooting Check the output of the following commands: ``` sudo apachectl start ``` If you have see a message saying something like Address already in use: AH00072: make_sock: could not bind to address, try changing the Listen config in httpd.conf to: ``` Listen 0.0.0.0:8080 ``` Check if your config is valid: ``` apachectl configtest ``` Vist http://dev.example.com:8080 -
lennardv2 revised this gist
Dec 7, 2020 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -140,9 +140,9 @@ mkdir ~/MAMP/httpd/vhosts ## Addding a website / virtual host ``` mkdir ~/MAMPwww/dev.example.com mkdir ~/MAMP/www/dev.example.com/public_html mkdir ~/MAMP/www/dev.example.com/logs ``` -
lennardv2 revised this gist
Dec 7, 2020 . 3 changed files with 0 additions and 90 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,30 +0,0 @@ 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 charactersOriginal file line number Diff line number Diff line change @@ -1,30 +0,0 @@ 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 charactersOriginal file line number Diff line number Diff line change @@ -1,30 +0,0 @@ -
lennardv2 revised this gist
Dec 7, 2020 . 1 changed file with 11 additions and 6 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -68,7 +68,7 @@ start.sh: #!/bin/zsh brew services start mysql brew services start php@7.4 brew services start httpd ``` @@ -77,19 +77,18 @@ stop.sh: #!/bin/zsh brew services stop mysql brew services stop php@7.4 brew services stop httpd ``` restart.sh: ``` #!/bin/zsh brew services restart mysql brew services restart [email protected] brew services restart httpd ``` Make 'em writable: @@ -178,6 +177,12 @@ Now restart: ~/MAMP/restart.sh ``` Note: If you have see a message saying something like Address already in use: AH00072: make_sock: could not bind to address, try changing the Listen config in httpd.conf to: ``` Listen 0.0.0.0:8080 ``` Vist http://dev.example.com:8080 -
lennardv2 revised this gist
Dec 1, 2020 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -38,6 +38,8 @@ export PATH="/opt/homebrew/bin:$PATH" ## Build the packages Note: checkout [this comment](https://gist.github.com/lvoogdt/538d93ae35297b35e8b56db95b49469c#gistcomment-3545290) if you have problems building python. ``` brew install -s mysql [email protected] httpd ``` -
lennardv2 revised this gist
Dec 1, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export PATH="/opt/homebrew/bin:$PATH" ## Build the packages ``` brew install -s mysql php@7.4 httpd ``` This might take some time (30mins) or so. When everything is done it will list some next steps like adding the php module to apache. -
lennardv2 revised this gist
Nov 30, 2020 . 1 changed file with 4 additions and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -4,9 +4,10 @@ In this tutorial, we'll build the the nescessary packages for ARM via homebrew. TEST NAME | SECONDS | OP/SEC | -|-|- Rosetta2 | 191.654 sec | 1.96 MOp/s Intel i7-4790K (imac 2014) | 156.791 sec | 2.39 MOp/s Intel i5-8500B (mini 2018) | 141.381 sec | 2.65 MOp/s ARM m1 | 43.745 sec | 8.58 MOp/s ## Installing homebrew -
lennardv2 revised this gist
Nov 25, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ # Building the MAMP stack (php, apache & mysql) on Apple Silicon ARM (native) In this tutorial, we'll build the the nescessary packages for ARM via homebrew. After that we'll configure apache2 for using virtual hosts. The native php is ofcourse way faster, see the results of [this](https://github.com/rusoft/php-simple-benchmark-script/blob/master/bench.php) benchmark [below](https://gist.github.com/lvoogdt/538d93ae35297b35e8b56db95b49469c#benchmark-rosetta2-phpmd). -
lennardv2 revised this gist
Nov 25, 2020 . 2 changed files with 32 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,11 @@ # Tutorial: Building the MAMP stack (php, apache & mysql) on Apple Silicon ARM (native) In this tutorial, we'll build the the nescessary packages for ARM via homebrew. After that we'll configure apache2 for using virtual hosts. The native php is ofcourse way faster, see the results of [this](https://github.com/rusoft/php-simple-benchmark-script/blob/master/bench.php) benchmark [below](https://gist.github.com/lvoogdt/538d93ae35297b35e8b56db95b49469c#benchmark-rosetta2-phpmd). TEST NAME | SECONDS | OP/SEC | -|-|- Rosetta2 | 191.654 sec | 1.96 MOp/s Intel i7-4790K | 156.791 sec | 2.39 MOp/s ARM. | 43.745 sec | 8.58 MOp/s 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,30 @@ # Benchmark Intel PHP.md i7-4790K TEST NAME | SECONDS | OP/SEC | OP/SEC/MHz | MEMORY -|-|-|-|- 01_math | 5.987 sec | 167.03 kOp/s | 0.00 uOps/MHz | 2 Mb 02_string_concat | 0.000 sec | 1.08 TOp/s | 0.00 uOps/MHz | 2 Mb 03_1_string_number_concat | 4.195 sec | 1.19 MOp/s | 0.00 uOps/MHz | 2 Mb 03_2_string_number_format | 3.514 sec | 1.42 MOp/s | 0.00 uOps/MHz | 2 Mb 04_string_simple_functions | 5.508 sec | 236.04 kOp/s | 0.00 uOps/MHz | 2 Mb 05_string_multibyte | 2.637 sec | 49.30 kOp/s | 0.00 uOps/MHz | 2 Mb 06_string_manipulation | 13.189 sec | 98.57 kOp/s | 0.00 uOps/MHz | 2 Mb 07_regex | 9.233 sec | 140.80 kOp/s | 0.00 uOps/MHz | 2 Mb 08_1_hashing | 7.542 sec | 172.37 kOp/s | 0.00 uOps/MHz | 2 Mb 08_2_crypt | 34.933 sec | 286.26 Op/s | 0.00 uOps/MHz | 2 Mb 09_json_encode | 8.244 sec | 157.68 kOp/s | 0.00 uOps/MHz | 2 Mb 10_json_decode | 10.156 sec | 128.00 kOp/s | 0.00 uOps/MHz | 2 Mb 11_serialize | 6.207 sec | 209.44 kOp/s | 0.00 uOps/MHz | 2 Mb 12_unserialize | 5.570 sec | 233.40 kOp/s | 0.00 uOps/MHz | 2 Mb 13_array_fill | 0.000 sec | 0.00 uOp/s | 0.00 uOps/MHz | 2 Mb 14_array_range | 0.000 sec | 0.00 uOp/s | 0.00 uOps/MHz | 2 Mb 14_array_unset | 0.008 sec | 0.00 uOp/s | 0.00 uOps/MHz | 2 Mb 15_loops | 3.321 sec | 60.23 MOp/s | 0.00 uOps/MHz | 2 Mb 16_loop_ifelse | 2.619 sec | 19.09 MOp/s | 0.00 uOps/MHz | 2 Mb 17_loop_ternary | 5.395 sec | 9.27 MOp/s | 0.00 uOps/MHz | 2 Mb 18_1_loop_defined_access | 1.711 sec | 11.69 MOp/s | 0.00 uOps/MHz | 2 Mb 18_2_loop_undefined_access | 11.027 sec | 1.81 MOp/s | 0.00 uOps/MHz | 2 Mb 19_type_functions | 2.659 sec | 1.13 MOp/s | 0.00 uOps/MHz | 2 Mb 20_type_conversion | 2.652 sec | 1.13 MOp/s | 0.00 uOps/MHz | 2 Mb 24_xmlrpc_encode | 6.782 sec | 29.49 kOp/s | 0.00 uOps/MHz | 2 Mb 25_xmlrpc_decode | 3.702 sec | 8.10 kOp/s | 0.00 uOps/MHz | 2 Mb Total time: | 156.791 sec | 2.39 MOp/s | 0.00 uOps/MHz | -
lennardv2 renamed this gist
Nov 24, 2020 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
lennardv2 renamed this gist
Nov 24, 2020 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
lennardv2 revised this gist
Nov 24, 2020 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -2,10 +2,10 @@ In this tutorial, we'll build the the nescessary packages for ARM via homebrew. After that we'll configure apache2 for using virtual hosts. The native php is ofcourse way faster, see the results of [this](https://github.com/rusoft/php-simple-benchmark-script/blob/master/bench.php) benchmark [below](https://gist.github.com/lvoogdt/538d93ae35297b35e8b56db95b49469c#benchmark-rosetta2-phpmd). TEST NAME | SECONDS | OP/SEC | -|-|- Rosetta2 | 191.654 sec | 1.96 MOp/s ARM. | 43.745 sec | 8.58 MOp/s ## Installing homebrew -
lennardv2 revised this gist
Nov 24, 2020 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -2,10 +2,10 @@ In this tutorial, we'll build the the nescessary packages for ARM via homebrew. After that we'll configure apache2 for using virtual hosts. The native php is ofcourse way faster, see the results of [this](https://github.com/rusoft/php-simple-benchmark-script/blob/master/bench.php) benchmark [below](https://gist.github.com/lvoogdt/538d93ae35297b35e8b56db95b49469c#benchmark-rosetta2-phpmd). TEST NAME | SECONDS | OP/SEC | OP/SEC/MHz -|-|-|- Rosetta2 | 191.654 sec | 1.96 MOp/s | 0.00 uOps/MHz ARM. | 43.745 sec | 8.58 MOp/s | 0.00 uOps/MHz ## Installing homebrew -
lennardv2 revised this gist
Nov 24, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ # Tutorial: Installing the MAMP stack (php, apache & mysql) on Apple Silicon ARM (native) In this tutorial, we'll build the the nescessary packages for ARM via homebrew. After that we'll configure apache2 for using virtual hosts. The native php is ofcourse way faster, see the results of [this](https://github.com/rusoft/php-simple-benchmark-script/blob/master/bench.php) benchmark [below](https://gist.github.com/lvoogdt/538d93ae35297b35e8b56db95b49469c#benchmark-rosetta2-phpmd). TEST NAME | SECONDS | OP/SEC | OP/SEC/MHz | MEMORY -|-|-|-|- -
lennardv2 revised this gist
Nov 24, 2020 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -3,6 +3,7 @@ In this tutorial, we'll build the the nescessary packages for ARM via homebrew. After that we'll configure apache2 for using virtual hosts. The native php is ofcourse way faster, see the results of [this](https://github.com/rusoft/php-simple-benchmark-script/blob/master/bench.php) benchmark [below](). TEST NAME | SECONDS | OP/SEC | OP/SEC/MHz | MEMORY -|-|-|-|- Rosetta2 | 191.654 sec | 1.96 MOp/s | 0.00 uOps/MHz | ARM. | 43.745 sec | 8.58 MOp/s | 0.00 uOps/MHz | -
lennardv2 revised this gist
Nov 24, 2020 . 2 changed files with 6 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,10 @@ # Tutorial: Installing the MAMP stack (php, apache & mysql) on Apple Silicon ARM (native) In this tutorial, we'll build the the nescessary packages for ARM via homebrew. After that we'll configure apache2 for using virtual hosts. The native php is ofcourse way faster, see the results of [this](https://github.com/rusoft/php-simple-benchmark-script/blob/master/bench.php) benchmark [below](). TEST NAME | SECONDS | OP/SEC | OP/SEC/MHz | MEMORY Rosetta2 | 191.654 sec | 1.96 MOp/s | 0.00 uOps/MHz | ARM. | 43.745 sec | 8.58 MOp/s | 0.00 uOps/MHz | ## Installing homebrew 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 charactersOriginal file line number Diff line number Diff line change @@ -27,4 +27,4 @@ TEST NAME | SECONDS | OP/SEC | OP/SEC/MHz | 20_type_conversion | 0.628 sec | 4.78 MOp/s | 0.00 uOps/MHz | 2 Mb 24_xmlrpc_encode | 1.702 sec | 117.54 kOp/s | 0.00 uOps/MHz | 2 Mb 25_xmlrpc_decode | 1.303 sec | 23.02 kOp/s | 0.00 uOps/MHz | 2 Mb Total time: | 43.745 sec | 8.58 MOp/s | 0.00 uOps/MHz | -
lennardv2 revised this gist
Nov 24, 2020 . 2 changed files with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ # Benchmark Rosetta2 PHP.md TEST NAME | SECONDS | OP/SEC | OP/SEC/MHz | MEMORY -|-|-|-|- 01_math | 5.389 sec | 185.56 kOp/s | 0.00 uOps/MHz | 2 Mb 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ # Benchmark ARM PHP.md TEST NAME | SECONDS | OP/SEC | OP/SEC/MHz | MEMORY -|-|-|-|- 01_math | 1.101 sec | 908.17 kOp/s | 0.00 uOps/MHz | 2 Mb -
lennardv2 renamed this gist
Nov 24, 2020 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
lennardv2 revised this gist
Nov 24, 2020 . 2 changed files with 59 additions and 67 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,35 +1,30 @@ TEST NAME | SECONDS | OP/SEC | OP/SEC/MHz | MEMORY -|-|-|-|- 01_math | 5.389 sec | 185.56 kOp/s | 0.00 uOps/MHz | 2 Mb 02_string_concat | 0.000 sec | 1.08 TOp/s | 0.00 uOps/MHz | 2 Mb 03_1_string_number_concat | 5.017 sec | 996.62 kOp/s | 0.00 uOps/MHz | 2 Mb 03_2_string_number_format | 4.181 sec | 1.20 MOp/s | 0.00 uOps/MHz | 2 Mb 04_string_simple_functions | 5.701 sec | 228.01 kOp/s | 0.00 uOps/MHz | 2 Mb 05_string_multibyte | 2.603 sec | 49.93 kOp/s | 0.00 uOps/MHz | 2 Mb 06_string_manipulation | 14.105 sec | 92.17 kOp/s | 0.00 uOps/MHz | 2 Mb 07_regex | 11.417 sec | 113.87 kOp/s | 0.00 uOps/MHz | 2 Mb 08_1_hashing | 10.753 sec | 120.90 kOp/s | 0.00 uOps/MHz | 2 Mb 08_2_crypt | 60.466 sec | 165.38 Op/s | 0.00 uOps/MHz | 2 Mb 09_json_encode | 9.298 sec | 139.81 kOp/s | 0.00 uOps/MHz | 2 Mb 10_json_decode | 9.851 sec | 131.96 kOp/s | 0.00 uOps/MHz | 2 Mb 11_serialize | 7.082 sec | 183.55 kOp/s | 0.00 uOps/MHz | 2 Mb 12_unserialize | 5.484 sec | 237.04 kOp/s | 0.00 uOps/MHz | 2 Mb 13_array_fill | 0.000 sec | 0.00 uOp/s | 0.00 uOps/MHz | 2 Mb 14_array_range | 0.001 sec | 0.00 uOp/s | 0.00 uOps/MHz | 2 Mb 14_array_unset | 0.001 sec | 0.00 uOp/s | 0.00 uOps/MHz | 2 Mb 15_loops | 2.746 sec | 72.83 MOp/s | 0.00 uOps/MHz | 2 Mb 16_loop_ifelse | 2.200 sec | 22.73 MOp/s | 0.00 uOps/MHz | 2 Mb 17_loop_ternary | 4.697 sec | 10.64 MOp/s | 0.00 uOps/MHz | 2 Mb 18_1_loop_defined_access | 1.408 sec | 14.20 MOp/s | 0.00 uOps/MHz | 2 Mb 18_2_loop_undefined_access | 10.693 sec | 1.87 MOp/s | 0.00 uOps/MHz | 2 Mb 19_type_functions | 2.496 sec | 1.20 MOp/s | 0.00 uOps/MHz | 2 Mb 20_type_conversion | 2.496 sec | 1.20 MOp/s | 0.00 uOps/MHz | 2 Mb 24_xmlrpc_encode | 9.975 sec | 20.05 kOp/s | 0.00 uOps/MHz | 2 Mb 25_xmlrpc_decode | 3.592 sec | 8.35 kOp/s | 0.00 uOps/MHz | 2 Mb Total time: | *191.654* sec | 1.96 MOp/s | 0.00 uOps/MHz | 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 charactersOriginal file line number Diff line number Diff line change @@ -1,33 +1,30 @@ TEST NAME | SECONDS | OP/SEC | OP/SEC/MHz | MEMORY -|-|-|-|- 01_math | 1.101 sec | 908.17 kOp/s | 0.00 uOps/MHz | 2 Mb 02_string_concat | 0.000 sec | 3.59 TOp/s | 0.00 uOps/MHz | 2 Mb 03_1_string_number_concat | 1.436 sec | 3.48 MOp/s | 0.00 uOps/MHz | 2 Mb 03_2_string_number_format | 1.321 sec | 3.79 MOp/s | 0.00 uOps/MHz | 2 Mb 04_string_simple_functions | 1.980 sec | 656.67 kOp/s | 0.00 uOps/MHz | 2 Mb 05_string_multibyte | 0.808 sec | 160.83 kOp/s | 0.00 uOps/MHz | 2 Mb 06_string_manipulation | 3.738 sec | 347.82 kOp/s | 0.00 uOps/MHz | 2 Mb 07_regex | 2.398 sec | 542.20 kOp/s | 0.00 uOps/MHz | 2 Mb 08_1_hashing | 2.660 sec | 488.77 kOp/s | 0.00 uOps/MHz | 2 Mb 08_2_crypt | 10.045 sec | 995.54 Op/s | 0.00 uOps/MHz | 2 Mb 09_json_encode | 1.601 sec | 811.83 kOp/s | 0.00 uOps/MHz | 2 Mb 10_json_decode | 2.650 sec | 490.66 kOp/s | 0.00 uOps/MHz | 2 Mb 11_serialize | 1.044 sec | 1.24 MOp/s | 0.00 uOps/MHz | 2 Mb 12_unserialize | 1.531 sec | 849.39 kOp/s | 0.00 uOps/MHz | 2 Mb 13_array_fill | 0.000 sec | 0.00 uOp/s | 0.00 uOps/MHz | 2 Mb 14_array_range | 0.000 sec | 0.00 uOp/s | 0.00 uOps/MHz | 2 Mb 14_array_unset | 0.000 sec | 0.00 uOp/s | 0.00 uOps/MHz | 2 Mb 15_loops | 1.253 sec | 159.63 MOp/s | 0.00 uOps/MHz | 2 Mb 16_loop_ifelse | 1.011 sec | 49.47 MOp/s | 0.00 uOps/MHz | 2 Mb 17_loop_ternary | 1.432 sec | 34.91 MOp/s | 0.00 uOps/MHz | 2 Mb 18_1_loop_defined_access | 0.352 sec | 56.76 MOp/s | 0.00 uOps/MHz | 2 Mb 18_2_loop_undefined_access | 3.124 sec | 6.40 MOp/s | 0.00 uOps/MHz | 2 Mb 19_type_functions | 0.629 sec | 4.77 MOp/s | 0.00 uOps/MHz | 2 Mb 20_type_conversion | 0.628 sec | 4.78 MOp/s | 0.00 uOps/MHz | 2 Mb 24_xmlrpc_encode | 1.702 sec | 117.54 kOp/s | 0.00 uOps/MHz | 2 Mb 25_xmlrpc_decode | 1.303 sec | 23.02 kOp/s | 0.00 uOps/MHz | 2 Mb Total time: | *43.745 sec | 8.58 MOp/s | 0.00 uOps/MHz | -
lennardv2 revised this gist
Nov 24, 2020 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,6 @@ TEST NAME : SECONDS | OP/SEC | OP/SEC/MHz | MEMORY ------------------------------------------------------------------------------------------- 01_math : 5.389 sec | 185.56 kOp/s | 0.00 uOps/MHz | 2 Mb -
lennardv2 renamed this gist
Nov 24, 2020 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
lennardv2 revised this gist
Nov 24, 2020 . 3 changed files with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes.File renamed without changes.File renamed without changes. -
lennardv2 revised this gist
Nov 24, 2020 . 3 changed files with 68 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,33 @@ ------------------------------------------------------------------------------------------- TEST NAME : SECONDS | OP/SEC | OP/SEC/MHz | MEMORY ------------------------------------------------------------------------------------------- 01_math : 1.101 sec | 908.17 kOp/s | 0.00 uOps/MHz | 2 Mb 02_string_concat : 0.000 sec | 3.59 TOp/s | 0.00 uOps/MHz | 2 Mb 03_1_string_number_concat : 1.436 sec | 3.48 MOp/s | 0.00 uOps/MHz | 2 Mb 03_2_string_number_format : 1.321 sec | 3.79 MOp/s | 0.00 uOps/MHz | 2 Mb 04_string_simple_functions : 1.980 sec | 656.67 kOp/s | 0.00 uOps/MHz | 2 Mb 05_string_multibyte : 0.808 sec | 160.83 kOp/s | 0.00 uOps/MHz | 2 Mb 06_string_manipulation : 3.738 sec | 347.82 kOp/s | 0.00 uOps/MHz | 2 Mb 07_regex : 2.398 sec | 542.20 kOp/s | 0.00 uOps/MHz | 2 Mb 08_1_hashing : 2.660 sec | 488.77 kOp/s | 0.00 uOps/MHz | 2 Mb 08_2_crypt : 10.045 sec | 995.54 Op/s | 0.00 uOps/MHz | 2 Mb 09_json_encode : 1.601 sec | 811.83 kOp/s | 0.00 uOps/MHz | 2 Mb 10_json_decode : 2.650 sec | 490.66 kOp/s | 0.00 uOps/MHz | 2 Mb 11_serialize : 1.044 sec | 1.24 MOp/s | 0.00 uOps/MHz | 2 Mb 12_unserialize : 1.531 sec | 849.39 kOp/s | 0.00 uOps/MHz | 2 Mb 13_array_fill : 0.000 sec | 0.00 uOp/s | 0.00 uOps/MHz | 2 Mb 14_array_range : 0.000 sec | 0.00 uOp/s | 0.00 uOps/MHz | 2 Mb 14_array_unset : 0.000 sec | 0.00 uOp/s | 0.00 uOps/MHz | 2 Mb 15_loops : 1.253 sec | 159.63 MOp/s | 0.00 uOps/MHz | 2 Mb 16_loop_ifelse : 1.011 sec | 49.47 MOp/s | 0.00 uOps/MHz | 2 Mb 17_loop_ternary : 1.432 sec | 34.91 MOp/s | 0.00 uOps/MHz | 2 Mb 18_1_loop_defined_access : 0.352 sec | 56.76 MOp/s | 0.00 uOps/MHz | 2 Mb 18_2_loop_undefined_access : 3.124 sec | 6.40 MOp/s | 0.00 uOps/MHz | 2 Mb 19_type_functions : 0.629 sec | 4.77 MOp/s | 0.00 uOps/MHz | 2 Mb 20_type_conversion : 0.628 sec | 4.78 MOp/s | 0.00 uOps/MHz | 2 Mb 24_xmlrpc_encode : 1.702 sec | 117.54 kOp/s | 0.00 uOps/MHz | 2 Mb 25_xmlrpc_decode : 1.303 sec | 23.02 kOp/s | 0.00 uOps/MHz | 2 Mb ------------------------------------------------------------------------------------------- Total time: : 43.745 sec | 8.58 MOp/s | 0.00 uOps/MHz | Current PHP memory usage: : 2 Mb Peak PHP memory usage: : 954.91 kb 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,33 @@ ------------------------------------------------------------------------------------------- TEST NAME : SECONDS | OP/SEC | OP/SEC/MHz | MEMORY ------------------------------------------------------------------------------------------- 01_math : 5.389 sec | 185.56 kOp/s | 0.00 uOps/MHz | 2 Mb 02_string_concat : 0.000 sec | 1.08 TOp/s | 0.00 uOps/MHz | 2 Mb 03_1_string_number_concat : 5.017 sec | 996.62 kOp/s | 0.00 uOps/MHz | 2 Mb 03_2_string_number_format : 4.181 sec | 1.20 MOp/s | 0.00 uOps/MHz | 2 Mb 04_string_simple_functions : 5.701 sec | 228.01 kOp/s | 0.00 uOps/MHz | 2 Mb 05_string_multibyte : 2.603 sec | 49.93 kOp/s | 0.00 uOps/MHz | 2 Mb 06_string_manipulation : 14.105 sec | 92.17 kOp/s | 0.00 uOps/MHz | 2 Mb 07_regex : 11.417 sec | 113.87 kOp/s | 0.00 uOps/MHz | 2 Mb 08_1_hashing : 10.753 sec | 120.90 kOp/s | 0.00 uOps/MHz | 2 Mb 08_2_crypt : 60.466 sec | 165.38 Op/s | 0.00 uOps/MHz | 2 Mb 09_json_encode : 9.298 sec | 139.81 kOp/s | 0.00 uOps/MHz | 2 Mb 10_json_decode : 9.851 sec | 131.96 kOp/s | 0.00 uOps/MHz | 2 Mb 11_serialize : 7.082 sec | 183.55 kOp/s | 0.00 uOps/MHz | 2 Mb 12_unserialize : 5.484 sec | 237.04 kOp/s | 0.00 uOps/MHz | 2 Mb 13_array_fill : 0.000 sec | 0.00 uOp/s | 0.00 uOps/MHz | 2 Mb 14_array_range : 0.001 sec | 0.00 uOp/s | 0.00 uOps/MHz | 2 Mb 14_array_unset : 0.001 sec | 0.00 uOp/s | 0.00 uOps/MHz | 2 Mb 15_loops : 2.746 sec | 72.83 MOp/s | 0.00 uOps/MHz | 2 Mb 16_loop_ifelse : 2.200 sec | 22.73 MOp/s | 0.00 uOps/MHz | 2 Mb 17_loop_ternary : 4.697 sec | 10.64 MOp/s | 0.00 uOps/MHz | 2 Mb 18_1_loop_defined_access : 1.408 sec | 14.20 MOp/s | 0.00 uOps/MHz | 2 Mb 18_2_loop_undefined_access : 10.693 sec | 1.87 MOp/s | 0.00 uOps/MHz | 2 Mb 19_type_functions : 2.496 sec | 1.20 MOp/s | 0.00 uOps/MHz | 2 Mb 20_type_conversion : 2.496 sec | 1.20 MOp/s | 0.00 uOps/MHz | 2 Mb 24_xmlrpc_encode : 9.975 sec | 20.05 kOp/s | 0.00 uOps/MHz | 2 Mb 25_xmlrpc_decode : 3.592 sec | 8.35 kOp/s | 0.00 uOps/MHz | 2 Mb ------------------------------------------------------------------------------------------- Total time: : 191.654 sec | 1.96 MOp/s | 0.00 uOps/MHz | Current PHP memory usage: : 2 Mb Peak PHP memory usage: : 954.94 kb 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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,7 @@ # Tutorial: Installing the MAMP stack (php, apache & mysql) on Apple Silicon ARM (native) In this tutorial, we'll build the the nescessary packages for ARM via homebrew. After that we'll configure apache2 for using virtual hosts. The native php is ofcourse way faster, see the results of [this](https://github.com/rusoft/php-simple-benchmark-script/blob/master/bench.php) benchmark below. ## Installing homebrew -
lennardv2 revised this gist
Nov 24, 2020 . 1 changed file with 7 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -148,6 +148,13 @@ Add: ErrorLog "/Users/{username}/MAMP/www/dev.example.com/logs/error.log" CustomLog "/Users/{username}/MAMP/www/dev.example.com/logs/custom.log" common </VirtualHost> <Directory /Users/{username}/MAMP/www/dev.example.com/public_html> Options FollowSymLinks Includes AllowOverride All Order allow,deny Allow from all </Directory> ``` Add dev.example.com to your hosts file -
lennardv2 revised this gist
Nov 23, 2020 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -164,3 +164,6 @@ Now restart: Vist http://dev.example.com:8080 [](https://hits.seeyoufarm.com)
NewerOlder