mirror of mongrel-development@rubyforge.org (inactive)
 help / color / mirror / Atom feed
From: "Luis Lavena" <luislavena-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: mongrel-development-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org
Subject: Re: Pure Ruby HTTP parser
Date: Sat, 26 Apr 2008 20:57:23 -0300	[thread overview]
Message-ID: <71166b3b0804261657m67e5dbe8ic8249bdb7204c56@mail.gmail.com> (raw)
In-Reply-To: <c7e6b2b00804261633y2835329eqaa1b0190e19f59ac-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On Sat, Apr 26, 2008 at 8:33 PM, Tony <tony-INw5wk3xIkAIjDr1QQGPvw@public.gmane.org> wrote:
> I pushed an updated version here:
>
> http://git.rubini.us/?p=code;a=blob;f=lib/mongrel/http11_parser.rb.rl;h=60c8f3d2519dc1673ef0b4107d40a9df9eca0662;hb=7d246b17efc0ac37db6c241729f6b0e298f49950
>
> It's now confirmed working with Mongrel::HttpServer on Rubinius with a
> "Hello, world!" Mongrel::HttpHandler.
>
> It can be used to generate a goto-driven FSM using Rubinius assembly:
>
> http://git.rubini.us/?p=code;a=blob;f=lib/mongrel/http11.rb;h=435f643ea105f7adc486dc06ab960392c3dfeab5;hb=7d246b17efc0ac37db6c241729f6b0e298f49950
>
> Some performance figures:
>
> MRI + C extension, parsing 10,000 requests:
>   0.150000   0.000000   0.150000 (  0.152268)
>
> Rubinius + Rubinius.asm parser, parsing 10,000 requests:
>  20.500086   0.000000  20.500086 ( 20.500085)
>
> So, presently ~135x slower than the C extension on MRI :)
>

Hey Tony,

how that can compare with Rubinius + substend?

-- 
Luis Lavena
Multimedia systems
-
Human beings, who are almost unique in having the ability to learn from
the experience of others, are also remarkable for their apparent
disinclination to do so.
Douglas Adams

  parent reply	other threads:[~2008-04-26 23:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-24  0:50 Tony
     [not found] ` <c7e6b2b00804231750o1c86d377i25c83d5e99f41dd1-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-04-24 11:38   ` ry dahl
     [not found]     ` <3ae7f4480804240438g62ed7190if2a84ff08dd2fe34-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-04-26 23:33       ` Tony
     [not found]         ` <c7e6b2b00804261633y2835329eqaa1b0190e19f59ac-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-04-26 23:57           ` Luis Lavena [this message]
2008-05-06  6:27       ` Zed A. Shaw
replies disabled, historical list

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).