mirror of mongrel-development@rubyforge.org (inactive)
 help / color / mirror / Atom feed
From: Tony <tony-INw5wk3xIkAIjDr1QQGPvw@public.gmane.org>
To: mongrel-development-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org
Subject: Re: Pure Ruby HTTP parser
Date: Sat, 26 Apr 2008 17:33:09 -0600	[thread overview]
Message-ID: <c7e6b2b00804261633y2835329eqaa1b0190e19f59ac@mail.gmail.com> (raw)
In-Reply-To: <3ae7f4480804240438g62ed7190if2a84ff08dd2fe34-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>


[-- Attachment #1.1: Type: text/plain, Size: 831 bytes --]

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 :)

-- 
Tony Arcieri
medioh.com

[-- Attachment #1.2: Type: text/html, Size: 1378 bytes --]

[-- Attachment #2: Type: text/plain, Size: 199 bytes --]

_______________________________________________
Mongrel-development mailing list
Mongrel-development-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org
http://rubyforge.org/mailman/listinfo/mongrel-development

  parent reply	other threads:[~2008-04-26 23:34 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 [this message]
     [not found]         ` <c7e6b2b00804261633y2835329eqaa1b0190e19f59ac-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-04-26 23:57           ` Luis Lavena
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).