| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Benchmark kit is a tool to add a framework or a template engine benchmark on phpbenchmarks.com.
You will need Docker ^18.06 to make it work.
Everything you need to use benchmark kit is is phpbenchkit.sh.
Install it as global bin and give it execute mode:
sudo wget https://raw.githubusercontent.com/phpbenchmarks/benchmark-kit/master/phpbenchkit.sh -O /usr/local/bin/phpbenchkit
sudo chmod +x /usr/local/bin/phpbenchkitThen call phpbenchkit, it will add vhosts and run Docker benchmatk kit container:
# Add vhosts if needed, run Docker container and call bin/console to show available commands
phpbenchkit
# Restart Docker container
phpbenchkit --restart
# Stop Docker container
phpbenchkit --stop
# Update docker image and phpbenchkit command
phpbenchkit --selfupdateList available commands:
phpbenchkitAlmost all commands accept this option:
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.
To make your benchmark work you will need some files into .phpbenchmarks directory:
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.
phpbenchkit composer:update
# you can specify a version of php
phpbenchkit composer:update 7.1You can validate each part of your configuration with validate.
See list of validation commands with with phpbenchkit validate:.
Choose the component type and benchmark type you want to code:
Note that all component benchmarks needs to bo validated to make your component appear on phpbenchmarks.com.
Docker container provide a domain to test your code: http://benchmark-kit.loc.
To change PHP version (CLI and FPM):
phpbenchkit When you think it's ok, use phpbenchkit validate:benchmark to validate it.
When phpbenchkit validate:benchmark say it's good, push your code, then you can tell us to launch benchmarks with contact form.
Thank you!
| Back | FazBrowse Home | New Git URL |