Re: Pux - High Performance PHP Router
| From: | Lin Yo-an | Date: | Thu, 09 Jan 2014 07:40:23 +0000 |
| Subject: | Re: Pux - High Performance PHP Router | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-322653@lists.php.net to get a copy of this message | ||
On Jan 7, 2014, at 11:37 PM, Sebastian Krebs <krebs.seb@gmail.com> wrote:
> 2014/1/7 Lin Yo-an <cornelius.howl@gmail.com>
>
>
> Thats what I wanted to tell you: You benchmark a single, very trivial case. For this case (as
> mentioned) I don't need a router at all, but thats not the point of a router. Of course both
> implementations can do more and thats what most interest: How do they behave in something similar to
> "real world" scenarios :)
If the minimal test case does not show the different, then we will need a complex sample to test
them.
The minimal test case already shows the huge difference, so there is no much need to test a complex
test case actually.
I added more benchmarks for Klein.php, Ham, and Aura.
Aura is the second fastest router. but Pux is still faster 2.5x than Aura router:
https://github.com/c9s/router-benchmark/blob/master/code/dispatch.txt