F
Florian Weber
hi!
i have to admit that im kinda disappointed by ruby because of its
poor web performance i've experienced so far.
i have a fairly complex application written in php. it does all kinds
of complex stuff, front controller, complex template system,
interceptors,
etc. even without any kind of acceleration which does any kind of
caching
for files, classes, etc, the app takes never longer than 0.2 seconds per
request.
when i have a simple app in rails now, which basically only takes about
100 rows
from one tables, puts it in objects and displays those in the view, the
request
takes 0.2 seconds with mod_ruby (all classes cached!) and with cgi
0.7 seconds.
on both systems (php and ruby) i measured without the invocation
overhead.
on the start of the script i set a variable to the current time and and
the end
i displayed the difference of the current time to the variable.
so basically the overhead created by cgi having to start a new ruby
interpreter
each time is ignored.
i know that rails is not really optimized for performance yet,
especially since
its not even released. however it feels like 0.55 seconds out of the
0.7 are
spend with the compilation of the ruby classes, before i even execute
any..
any ideas why? thanks a lot for feedback!
ciao!
florian
i have to admit that im kinda disappointed by ruby because of its
poor web performance i've experienced so far.
i have a fairly complex application written in php. it does all kinds
of complex stuff, front controller, complex template system,
interceptors,
etc. even without any kind of acceleration which does any kind of
caching
for files, classes, etc, the app takes never longer than 0.2 seconds per
request.
when i have a simple app in rails now, which basically only takes about
100 rows
from one tables, puts it in objects and displays those in the view, the
request
takes 0.2 seconds with mod_ruby (all classes cached!) and with cgi
0.7 seconds.
on both systems (php and ruby) i measured without the invocation
overhead.
on the start of the script i set a variable to the current time and and
the end
i displayed the difference of the current time to the variable.
so basically the overhead created by cgi having to start a new ruby
interpreter
each time is ignored.
i know that rails is not really optimized for performance yet,
especially since
its not even released. however it feels like 0.55 seconds out of the
0.7 are
spend with the compilation of the ruby classes, before i even execute
any..
any ideas why? thanks a lot for feedback!
ciao!
florian