-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Templating big overload benchmark for PHP 8.0.0
- Loading branch information
0 parents
commit 36ae2f3
Showing
518 changed files
with
200,688 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
version: '2.1' | ||
|
||
jobs: | ||
ValidateBenchmark: | ||
docker: | ||
- image: phpbenchmarks/benchmark-kit:4 | ||
working_directory: /var/www/benchmark | ||
steps: | ||
- checkout | ||
- run: | ||
name: entrypoint | ||
command: entrypoint --nginx-as-service | ||
- run: | ||
name: "validate:benchmark" | ||
command: "phpbenchkit validate:benchmark -vvv" | ||
|
||
workflows: | ||
version: '2.1' | ||
BenchmarkKit: | ||
jobs: | ||
- ValidateBenchmark |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/composer.lock | ||
/.idea | ||
/vendor |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
component: | ||
slug: php | ||
benchmark: | ||
type: templating-big-overload | ||
relativeUrl: / | ||
sourceCode: | ||
entryPoint: public/index.php | ||
urls: | ||
template: 'https://github.com/phpbenchmarks/php/tree/8.0.0_templating-big-overload_0/public/index.php' | ||
templatingLayout: 'https://github.com/phpbenchmarks/php/tree/8.0.0_templating-big-overload_0/public/index.php#L6' | ||
templatingBlocks: 'https://github.com/phpbenchmarks/php/tree/8.0.0_templating-big-overload_0/templates/layout/layout_start.php#L10' | ||
templatingFunctions: 'https://github.com/phpbenchmarks/php/tree/8.0.0_templating-big-overload_0/public/index.php#L8' | ||
templatingMacros: 'https://github.com/phpbenchmarks/php/tree/8.0.0_templating-big-overload_0/public/index.php#L4032' | ||
templatingEscapeStringHtml: 'https://github.com/phpbenchmarks/php/tree/8.0.0_templating-big-overload_0/public/index.php#8056' | ||
templatingEscapeStringJs: 'https://github.com/phpbenchmarks/php/tree/8.0.0_templating-big-overload_0/public/index.php#28077' | ||
templatingVariables: 'https://github.com/phpbenchmarks/php/tree/8.0.0_templating-big-overload_0/public/index.php#L5933' | ||
templatingOutputRaw: 'https://github.com/phpbenchmarks/php/tree/8.0.0_templating-big-overload_0/public/index.php#L58133' | ||
templatingOutputUnknownVariables: 'https://github.com/phpbenchmarks/php/tree/8.0.0_templating-big-overload_0/public/index.php#L67155' | ||
templatingOutputMethodCalls: 'https://github.com/phpbenchmarks/php/tree/8.0.0_templating-big-overload_0/public/index.php#L71177' | ||
templatingIncludeTemplates: 'https://github.com/phpbenchmarks/php/tree/8.0.0_templating-big-overload_0/public/index.php#L91208' | ||
coreDependency: | ||
name: php | ||
version: 8.0.0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
server { | ||
listen ____PORT____; | ||
server_name ____HOST____; | ||
root ____INSTALLATION_PATH____/____ENTRY_POINT_FILE_PATH____; | ||
location / { | ||
try_files $uri /____ENTRY_POINT_FILE_NAME____$is_args$args; | ||
} | ||
location ~ ____ENTRY_POINT_FILE_NAME____(/|$) { | ||
fastcgi_pass unix:/run/php/____PHP_FPM_SOCK____; | ||
fastcgi_split_path_info ^(.+.php)(/.*)$; | ||
include fastcgi_params; | ||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
fastcgi_param HTTPS off; | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
# add commands to initialize benchmark: clear cache and logs, warm up cache etc | ||
composer install --no-dev --classmap-authoritative --ansi |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
; ---------------------------------------------------------------------------------------------------------------------- | ||
; This file will be added to PHP ini files loaded before benchmarking. | ||
; Configure what you need here. | ||
; | ||
; /!\ Do NOT configure opcache.enable: it will be configured automatically. | ||
; /!\ Do NOT configure opcache.preload and opcache.preload_user: it will be configured automatically. /!\ | ||
; ---------------------------------------------------------------------------------------------------------------------- | ||
|
||
; Examples of configuration you could change for your needs. | ||
|
||
; The maximum number of keys (scripts) in the OPcache hash table. | ||
; Only numbers between 200 and 1000000 are allowed. | ||
;opcache.max_accelerated_files=10000 | ||
|
||
; If disabled, all PHPDoc comments are dropped from the code to reduce the | ||
; size of the optimized code. | ||
;opcache.save_comments=1 | ||
|
||
; A bitmask, where each bit enables or disables the appropriate OPcache | ||
; passes | ||
;opcache.optimization_level=0x7FFFBFFF | ||
|
||
; Allows exclusion of large files from being cached. By default all files | ||
; are cached. | ||
;opcache.max_file_size=0 | ||
|
||
; Enables or disables opcode caching in shared memory. | ||
;opcache.file_cache_only=0 | ||
|
||
; The OPcache shared memory storage size. | ||
;opcache.memory_consumption=128 |
Oops, something went wrong.