Remembered one more thing.

DBIC's

$schema->resultset('RSNAME') is just a superstar!

Spending 800.000 CPU ticks at doing NOTHING. ingeniously


2010/4/21 Oleg Pronin <[email protected]>:
> This was the last shot for me at "dealing" with catalyst.
> Catalyst is very perfomance-optimized system and it never stops me wondering
>
>    timethese(-1, {
>        sep => sub { $req->param('lang') },
>        all => sub { $req->params->{lang} },
>        par => sub { $req->parameters->{lang} },
>        low => sub { $req->{parameters}{lang} },
>    });
>
> Benchmark: running all, low, par, sep for at least 1 CPU seconds...
>       all:  1 wallclock secs ( 1.06 usr +  0.00 sys =  1.06 CPU) @
> 74016.94/s (n=78643)
>       low:  1 wallclock secs ( 1.09 usr +  0.00 sys =  1.09 CPU) @
> 3816940.66/s (n=4144959)
>       par:  2 wallclock secs ( 1.12 usr +  0.00 sys =  1.12 CPU) @
> 75281.78/s (n=84692)
>       sep:  1 wallclock secs ( 1.02 usr +  0.00 sys =  1.02 CPU) @
> 24448.98/s (n=25022)
>
>
> 1) Getting all params 3x faster than only one
> 2) Getting $req->{parameters}{lang} 150x faster than $req->param('lang')
>
> Guys, is Catalyst a senior system ?
>
> I think that creator of Moose, and some similar shit is in cooperation
> with hardware manufactorers :-)
> The more CPU spent - the more hardware bought.
>

_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to