PHP Classes

How to Discover Which is the Fastest PHP Framework Router Using the Mezon Router Benchmark: Measure the performance of PHP framework routers

Recommend this page to a friend!
  Info   View files Documentation   View files View files (104)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 20 All time: 11,242 This week: 555Up
Version License PHP version Categories
mezon-router-benchma 1.0MIT/X Consortium ...5Performance and optimization, PHP 8
Description 

Author

This package can measure the performance of PHP framework routers.

It provides a package that installs other popular PHP frameworks when you use the PHP composer to install this package.

The package provides test classes and scripts that measure the performance of each PHP framework tested.

Currently, it tests the following PHP framework routers:

- Altorouter

- Aura

- Bramus

- Klein

- League

- Phroute

- Pux

- Rareloop

- Slim

- Sunrise

Innovation Award
PHP Programming Innovation award nominee
November 2022
Number 6
Many PHP developers are working on applications that have high requirements in terms of performance.

When they use MVC frameworks to serve their applications, the router part is always used to handle HTTP requests and forward them to controller classes or callback functions that process the requests and generate the respective responses.

Therefore if they use a faster router, the applications may gain significant performance improvements.

This package provides a benchmark that allows PHP developers to compare the speed of different framework routers, so they can choose the fastest router they can use in their applications.

Manuel Lemos
Picture of Alexey Dodonov
  Performance   Level  
Name: Alexey Dodonov <contact>
Classes: 58 packages by
Country: Russian Federation Russian Federation
Age: ???
All time rank: 184954 in Russian Federation Russian Federation
Week rank: 86 Up5 in Russian Federation Russian Federation Up
Innovation award
Innovation award
Nominee: 13x

Documentation

mezon-router-benchmark

Just clone this repo to your PC and then:

composer update

System requirements

This benchmark requires PHP v.8.0 and higher.

If you need benchmark for the PHP 7.x version please look at this repo.

Run bemchmark

Use this command:

composer benchmark2

  Files folder image Files  
File Role Description
Files folder imagecache (2 files)
Files folder imageMezon (2 directories)
Files folder imagetests (2 files, 10 directories)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file phpbench.json Data Auxiliary data
Accessible without login Plain text file phpbench2.json Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation
Plain text file RouteGenerator.php Class Class source

  Files folder image Files  /  cache  
File Role Description
  Accessible without login Plain text file cache.param.php Conf. Configuration script
  Accessible without login Plain text file cache.static.php Conf. Configuration script

  Files folder image Files  /  Mezon  
File Role Description
Files folder imageBenchmarks (1 file, 15 directories)
Files folder imageBenchmarks2 (2 directories)

  Files folder image Files  /  Mezon  /  Benchmarks  
File Role Description
Files folder imageCoffeecode (4 files)
Files folder imageDannyVanKooten (4 files)
Files folder imageHoa (4 files)
Files folder imageIzniburak (4 files)
Files folder imageJoomla (4 files)
Files folder imageLeaf (4 files)
Files folder imageMacaw (4 files)
Files folder imageMezon (4 files)
Files folder imageMiladRahimi (4 files)
Files folder imagePecee (4 files)
Files folder imageSnappy (4 files)
Files folder imageSteampixel (4 files)
Files folder imageTeto (4 files)
Files folder imageToro (4 files)
Files folder imageZaphpa (4 files)
  Plain text file Base.php Class Class source

  Files folder image Files  /  Mezon  /  Benchmarks  /  Coffeecode  
File Role Description
  Plain text file CoffeeReactParamBench.php Class Class source
  Plain text file CoffeeReactStaticBench.php Class Class source
  Plain text file CoffeeSingleRequestParamBench.php Class Class source
  Plain text file CoffeeSingleRequestStaticBench.php Class Class source

  Files folder image Files  /  Mezon  /  Benchmarks  /  DannyVanKooten  
File Role Description
  Plain text file DVKReactParamBench.php Class Class source
  Plain text file DVKReactStaticBench.php Class Class source
  Plain text file DVKSingleRequestParamBench.php Class Class source
  Plain text file DVKSingleRequestStaticBench.php Class Class source

  Files folder image Files  /  Mezon  /  Benchmarks  /  Hoa  
File Role Description
  Plain text file HoaReactParamBench.php Class Class source
  Plain text file HoaReactStaticBench.php Class Class source
  Plain text file HoaSingleRequestParamBench.php Class Class source
  Plain text file HoaSingleRequestStaticBench.php Class Class source

  Files folder image Files  /  Mezon  /  Benchmarks  /  Izniburak  
File Role Description
  Plain text file IBReactParamBench.php Class Class source
  Plain text file IBReactStaticBench.php Class Class source
  Plain text file IBSingleRequestParamBench.php Class Class source
  Plain text file IBSingleRequestStaticBench.php Class Class source

  Files folder image Files  /  Mezon  /  Benchmarks  /  Joomla  
File Role Description
  Plain text file JoomlaReactParamBench.php Class Class source
  Plain text file JoomlaReactStaticBench.php Class Class source
  Plain text file JoomlaSingleRequestParamBench.php Class Class source
  Plain text file JoomlaSingleRequestStaticBench.php Class Class source

  Files folder image Files  /  Mezon  /  Benchmarks  /  Leaf  
File Role Description
  Plain text file LeafReactParamBench.php Class Class source
  Plain text file LeafReactStaticBench.php Class Class source
  Plain text file LeafSingleRequestParamBench.php Class Class source
  Plain text file LeafSingleRequestStaticBench.php Class Class source

  Files folder image Files  /  Mezon  /  Benchmarks  /  Macaw  
File Role Description
  Plain text file MacawReactParamBench.php Class Class source
  Plain text file MacawReactStaticBench.php Class Class source
  Plain text file MacawSingleRequestParamBench.php Class Class source
  Plain text file MacawSingleRequestStaticBench.php Class Class source

  Files folder image Files  /  Mezon  /  Benchmarks  /  Mezon  
File Role Description
  Plain text file MezonReactParamBench.php Class Class source
  Plain text file MezonReactStaticBench.php Class Class source
  Plain text file MezonSingleRequestParamBench.php Class Class source
  Plain text file MezonSingleRequestStaticBench.php Class Class source

  Files folder image Files  /  Mezon  /  Benchmarks  /  MiladRahimi  
File Role Description
  Plain text file MiladReactParamBench.php Class Class source
  Plain text file MiladReactStaticBench.php Class Class source
  Plain text file MiladSingleRequestParamBench.php Class Class source
  Plain text file MiladSingleRequestStaticBench.php Class Class source

  Files folder image Files  /  Mezon  /  Benchmarks  /  Pecee  
File Role Description
  Plain text file PeceeReactParamBench.php Class Class source
  Plain text file PeceeReactStaticBench.php Class Class source
  Plain text file PeceeSingleRequestParamBench.php Class Class source
  Plain text file PeceeSingleRequestStaticBench.php Class Class source

  Files folder image Files  /  Mezon  /  Benchmarks  /  Snappy  
File Role Description
  Plain text file SnappyReactParamBench.php Class Class source
  Plain text file SnappyReactStaticBench.php Class Class source
  Plain text file SnappySingleRequestParamBench.php Class Class source
  Plain text file SnappySingleRequestStaticBench.php Class Class source

  Files folder image Files  /  Mezon  /  Benchmarks  /  Steampixel  
File Role Description
  Plain text file SteampixelReactParamBench.php Class Class source
  Plain text file SteampixelReactStaticBench.php Class Class source
  Plain text file SteampixelSingleRequestParamBench.php Class Class source
  Plain text file SteampixelSingleRequestStaticBench.php Class Class source

  Files folder image Files  /  Mezon  /  Benchmarks  /  Teto  
File Role Description
  Plain text file TetoReactParamBench.php Class Class source
  Plain text file TetoReactStaticBench.php Class Class source
  Plain text file TetoSingleRequestParamBench.php Class Class source
  Plain text file TetoSingleRequestStaticBench.php Class Class source

  Files folder image Files  /  Mezon  /  Benchmarks  /  Toro  
File Role Description
  Plain text file ToroReactParamBench.php Class Class source
  Plain text file ToroReactStaticBench.php Class Class source
  Plain text file ToroSingleRequestParamBench.php Class Class source
  Plain text file ToroSingleRequestStaticBench.php Class Class source

  Files folder image Files  /  Mezon  /  Benchmarks  /  Zaphpa  
File Role Description
  Plain text file ZaphpaReactParamBench.php Class Class source
  Plain text file ZaphpaReactStaticBench.php Class Class source
  Plain text file ZaphpaSingleRequestParamBench.php Class Class source
  Plain text file ZaphpaSingleRequestStaticBench.php Class Class source

  Files folder image Files  /  Mezon  /  Benchmarks2  
File Role Description
Files folder imageMezon (3 files, 1 directory)
Files folder imageSymfony (3 directories)

  Files folder image Files  /  Mezon  /  Benchmarks2  /  Mezon  
File Role Description
Files folder imageData (1 file)
  Plain text file MezonReactBench.php Class Class source
  Plain text file MezonSingleRequestBench.php Class Class source
  Plain text file Utils.php Class Class source

  Files folder image Files  /  Mezon  /  Benchmarks2  /  Mezon  /  Data  
File Role Description
  Accessible without login Plain text file MezonRoutes.json Data Auxiliary data

  Files folder image Files  /  Mezon  /  Benchmarks2  /  Symfony  
File Role Description
Files folder imageCompiledUrlMatcher (3 files)
Files folder imageData (2 files)
Files folder imageUrlMatcher (3 files)

  Files folder image Files  /  Mezon  /  Benchmarks2  /  Symfony  /  CompiledUrlMatcher  
File Role Description
  Plain text file SymfonyCUMReactBench.php Class Class source
  Plain text file SymfonyCUMSingleRequestBench.php Class Class source
  Plain text file Utils.php Class Class source

  Files folder image Files  /  Mezon  /  Benchmarks2  /  Symfony  /  Data  
File Role Description
  Accessible without login Plain text file SymfonyRoute.json Data Auxiliary data
  Accessible without login Plain text file SymfonyRoutes.json Data Auxiliary data

  Files folder image Files  /  Mezon  /  Benchmarks2  /  Symfony  /  UrlMatcher  
File Role Description
  Plain text file SymfonyUMReactBench.php Class Class source
  Plain text file SymfonyUMSingleRequestBench.php Class Class source
  Plain text file Utils.php Class Class source

  Files folder image Files  /  tests  
File Role Description
Files folder imagealtorouter (4 files)
Files folder imageaura (2 files)
Files folder imagebramus (2 files)
Files folder imageklein (2 files)
Files folder imageleague (2 files)
Files folder imagephroute (2 files)
Files folder imagepux (2 files)
Files folder imagerareloop (2 files)
Files folder imageslim (2 files)
Files folder imagesunrise (2 files)
  Accessible without login Plain text file fast-route.php Example Example script
  Accessible without login Plain text file laravel.php Example Example script

  Files folder image Files  /  tests  /  altorouter  
File Role Description
  Accessible without login Plain text file react-100.php Example Example script
  Accessible without login Plain text file react-1000.php Example Example script
  Accessible without login Plain text file single-request-100.php Example Example script
  Accessible without login Plain text file single-request-1000.php Example Example script

  Files folder image Files  /  tests  /  aura  
File Role Description
  Accessible without login Plain text file react-1000.php Example Example script
  Accessible without login Plain text file single-request-1000.php Example Example script

  Files folder image Files  /  tests  /  bramus  
File Role Description
  Accessible without login Plain text file react-1000.php Example Example script
  Accessible without login Plain text file single-request-1000.php Example Example script

  Files folder image Files  /  tests  /  klein  
File Role Description
  Accessible without login Plain text file react-1000.php Example Example script
  Accessible without login Plain text file single-request-1000.php Example Example script

  Files folder image Files  /  tests  /  league  
File Role Description
  Accessible without login Plain text file react-1000.php Example Example script
  Accessible without login Plain text file single-request-1000.php Example Example script

  Files folder image Files  /  tests  /  phroute  
File Role Description
  Accessible without login Plain text file react-1000.php Example Example script
  Accessible without login Plain text file single-request-1000.php Example Example script

  Files folder image Files  /  tests  /  pux  
File Role Description
  Accessible without login Plain text file react-1000.php Example Example script
  Accessible without login Plain text file single-request-1000.php Example Example script

  Files folder image Files  /  tests  /  rareloop  
File Role Description
  Accessible without login Plain text file react-1000.php Example Example script
  Accessible without login Plain text file single-request-1000.php Example Example script

  Files folder image Files  /  tests  /  slim  
File Role Description
  Accessible without login Plain text file react-1000.php Example Example script
  Accessible without login Plain text file single-request-1000.php Example Example script

  Files folder image Files  /  tests  /  sunrise  
File Role Description
  Accessible without login Plain text file react-1000.php Example Example script
  Accessible without login Plain text file single-request-1000.php Example Example script

 Version Control Unique User Downloads Download Rankings  
 100%
Total:20
This week:0
All time:11,242
This week:555Up