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   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 21 This week: 1All time: 11,324 This week: 42Up
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  
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 (104)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:21
This week:1
All time:11,324
This week:42Up