bench2 results

Marc Lehmann schmorp at schmorp.de
Thu Dec 2 06:08:25 CET 2010


On Wed, Dec 01, 2010 at 07:57:04PM +0100, Aleksandar Lazic <al-anyevent at none.at> wrote:
> >Maybe what you got *is* EV because the XS module or POE didn't load
> >(try PERL_ANYEVENT_VERBOSE=1 and run the benchmark to see which event
> >model it choses).
> 
> You are right EV was used.
> 
> >And last not least you modified runbench2 - how exactly?
> 
> I have attched the modified one.

Ah, I didn't know about POE_EVENT_LOO, I mean LOOP.

> With the modification I got now the follwoing errors.

While possibly unrelated, the choice for the particular POE backend I used
in the benchmark was becasue it's the only one I could get working stable
(I would have preferred the EV backend, for semi-obvious reasons), i.e.
passing it#s own testsuite and actaulyl surviving the benchmark.

> I have found that I should call
> 
> ###
> use POE::Kernel { loop => 'POE::XS::Loop::EPoll' };
> use POE;
> ###

The existing runbench2 itself does that, btw.:

tst POE $a $b "-MEvent -MPOE=Loop::Event"

So *if* that worked (now I am no longer sure), one could try:

tst POE::XS $a $b "-MEvent -MPOE=XS::Loop::EPoll"

> but I'am not sure if the effort to adopt the script isn't to high for
> yust a test ;-)

Yeah.

> I will stick to AnyEvent and don't care about POE.

There are... other considerations than just raw speed
sometimes. Fortunately, you can always mix and match AnyEvent with POE
functionality if the latter should have a module you need.

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp at schmorp.de
      -=====/_/_//_/\_,_/ /_/\_\



More information about the anyevent mailing list