Skip to content

Commit

Permalink
Merge pull request #19 from boesing/feature/benchmark
Browse files Browse the repository at this point in the history
Introduce benchmarks
  • Loading branch information
boesing committed Aug 8, 2021
2 parents b0373fa + 65ead8b commit 7f43345
Show file tree
Hide file tree
Showing 4 changed files with 890 additions and 19 deletions.
19 changes: 19 additions & 0 deletions benchmark/MemoryStorageAdapterBench.php
@@ -0,0 +1,19 @@
<?php

namespace LaminasBench\Cache;

use Laminas\Cache\Storage\Adapter\Benchmark\AbstractStorageAdapterBenchmark;
use Laminas\Cache\Storage\Adapter\Memory;

/**
* @Revs(100)
* @Iterations(10)
* @Warmup(1)
*/
class MemoryStorageAdapterBench extends AbstractStorageAdapterBenchmark
{
public function __construct()
{
parent::__construct(new Memory());
}
}
4 changes: 3 additions & 1 deletion composer.json
Expand Up @@ -15,6 +15,7 @@
},
"require-dev": {
"laminas/laminas-cache": "3.0.x-dev",
"laminas/laminas-cache-storage-adapter-benchmark": "^1.0",
"laminas/laminas-cache-storage-adapter-test": "2.0.x-dev",
"laminas/laminas-coding-standard": "~2.3.0",
"psalm/plugin-phpunit": "^0.16.1",
Expand All @@ -38,7 +39,8 @@
"autoload-dev": {
"psr-4": {
"LaminasTest\\Cache\\Storage\\Adapter\\": "test/unit",
"LaminasTest\\Cache\\Psr\\": "test/integration/Psr"
"LaminasTest\\Cache\\Psr\\": "test/integration/Psr",
"LaminasBench\\Cache\\": "benchmark/"
}
},
"scripts": {
Expand Down

0 comments on commit 7f43345

Please sign in to comment.