Skip to content

Commit

Permalink
Compatibility with benchmark kit 4.0.0-DEV
Browse files Browse the repository at this point in the history
  • Loading branch information
steevanb committed Jan 14, 2020
1 parent 688c065 commit 2d97a3c
Show file tree
Hide file tree
Showing 68 changed files with 152 additions and 82 deletions.
21 changes: 21 additions & 0 deletions .circleci/config.yml
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: /var/entrypoint.sh
command: /var/entrypoint.sh --nginx-as-service
- run:
name: "benchmark:validate"
command: "/var/benchmark-kit/bin/console benchmark:validate:all"

workflows:
version: '2.1'
BenchmarkKit:
jobs:
- ValidateBenchmark
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
.idea/
vendor/
composer.lock
/composer.lock
/vendor
23 changes: 23 additions & 0 deletions .phpbenchmarks/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
component:
id: 1
benchmark:
type: 4
relativeUrl: /
sourceCode:
entryPoint: public/index.php
urls:
template: 'https://github.com/phpbenchmarks/php/tree/7.1.33_templating-small-overload_0/public/index.php'
templatingLayout: 'https://github.com/phpbenchmarks/php/tree/7.1.33_templating-small-overload_0/public/index.php#L6'
templatingBlocks: 'https://github.com/phpbenchmarks/php/tree/7.1.33_templating-small-overload_0/templates/layout/layout_start.php#L31'
templatingFunctions: 'https://github.com/phpbenchmarks/php/tree/7.1.33_templating-small-overload_0/public/index.php#L8'
templatingMacros: 'https://github.com/phpbenchmarks/php/tree/7.1.33_templating-small-overload_0/public/index.php#L432'
templatingEscapeStringHtml: 'https://github.com/phpbenchmarks/php/tree/7.1.33_templating-small-overload_0/public/index.php#856'
templatingEscapeStringJs: 'https://github.com/phpbenchmarks/php/tree/7.1.33_templating-small-overload_0/public/index.php#2877'
templatingVariables: 'https://github.com/phpbenchmarks/php/tree/7.1.33_templating-small-overload_0/public/index.php#L5933'
templatingOutputRaw: 'https://github.com/phpbenchmarks/php/tree/7.1.33_templating-small-overload_0/public/index.php#L5933'
templatingOutputUnknownVariables: 'https://github.com/phpbenchmarks/php/tree/7.1.33_templating-small-overload_0/public/index.php#L6855'
templatingOutputMethodCalls: 'https://github.com/phpbenchmarks/php/tree/7.1.33_templating-small-overload_0/public/index.php#L7277'
templatingIncludeTemplates: 'https://github.com/phpbenchmarks/php/tree/7.1.33_templating-small-overload_0/public/index.php#L9308'
coreDependency:
name: php
version: 7.1.33
15 changes: 15 additions & 0 deletions .phpbenchmarks/nginx/vhost.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
server {
listen ____PORT____;
server_name ____HOST____;
root ____INSTALLATION_PATH____/public;
location / {
try_files $uri /index.php$is_args$args;
}
location ~ ^/(index).php(/|$) {
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;
}
}
4 changes: 2 additions & 2 deletions composer.lock.php7.1 → .phpbenchmarks/php/7.1/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .phpbenchmarks/php/7.1/initBenchmark.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

set -e

composer install --no-dev --classmap-authoritative --ansi
Empty file added .phpbenchmarks/php/7.1/php.ini
Empty file.
File renamed without changes.
39 changes: 28 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,41 @@
<a href="http://www.phpbenchmarks.com" target="_blank">www.phpbenchmarks.com</a>
</p>

## What is www.phpbenchmarks.com ?
## What is www.phpbenchmarks.com?

You will find lot of benchmarks for PHP frameworks and template engines.
You will find a lot of benchmarks for PHP and PHP libraries on [phpbenchmarks.com](http://www.phpbenchmarks.com).

You can compare results between Apache Bench and Siege, and PHP 5.6 to 7.2.
Benchmarks results are available from PHP 5.6 to latest version.

## What is this repository ?
Our benchmarking protocol is available on [benchmarking protocol page](http://www.phpbenchmarks.com/en/documentation/benchmarking-protocol).

It's benchmark common code for PHP benchmarks.
## What is this repository?

Switch branch to select your PHP major version and benchmark you want to see.
It contains PHP benchmark code.

See all PHP benchmarked versions on [phpbenchmarks/php](https://github.com/phpbenchmarks/php).

You can find how we benchmark on [phpbenchmarks.com](http://www.phpbenchmarks.com/en/benchmark-protocol.html).
Switch branch to select version and benchmark you want to see.

## Benchmarks

You can find all PHP benchmarks results on [phpbenchmarks.com](http://www.phpbenchmarks.com/en/benchmark/php.html).
You can find PHP 7.1 benchmarks results on
[benchmarks results page](http://www.phpbenchmarks.com/en/benchmark/php/7.1).

See all PHP benchmarked versions on [select version page](http://www.phpbenchmarks.com/en/benchmark/php/version).

## Community

Go to [community page](http://www.phpbenchmarks.com/en/community) to see the Hall of fame, or download the benchmark kit to add your code!

## How version works?

We do not follow semantic version for this repository.

Here is an explanation about our versioning system:

`X.Y.Z_benchmark-slug_W`

Scores are too low ? Do not hesitate to create a pull request, and ask a new benchmark !
* `X`: PHP major version.
* `Y`: PHP minor version.
* `Z`: PHP patch version.
* `benchmark-slug`: slug of the benchmark, list available on [documentation page](http://www.phpbenchmarks.com/en/documentation).
* `W`: benchmark version
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"license": "proprietary",
"type": "project",
"require": {
"php": "7.1.*"
"php": "7.1.33"
}
}
8 changes: 0 additions & 8 deletions init_benchmark.sh

This file was deleted.

Loading

0 comments on commit 2d97a3c

Please sign in to comment.