Download the PHP package phpbenchmarks/benchmark-kit without Composer
On this page you can find all versions of the php package phpbenchmarks/benchmark-kit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download phpbenchmarks/benchmark-kit
More information about phpbenchmarks/benchmark-kit
Files in phpbenchmarks/benchmark-kit
Package benchmark-kit
Short Description PHPBenchmarks kit to add benchmarks
License proprietary
Informations about the package benchmark-kit
Benchmark kit is a tool to add a framework or a template engine benchmark on phpbenchmarks.com.
Documentation
- Changelog
- Understand repositories and branches
Requirements
You will need Docker ^18.06 to make it work.
Installation
Everything you need to use benchmark kit is is phpbenchkit.sh.
Install it as global bin and give it execute mode:
Then call phpbenchkit
, it will add vhosts and run Docker benchmatk kit container:
Benchmark kit commands
List available commands:
Almost all commands accept this option:
--skip-source-code-urls
: don't validate source code urls, usefull while you are in development.
1 Ask us to create repositories
You can ask us to create repositories with contact form.
Tell us which component and version you want to benchmark,
and your github username
to allow you to commit on this repositories.
We will send you an email when repositories will be created.
2 Initialize code
To make your benchmark work you will need some files into .phpbenchmarks
directory:
Configuration.php
: configuration of benchmarked component.initBenchmark.sh
: called before the benchmark to initialize everything (composer install, cache warmup etc).vhost.conf
: nginx virtual host configuration.responseBody/
: benchmark url body will be compared to files in this directory to validate it's content.composer/composer.lock.phpX.Y
: created byphpbenchkit composer:update
to install dependencies by PHP version.
All this files can be created and configured with configure
commands.
See list of configure commands with phpbenchkit configure:
.
You can call phpbenchkit configure:benchmark
to create all of them or use the one your need.
You can validate each part of your configuration with validate
.
See list of validation commands with with phpbenchkit validate:
.
4 Add required feaures for benchmarks
Choose the component type and benchmark type you want to code:
- Framework
- Hello world benchmark
- REST API benchmark
- Template engine
- Hello world benchmark
Note that all
component benchmarks needs to bo validated to make your component appear on phpbenchmarks.com.
5 Test and validate your code
Docker container provide a domain to test your code: http://benchmark-kit.loc
.
To change PHP version (CLI and FPM):
When you think it's ok, use phpbenchkit validate:benchmark
to validate it.
6 Submit your code
When phpbenchkit validate:benchmark
say it's good, push your code,
then you can tell us to launch benchmarks with contact form.
Thank you!