From: Tony Arcieri Date: 2012-06-12T10:14:43+09:00 Subject: Re: celluloid-io performance --0015175cfb2ee4e90004c23c303d Content-Type: text/plain; charset=ISO-8859-1 Hi there, this does look like some sort of bug. Thanks for pointing it out. I haven't seen it with Reel before which is odd, because it didn't used to have keepalive support and so this would've impacted the tests I did there. As far as I can tell the entire reactor is pausing for long periods of time. A look a thread dump shows that it is blocking on the underlying system call across both MRI and JRuby. I'm getting similarly poor numbers on both MRI and JRuby too, so perhaps Celluloid::IO itself is implicated. Would you mind opening a ticket for it? https://github.com/celluloid/celluloid-io/ On Sat, Jun 9, 2012 at 5:04 AM, Alexander Koch wrote: > Hi Tony, > > Here is a simple sample code: > > http://pastebin.com/xsh3ETEx > > simple bench: while true; do yes "" | nc localhost 8080; sleep 0.2; done > > celluloid-io > ------------ > rate: 5.890396502822116 > rate: 4.9157809917162645 > rate: 4.916000965003123 > rate: 4.899874864349782 > > eventmachine > ------------- > rate: 19044.747009580726 > rate: 19758.12538857938 > rate: 18557.837996556835 > rate: 18119.68256128121 > > -- > Posted via http://www.ruby-forum.com/. > > -- Tony Arcieri --0015175cfb2ee4e90004c23c303d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi there, this does look like some sort of bug. Thanks for pointing it out.= I haven't seen it with Reel before which is odd, because it didn't= used to have keepalive support and so this would've impacted the tests= I did there.

As far as I can tell the entire reactor is pausing for long = periods of time. A look a thread dump shows that it is blocking on the unde= rlying system call across both MRI and JRuby. I'm getting similarly poo= r numbers on both MRI and JRuby too, so perhaps Celluloid::IO itself is imp= licated.

Would you mind opening a ticket for it?

<= /div>
https://gi= thub.com/celluloid/celluloid-io/

On Sat, Jun 9, 2012 at 5:04 AM, Alexander Koch <lists@ruby-forum.com> wrote:
Hi Tony,

Here is a simple sample code:

http://pastebin.= com/xsh3ETEx

simple bench: while true; do yes "" | nc localhost 8080; sleep 0.= 2; done

celluloid-io
------------
rate: 5.890396502822116
rate: 4.9157809917162645
rate: 4.916000965003123
rate: 4.899874864349782

eventmachine
-------------
rate: 19044.747009580726
rate: 19758.12538857938
rate: 18557.837996556835
rate: 18119.68256128121



--
= Tony Arcieri

--0015175cfb2ee4e90004c23c303d--