On 10.04.2008 13:27, Jim Jagielski wrote:
On Apr 9, 2008, at 5:09 PM, Basant Kukreja wrote:
just that, too. Any performance comparisons with its competitors?
Some quick performance comparison results between mod_sed,
mod_line_edit and
mod_substitute.
Search/Replace string : s/hello/hi/
test0.html : No matches, so no substitute.
test.html : 1 comparision/substitute
test2.html : 500 comparision/substitute
Performance data was generated with 200 clients for 100000 requests
(for worker
mpm).
$ ab -c 200 -n 100000 <http-uri>
Requests Per Second (RPS) as measured by ab for s/hello/hi/ substitution.
mod_sed mod_line_edit
mod_substitute
test0.html 3263 3206 3129
test.html 3229 3213 3197
test2.html 1278 404 1130
Note that mod_sed performs better than either mod_line_edit or
mod_substitute.
Interesting... What versions of each did you test?
Would be interesting to know what happens speed wise if you use the n flag
for mod_substitute to use strmatch instead of a regular expression.
And depending on the version you used it would be interesting what happens
if you use the q flag (applys only to trunk).
Furthermore from a first glance of mod_sed I would guess that it runs into
trouble with large static files. So could you test mod_sed with one of
the simple cases above and a 3 GB file and monitor httpd's memory consumption
in comparison to mod_substitute?
Regards
RĂ¼diger