httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ruediger Pluem <rpl...@apache.org>
Subject Re: Solaris sed based apache filtering module (mod_sed)
Date Thu, 10 Apr 2008 22:04:48 GMT
On 10.04.2008 22:09, Basant Kukreja wrote:
> Here is some more performance results based on Ruediger's suggestion :

Thanks for this.

> 
> -------------------------------------------------------------------------
> test2.html : 500 substitution s/hello/hi/g.
> Requests Per Second (RPS) as measured by ab for s/hello/hi/ substitution.
> Enabled CPUs : 1
> testname       Concur  MaxReq  mod_sed    mod_line_edit   mod_substitute  mod_substitute(with
n flag)
>                                 RPS         RPS               RPS
> test2.html       100   100000   1278         404              1130             1531
> 
> Summary :
> On simple string substitution (s/hello/hi/) mod_sed perform better than
> mod_substitue but with flag [n] mod_substitute performed better than
> mod_sed.
> -------------------------------------------------------------------------
> Test case summary : pattern capture
> Regular expression used : OutputSed 's/.*\(one\).*\(two\).*\(three\).*\(four\).*\(five\).*/\5
\4 \3 \2 \1/'
>                         : Substitute "s/.*(one).*(two).*(three).*(four).*(five).*/$5
$4 $3 $2 $1/"
> String : hello one 1 two 2 three 3 four 4 five 5.
> Enabled CPUs : 4
> test12.html : 500 lines containing the above string (Result in 500 substitution).
> testname       Concur  MaxReq  mod_sed    mod_substitute  
>                                 RPS         RPS          
> test12.html     125    100000   1322        3230
> Summary :
> With pattern capture, mod_substitute performed much better than mod_sed.
> -------------------------------------------------------------------------
> Test case summary : test for simple regular expression.
> Regular expression used : OutputSed 's/.*one.*two/1 2/'
>                         : Substitute "s/.*one.*two/1 2/"
> String : hello one 1 two 2 three 3 four 4 five 5.
> Enabled CPUs : 4
> test22.html : 500 lines containing the above string (Result in 500 substitution).
> testname       Concur  MaxReq  mod_sed    mod_substitute  
>                                 RPS         RPS          
> test22.html     400    400000   2013        1689
> Summary :
> With ordinary regular expression, mod_sed performed better than
> mod_substitute.
> -------------------------------------------------------------------------
> 
> mod_substitute (what is available in 2.2.8 is leaking memory) so the above
> performance results must be repeated with new mod_substitute from trunk (to
> have better comparison).

Any more details in which situations you see memory leaks? The same leaks
should happen on trunk as well.

Regards

RĂ¼diger

Mime
View raw message