On Mon, 2 Jul 2012 16:41:59 -0700 (PDT)
quiet_lad <gavcom...@gmail.com> wrote:

> curious
> 

mostly the performance issues vary wildly depending on the underlying os and 
perhaps driver issues. 
werc is a set of shell scripts which on casual inspection ought to have 
performance problems of the same sort as cgi but an order of magnitude worse: 
shell scripts and cgi both involve the same sort of piping data between 
programs and running little programs as needed, but given a c cgi there are 
only 2 pipes (in and out) and only one program start per web page load (the cgi 
itself).
some operating systems handle communication and program running orders of 
magnitude better than others!

i wasn't expecting much performance when i wrote rc-httpd and used it with 
werc. i was using os x at the time, on a core 2 quad which wasn't made by apple 
but seemed to work pretty well. performance was what i expected, i had been 
conditioned to believe scripts were slow but it was a fast machine, and indeed 
web page serving was noticeably not instant. for a server on a home net 
connection it was more than adequate, so i wasn't worried.

later i moved the setup to a real but old mac: a "g3+" ibook with a 466MHz ppc 
proc. performance was abominable! it was unusably slow. i did that because i 
was installing linux on the core 2 quad, and with that done i moved rc-httpd 
and werc back to it. i was surprised, linux turned out to be *much* better at 
running shell scripts than os x on the same hardware.

later still i moved rc-httpd to a core 2 duo running plan 9. initially i was 
disappointed, it was a bit slow. however that machine was set to use ide 
emulation for its sata drive. recently i switched it to normal sata operation, 
and still using plan 9 the performance of rc-httpd became blazingly quick! to 
my eyes it's faster than the linux quad core.

-- 
typo of the day: os ox. must be something to compete with that sloppy
old gnu, right?

-- 
You received this message because you are subscribed to the Google Groups 
"werc" group.
To post to this group, send email to werc9@googlegroups.com.
To unsubscribe from this group, send email to 
werc9+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/werc9?hl=en.

Reply via email to