Skip to content

Commit

Permalink
Compatibility with benchmark kit 4.0.0-DEV
Browse files Browse the repository at this point in the history
steevanb committed Jan 14, 2020
1 parent 57a1f5e commit a3f935b
Showing 68 changed files with 154 additions and 84 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: 4
relativeUrl: /
sourceCode:
entryPoint: public/index.php
urls:
template: 'https://github.com/phpbenchmarks/php/tree/7.2.26_templating-small-overload_0/public/index.php'
templatingLayout: 'https://github.com/phpbenchmarks/php/tree/7.2.26_templating-small-overload_0/public/index.php#L6'
templatingBlocks: 'https://github.com/phpbenchmarks/php/tree/7.2.26_templating-small-overload_0/templates/layout/layout_start.php#L31'
templatingFunctions: 'https://github.com/phpbenchmarks/php/tree/7.2.26_templating-small-overload_0/public/index.php#L8'
templatingMacros: 'https://github.com/phpbenchmarks/php/tree/7.2.26_templating-small-overload_0/public/index.php#L432'
templatingEscapeStringHtml: 'https://github.com/phpbenchmarks/php/tree/7.2.26_templating-small-overload_0/public/index.php#856'
templatingEscapeStringJs: 'https://github.com/phpbenchmarks/php/tree/7.2.26_templating-small-overload_0/public/index.php#2877'
templatingVariables: 'https://github.com/phpbenchmarks/php/tree/7.2.26_templating-small-overload_0/public/index.php#L5933'
templatingOutputRaw: 'https://github.com/phpbenchmarks/php/tree/7.2.26_templating-small-overload_0/public/index.php#L5933'
templatingOutputUnknownVariables: 'https://github.com/phpbenchmarks/php/tree/7.2.26_templating-small-overload_0/public/index.php#L6855'
templatingOutputMethodCalls: 'https://github.com/phpbenchmarks/php/tree/7.2.26_templating-small-overload_0/public/index.php#L7277'
templatingIncludeTemplates: 'https://github.com/phpbenchmarks/php/tree/7.2.26_templating-small-overload_0/public/index.php#L9308'
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.
File renamed without changes.
39 changes: 28 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
@@ -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.

110 changes: 54 additions & 56 deletions public/index.php

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@
// Create 50 blocks and fill them all
// -------------------------------------------------------------------------------------------------------------

require __DIR__ . '/../overload/blocks.php';
require __DIR__ . '/../../src/blocks.php';
?>
<div class="row">
<div class="col-md-12">
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit a3f935b

Please sign in to comment.