Skip to content
GitLab
Explore
Sign in
This is an archived project. Repository and other project resources are read-only.
Hazaar
hazaar-cache
Wiki
Home
Home
· Changes
Page history
jamie created page: home
authored
May 18, 2017
by
Jamie Carl
Hide whitespace changes
Inline
Side-by-side
home.md
0 → 100644
View page @
2707edac
# Benchmarking
```
PHP
class IndexController extends \Hazaar\Controller\Basic {
protected function init() {
}
public function index() {
dump(\Hazaar\Cache\Benchmark::getAvailableBackends());
$configs = array(
'file' => null,
'redis' => array(
'server' => '10.0.0.31'
),
'apc' => null,
'memcached' => array(
'server' => '10.0.0.31'
)
);
$bench = new \Hazaar\Cache\Benchmark(null, $configs);
dump($bench->run(8388608, 8388608));
}
}
```
\ No newline at end of file