Something interesting/useful:
@freddy [~] $ ab -n 1000 -c 5 http://eugene.i.prosa.it/foo.ttml
...
Requests per second: 140.02
<+
#proc mytable {} { <<< commented out
set i 1
hputs "<table>"
while { $i <= 8 } {
hputs "<tr>"
for {set j 1} {$j <= 8} {incr j} {
set num [ expr {$i * $j * 4 - 1} ]
hputs [ format "<td bgcolor=%2x%2x%2x > $num $num $num </td>" \
$num $num $num ]
}
incr i
hputs "</tr>"
}
hputs "</table>"
#}
#mytable
+>
If one removes the commented out regions, leaving the code to be
executed in a proc:
Requests per second: 160.01
Not a huge gain, but something worth considering.
Oh, and BTW, PHP4:
Requests per second: 112.43
:->
--
David N. Welton
http://www.efn.org/~davidw/
http://tcl.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]