Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jeroenvisser101/php-bench

Super simple benchmarking tool
https://github.com/jeroenvisser101/php-bench

Last synced: 19 days ago
JSON representation

Super simple benchmarking tool

Awesome Lists containing this project

README

        

# PHP Benchmarks
This project aims to do nothing more than simple and easy benchmarking. I always
found benchmarking to be too much of a hassle, and guess the best one on my
knowledge instead. With this simple function, I can do a benchmark in under 2
minutes. That makes it *way* easier to benchmark your PHP code.

## How to use
Usage is very simple. There's one function, `benchmark(string $name, callable
$fn, int $times = 1000000)`. Usage is as follows:

``` php