PHP Classes

File: tests/league/react-1000.php

Recommend this page to a friend!
  Classes of Alexey Dodonov   Mezon Router Benchmark   tests/league/react-1000.php   Download  
File: tests/league/react-1000.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Mezon Router Benchmark
Measure the performance of PHP framework routers
Author: By
Last change:
Date: 1 year ago
Size: 553 bytes
 

Contents

Class file image Download
<?php
use Psr\Http\Message\ResponseInterface;
use
Psr\Http\Message\ServerRequestInterface;

$benchmark->registerTest(
    function () {
       
// It is not available to work in react style, because is prepares routes while dispatching request
       
return 1;
    },
   
"[league/react/1000 routes] Not available\r\n");

$benchmark->registerTest(
    function () {
       
// It is not available to work in react style, because is prepares routes while dispatching request
       
return 1;
    },
   
"[league/react/1000 routes] Not available\r\n");