Re: Phux - High Performance PHP Router

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sebastian Krebs 於 2014年1月7日星期二寫道:

>
>
>
> 2014/1/6 Yo-An Lin <cornelius.howl@xxxxxxxxx <javascript:_e({}, 'cvml',
> 'cornelius.howl@xxxxxxxxx');>>
>
>> Here is the benchmark details, you can find the benchmark code below:
>>
>> https://github.com/c9s/router-benchmark
>>
>
> Hi,
>
> Well, you still use a full LAMP-stack and HTTP-benchmark-tool for
> benchmarking. That was actually _the_ point, which makes this benchmark
> useless for me...
>
>
> Beside this: You should increase the routes you benchmark and introduce
> more variation (pattern-matching, matching first/last route and so on),
> because different implementations often differ in different situations.
>

Check out code/dispatch.* . There are console benchmark script and result.

And u may add more test cases in it if u need



>
>
>
> on intel xeon 16 cores machine:
>
> symfony/routing only got 4873.17 #/sec while phux got 16777.12 #/sec
>
> on intel core i5 machine:
>
> symfony/routing only got around 200-300 #/sec while phux got around
> 1600-1800 #/sec
>
>
>
> Also the pure php dispatch benchmark:
>
> cat dispatch.txt
> n=10000
> Runing symfony/routing - . 6664.4093423989/s
> Runing phux extension - . 16501.898328291/s
>
>                    Rate   Mem phux extension symfony/routing
>  phux extension   16K/s    5M             --            -40%
> symfony/routing    6K/s  786K           247%              --
>
>
> ================================== Bar Chart
> ==================================
>
>    phux extension   16K/s |
> ████████████████████████████████████████████████████████████  |
>   symfony/routing    6K/s | ████████████████████████
>                |
>
>
> ============================== System Information
> ==============================
>
> PHP Version: 5.5.6
> CPU Brand String: Intel(R) Core(TM) i5-2400S CPU @ 2.50GHz
>
>
>
>
>
>
> On 2014/1/6, at 下午12:36, Yo-An lin <cornelius.howl@xxxxxxxxx> wrote:
>
> Yeah I know, the benchmark is pretty rough. Because its a two day work.  :p
>
> The details will come up later.
>
> [Sent from iPhone]
>
> Sebastian Krebs <krebs.seb@xxxxxxxxx> 於 2014/1/6 7:54 寫道:
>
>
>
>
> 2014/1/5 Lin Yo-An <cornelius.howl@xxxxxxxxx>
>
> Hi folks,
>
>
> Glad to announce that the first version of Phux PHP Router is released.
>
> https://github.com/c9s/phux
>
>
> Phux is basically a rewrite of PHP Roller router.
>
> Phux provides full functional C extension and pure PHP library with the
> same interface, so the extension is optional to install.
>
> but if you install phux extension, you may enjoy the performance of
> routing.
>
>
>
> Route Dispatch Benchmark (Symfony/Routing and Phux pure PHP)
>
> https://raw.github.com/c9s/Phux/master/benchmarks/reqs.png
>
>
> Hi,
>
> Not a comment about Phux directly, but I think I have to point this out
> (sadly: once more): When you use Apache Benchmark to benchmark the
> performance of an PHP-component, you in fact benchmark your system... [1]
> Another flaw is, that the whole benchmark setup is missing, which makes it
> slightly suspicious and unreliable. Two things, that spontanous came into
> my mind
>
> - Because you use ab to benchmark it is unlikely, that the S2-setup
> contains the routing-component onl
>
>
>
>
> --
> github.com/KingCrunch
>


-- 
Best Regards,

Yo-An Lin

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux