crysalead / benchmark
Benchmarking library
Installs: 100
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
pkg:composer/crysalead/benchmark
Requires
- php: >=5.5
Requires (Dev)
- crysalead/kahlan: ~2.3
This package is auto-updated.
Last update: 2025-09-29 01:38:51 UTC
README
Installation
composer require crysalead/benchmark
Usage
use Lead\Benchmark\Benchmark; $bench = new Benchmark(); $bench->repeat(10000); $x = 'a param'; $bench->run('task1', function($x) { //Task1 }, $x); $bench->run('task2', function($x) { //Task2 }, $x); $bench->run('task3', function($x) { //Task3 }, $x); echo $bench->report();