https://github.com/phpbench/pipeline
PHPBench Pipeline
https://github.com/phpbench/pipeline
Last synced: about 2 months ago
JSON representation
PHPBench Pipeline
- Host: GitHub
- URL: https://github.com/phpbench/pipeline
- Owner: phpbench
- Created: 2018-01-09T15:41:53.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-25T17:09:14.000Z (almost 8 years ago)
- Last Synced: 2025-03-12T20:24:06.326Z (11 months ago)
- Language: PHP
- Size: 215 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
PHPBench Pipeline
=================
[](https://travis-ci.org/phpbench/pipeline)
Composable performance sampling framework.
```php
use PhpBench\Pipeline\Core\PipelineBuilder;
$builder = PipelineBuilder::createWithDefaults()
->stage('parameter/serial', [
'name' => 'algo',
'values' => hash_algos(),
])
->stage('sampler/callable', [
'callable' => function ($data) { hash($data['algo'], 'Hello World'); },
'iterations' => 100,
])
->stage('encoder/json')
->stage('output/stream')
->build()
->run();
```