This repository has been archived by the owner on Oct 27, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
mnapoli edited this page Sep 7, 2012
·
6 revisions
PHPBench is a benchmark framework for PHP.
It is intended to be for benchmark what PHPUnit is for testing. Using PHPBench is pretty much straightforward if you've used PHPUnit (though way less complete than PHPUnit).
To run the project, get composer:
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar install
Then you can launch the bench examples:
$ cd bench-examples/
$ php BenchSuite.php
Download a release (see on the home page) and just copy the PHPBench
folder that is in src/
.
This folder contains the PHPBench library, so put it wherever you want and include the files you need or use your own autoloading system.
- Bench example - see what the bench looks like, and how to use it
PHPBench is launched via the command line, using the php
command : php MyBenchSuite.php
. So there is nothing else than the library to install.