@@ -23,7 +23,7 @@ class IndexController extends \Hazaar\Controller\Basic {
...
@@ -23,7 +23,7 @@ class IndexController extends \Hazaar\Controller\Basic {
$bench=new\Hazaar\Cache\Benchmark(null,$configs);
$bench=new\Hazaar\Cache\Benchmark(null,$configs);
dump($bench->run(8388608,8388608));
dump($bench->run(1024000,8192000));
}
}
...
@@ -31,34 +31,96 @@ class IndexController extends \Hazaar\Controller\Basic {
...
@@ -31,34 +31,96 @@ class IndexController extends \Hazaar\Controller\Basic {
?>
?>
```
```
In the above code we sampled payload sizes from 1MB to 8MB. As you can see the performance can differ greatly based on the payload size and the backend being used. In this example, the REDIS server was located on a separate host on the network. If the REDIS server was on the same host, this would produce difference results. This is why benchmarking is useful.