Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hyperized/benchmark
PHP Server benchmarking
https://github.com/hyperized/benchmark
benchmark cpu disk mysql mysqli php php7 server
Last synced: 27 days ago
JSON representation
PHP Server benchmarking
- Host: GitHub
- URL: https://github.com/hyperized/benchmark
- Owner: hyperized
- License: mit
- Created: 2018-01-30T20:32:55.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-06-24T04:44:28.000Z (5 months ago)
- Last Synced: 2024-09-28T15:41:34.360Z (about 1 month ago)
- Topics: benchmark, cpu, disk, mysql, mysqli, php, php7, server
- Language: PHP
- Size: 50.8 KB
- Stars: 16
- Watchers: 2
- Forks: 3
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP benchmark
[![Build Status](https://scrutinizer-ci.com/g/hyperized/benchmark/badges/build.png?b=master)](https://scrutinizer-ci.com/g/hyperized/benchmark/build-status/master) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/hyperized/benchmark/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/hyperized/benchmark/?branch=master)
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fhyperized%2Fbenchmark.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fhyperized%2Fbenchmark?ref=badge_shield)Simple PHP server benchmarking.
This tool can help you determine if a hosting environment is suited for your projects in terms of:
- PHP.ini settings that affect uploads;
- CPU speed available to your PHP instance;
- Disk IOPS available to your PHP instance;
- MySQL query speed;## How to install:
composer create-project hyperized/benchmark:dev-master
Copy the `/config/config.yml.example` to `/config/config.yml` and adjust to your preferences.
## How to run:### Locally with CLI
php benchmark.php### Locally with development server
php -S localhost:8000 benchmark.php
### Remotely
Install on the server by running composer and visiting the `/benchmark.php` page of the directory the project is installed at.### Security
Note that you might want to add additional security to your server to not expose the config.yml file to your webtraffic.For Apache with `mod_rewrite` you can use something like this in your `.htaccess` file:
deny from all
## Contribution
I'm open to improvements and new benchmarks via [pull requests](https://github.com/hyperized/benchmark/pulls)Issues can be reported through [Issues](https://github.com/hyperized/benchmark/issues).
Please include the full output of the script and your config file without the password.## Credit
Credit where credit is due:- https://github.com/odan/benchmark-php
- https://gist.github.com/RamadhanAmizudin/ca87f7be83c6237bb070
- https://stackoverflow.com/a/25370978/1757763
- http://php.net/manual/en/function.rmdir.php#119949## License
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fhyperized%2Fbenchmark.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fhyperized%2Fbenchmark?ref=badge_large)