Total Complexity | 3 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
12 | class SunriseBench |
||
13 | { |
||
14 | protected $maxRoutes = 1000; |
||
15 | protected $request; |
||
16 | |||
17 | public function init() |
||
18 | { |
||
19 | $uri = \sprintf('/route/%d', $this->maxRoutes); |
||
20 | |||
21 | $this->request = (new ServerRequestFactory) |
||
22 | ->createServerRequest('GET', $uri); |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * @Warmup(1) |
||
27 | * @Revs(10) |
||
28 | * @Iterations(100) |
||
29 | */ |
||
30 | public function benchSunriseMatch() |
||
44 | } |
||
45 | } |
||
46 |