Added a file: ruby_binding/test_camping.rb
commit8b7312136de9a131ee5d1965c0baf76c83d8b4a3
authorRyan Dahl <ry@lakshmi.local>
Mon, 21 Jan 2008 00:43:53 +0000 (21 01:43 +0100)
committerRyan Dahl <ry@lakshmi.local>
Mon, 21 Jan 2008 00:43:53 +0000 (21 01:43 +0100)
treef22023f21225800494c041c37549cceb63ee98f9
parente67f60e3b89dfac5bc9caab12146fcbf52290008
Added a file: ruby_binding/test_camping.rb
When you run this program with the command line argument "ebb" it will start
a Camping server on port 4001 hosted by Ebb. When you run the script with a
"mongrel" argument it will start a server on 4002 hosted by Evented Mongrel.

My initial tests show that Ebb is faster than Evented Mongrel. For example
here are the number of requests per second that I clocked (averaged over 5
trials with ab -n 1000)

        Ebb  Evented Mongrel
-c 100  306  248
-c 50   363  266
-c 10   416  295
-c 1    428  270

I hope that optimizations will be able to increase those numbers. Also, the
evented mongrel crashes several times during these trials. The very buggy Ebb
server didn't at all.
Makefile
ebb.c
ebb.h
ebb_test.c
mongrel/parser.c [new file with mode: 0644]
ruby_binding/ebb.rb
ruby_binding/ebb_ext.c
ruby_binding/test_camping.rb [new file with mode: 0755]
tcp.c