-
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 small overload benchmark for PHP 7.4.0
- Loading branch information
0 parents
commit 99efdd6
Showing
68 changed files
with
30,356 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,23 @@ | ||
version: '2.1' | ||
|
||
jobs: | ||
ValidateBenchmark: | ||
docker: | ||
- image: phpbenchmarks/benchmark-kit:4 | ||
working_directory: /var/www/benchmark | ||
environment: | ||
NGINX_PORT: 80 | ||
steps: | ||
- checkout | ||
- run: | ||
name: /var/entrypoint.sh | ||
command: /var/entrypoint.sh --nginx-as-service | ||
- run: | ||
name: "benchmark:validate" | ||
command: "/var/benchmark-kit/bin/console benchmark:validate" | ||
|
||
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,4 @@ | ||
/composer.lock | ||
.idea/ | ||
vendor/ | ||
composer.lock |
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,71 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace PhpBenchmarks\BenchmarkConfiguration; | ||
|
||
class Configuration | ||
{ | ||
public static function getComponentType(): int | ||
{ | ||
return 1; | ||
} | ||
|
||
public static function getComponentName(): string | ||
{ | ||
return 'PHP'; | ||
} | ||
|
||
public static function getComponentSlug(): string | ||
{ | ||
return 'php'; | ||
} | ||
|
||
public static function isCompatibleWithPhp(int $major, int $minor): bool | ||
{ | ||
return | ||
($major === 7 && $minor === 4); | ||
} | ||
|
||
public static function getEntryPointFileName(): string | ||
{ | ||
return 'public/index.php'; | ||
} | ||
|
||
public static function getBenchmarkUrl(): string | ||
{ | ||
return '/'; | ||
} | ||
|
||
public static function getCoreDependencyName(): string | ||
{ | ||
return 'php'; | ||
} | ||
|
||
public static function getCoreDependencyMajorVersion(): int | ||
{ | ||
return 7; | ||
} | ||
|
||
public static function getCoreDependencyMinorVersion(): int | ||
{ | ||
return 4; | ||
} | ||
|
||
public static function getCoreDependencyPatchVersion(): int | ||
{ | ||
return 0; | ||
} | ||
|
||
public static function getBenchmarkType(): int | ||
{ | ||
return 4; | ||
} | ||
|
||
public static function getSourceCodeUrls(): array | ||
{ | ||
return [ | ||
'entryPoint' => 'https://github.com/phpbenchmarks/php/blob/7.4_templating-small-overload/public/index.php' | ||
]; | ||
} | ||
} |
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 |
Oops, something went wrong.