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 17, 2020
1 parent 565ddd1 commit 91e3251
Show file tree
Hide file tree
Showing 518 changed files with 606 additions and 536 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
/vendor
/composer.lock
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: 5
relativeUrl: /
sourceCode:
entryPoint: public/index.php
urls:
template: 'https://github.com/phpbenchmarks/php/tree/7.2.26_templating-big-overload_0/public/index.php'
templatingLayout: 'https://github.com/phpbenchmarks/php/tree/7.2.26_templating-big-overload_0/public/index.php#L6'
templatingBlocks: 'https://github.com/phpbenchmarks/php/tree/7.2.26_templating-big-overload_0/templates/layout/layout_start.php#L10'
templatingFunctions: 'https://github.com/phpbenchmarks/php/tree/7.2.26_templating-big-overload_0/public/index.php#L8'
templatingMacros: 'https://github.com/phpbenchmarks/php/tree/7.2.26_templating-big-overload_0/public/index.php#L4032'
templatingEscapeStringHtml: 'https://github.com/phpbenchmarks/php/tree/7.2.26_templating-big-overload_0/public/index.php#8056'
templatingEscapeStringJs: 'https://github.com/phpbenchmarks/php/tree/7.2.26_templating-big-overload_0/public/index.php#28077'
templatingVariables: 'https://github.com/phpbenchmarks/php/tree/7.2.26_templating-big-overload_0/public/index.php#L5933'
templatingOutputRaw: 'https://github.com/phpbenchmarks/php/tree/7.2.26_templating-big-overload_0/public/index.php#L58133'
templatingOutputUnknownVariables: 'https://github.com/phpbenchmarks/php/tree/7.2.26_templating-big-overload_0/public/index.php#L67155'
templatingOutputMethodCalls: 'https://github.com/phpbenchmarks/php/tree/7.2.26_templating-big-overload_0/public/index.php#L71177'
templatingIncludeTemplates: 'https://github.com/phpbenchmarks/php/tree/7.2.26_templating-big-overload_0/public/index.php#L91208'
coreDependency:
name: php
version: 7.2.26
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;
}
}
6 changes: 3 additions & 3 deletions composer.lock.php7.2 → .phpbenchmarks/php/7.2/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.2/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.2/php.ini
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" type="text/css" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css">
<title>Small overload benchmark</title>
<title>Big overload benchmark</title>
</head>
<body>
<div class="row">
Expand Down
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.2 benchmarks results on
[benchmarks results page](http://www.phpbenchmarks.com/en/benchmark/php/7.2).

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
4 changes: 2 additions & 2 deletions 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.2.*"
"php": "7.2.26"
}
}
}
8 changes: 0 additions & 8 deletions init_benchmark.sh

This file was deleted.

Loading

0 comments on commit 91e3251

Please sign in to comment.