2017 © Pedro Peláez
 

library benchmark

A small PHP Benchmark project

image

hyperized/benchmark

A small PHP Benchmark project

  • Tuesday, February 6, 2018
  • by hyperized
  • Repository
  • 0 Watchers
  • 2 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 9 Open issues
  • 2 Versions
  • 22 % Grown

The README.md

PHP benchmark

Build Status Scrutinizer Code Quality FOSSA Status, (*1)

Simple PHP server benchmarking., (*2)

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;, (*3)

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., (*4)

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., (*5)

Security

Note that you might want to add additional security to your server to not expose the config.yml file to your webtraffic., (*6)

For Apache with mod_rewrite you can use something like this in your .htaccess file:, (*7)

<Files "config.yml">
    deny from all
</Files>

Contribution

I'm open to improvements and new benchmarks via pull requests, (*8)

Issues can be reported through Issues. Please include the full output of the script and your config file without the password., (*9)

Credit

Credit where credit is due:, (*10)

  • 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, (*11)

The Versions

06/02 2018

dev-master

9999999-dev

A small PHP Benchmark project

  Sources   Download

GPL-3.0-only

The Requires

 

by Gerben Geijteman

php mysql modules benchmark disk

06/02 2018

dev-MySQLBenchmark

dev-MySQLBenchmark

A small PHP Benchmark project

  Sources   Download

GPL-3.0-only

The Requires

 

by Gerben Geijteman

php mysql modules benchmark disk