Thread mod_perl2 total bekloppter benchmark (8 answers)
Opened by Froschpopo at 2006-03-02 06:24

ptk
 2006-03-03 00:41
#29965 #29965
User since
2003-11-28
3645 Artikel
ModeratorIn
[default_avatar]
Anscheinend kann man der Ausgabe von ab nicht blind vertrauen. Hier ein Beispiel mit Apache 1.3. hallo.pl ist ein reiner mod_perl-Handler, hallo2.pl ist ein Apache::Registry-Skript, hallo3.pl ist ein normales CGI-Skript. Die Ergebnisse variieren:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$ for i in hallo hallo2 hallo3; do echo -n "$i: "; ab -q -n 1000 -c 10 http://localhost/$i.pl|grep "Requests per"; done
hallo: Requests per second: 639.46 [#/sec] (mean)
hallo2: Requests per second: 440.15 [#/sec] (mean)
hallo3: Requests per second: 437.97 [#/sec] (mean)

$ for i in hallo hallo2 hallo3; do echo -n "$i: "; ab -q -n 1000 -c 10 http://localhost/$i.pl|grep "Requests per"; done
hallo: Requests per second: 1676.77 [#/sec] (mean)
hallo2: Requests per second: 933.17 [#/sec] (mean)
hallo3: Requests per second: 463.16 [#/sec] (mean)

$ for i in hallo hallo2 hallo3; do echo -n "$i: "; ab -q -n 1000 -c 10 http://localhost/$i.pl|grep "Requests per"; done
hallo: Requests per second: 547.29 [#/sec] (mean)
hallo2: Requests per second: 436.82 [#/sec] (mean)
hallo3: Requests per second: 374.33 [#/sec] (mean)

$ for i in hallo hallo2 hallo3; do echo -n "$i: "; ab -q -n 1000 -c 10 http://localhost/$i.pl|grep "Requests per"; done
hallo: Requests per second: 444.90 [#/sec] (mean)
hallo2: Requests per second: 714.87 [#/sec] (mean)
hallo3: Requests per second: 379.99 [#/sec] (mean)

Aber wenigstens meinstens so, wie erwartet (mod_perl schneller als Apache::Registry schneller als CGI).

View full thread mod_perl2 total bekloppter benchmark