Performancetest : Stimmen die Werte & Relationen ?

Irgendwelche Probleme mit XAMPP für Linux? Dann ist hier genau der richtige Ort um nachzufragen.

Performancetest : Stimmen die Werte & Relationen ?

Postby Knappe » 04. October 2007 10:57

Hallo,

habe im Zuge der Ueberpruefung meiner Installation auch mal den Apachen mit den Utillity "ab" getestet.

Hard- und Software :
Motherboard : GA-K8N Pro-SLI mit 4 GB, Opteron 165

*** lspci
00:00.0 Memory controller: nVidia Corporation CK804 Memory Controller (rev a3)
00:01.0 ISA bridge: nVidia Corporation CK804 ISA Bridge (rev a3)
00:01.1 SMBus: nVidia Corporation CK804 SMBus (rev a2)
00:02.0 USB Controller: nVidia Corporation CK804 USB Controller (rev a2)
00:02.1 USB Controller: nVidia Corporation CK804 USB Controller (rev a3)
00:04.0 Multimedia audio controller: nVidia Corporation CK804 AC'97 Audio Controller (rev a2)
00:06.0 IDE interface: nVidia Corporation CK804 IDE (rev f2)
00:07.0 RAID bus controller: nVidia Corporation CK804 Serial ATA Controller (rev f3)
00:08.0 RAID bus controller: nVidia Corporation CK804 Serial ATA Controller (rev f3)
00:09.0 PCI bridge: nVidia Corporation CK804 PCI Bridge (rev a2)
00:0a.0 Bridge: nVidia Corporation CK804 Ethernet Controller (rev a3)
00:0b.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0c.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0d.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0e.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:07.0 SCSI storage controller: Adaptec AHA-2940U2/U2W
01:08.0 Ethernet controller: Intel Corporation 82546EB Gigabit Ethernet Controller (Copper) (rev 01)
01:08.1 Ethernet controller: Intel Corporation 82546EB Gigabit Ethernet Controller (Copper) (rev 01)
01:0a.0 FireWire (IEEE 1394): Texas Instruments TSB82AA2 IEEE-1394b Link Layer Controller (rev 01)
05:00.0 VGA compatible controller: ATI Technologies Inc RV370 5B60 [Radeon X300 (PCIE)]
05:00.1 Display controller: ATI Technologies Inc RV370 [Radeon X300SE]


*** cat /etc/SuSE-release
openSUSE 10.2 (X86-64)
VERSION = 10.2
Linux 2.6.18.8-ccj45-default


Dabei kamen erstaunliche Ergebnisse zustande :

Test auf http "Standard" :
Code: Select all
ab -n 256 -c 256 http://192.168.2.1/

-->Ergebnis :
Completed 100 requests
Completed 200 requests
Finished 256 requests


Server Software: Apache/2.2.4
Server Hostname: 192.168.2.1
Server Port: 80

Document Path: /
Document Length: 382 bytes

Concurrency Level: 256
Time taken for tests: 0.117159 seconds
Complete requests: 256
Failed requests: 0
Write errors: 0
Non-2xx responses: 256
Total transferred: 175360 bytes
HTML transferred: 97792 bytes
Requests per second: 2185.06 [#/sec] (mean)
Time per request: 117.159 [ms] (mean)
Time per request: 0.458 [ms] (mean, across all concurrent requests)
Transfer rate: 1459.55 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 7 4.2 10 12
Processing: 32 47 11.3 43 69
Waiting: 30 44 11.4 42 68
Total: 36 54 13.8 51 78

Percentage of the requests served within a certain time (ms)
50% 51
66% 63
75% 68
80% 71
90% 74
95% 77
98% 77
99% 78
100% 78 (longest request)


Jetzt aber mal mit SSL (Test auf https) :
Code: Select all
ab -n 256 -c 256 https://192.168.2.1/

-->Ergebnis :
Completed 100 requests
Completed 200 requests
Finished 256 requests


Server Software: Apache/2.2.4
Server Hostname: 192.168.2.1
Server Port: 443
SSL/TLS Protocol: TLSv1/SSLv3,DHE-RSA-AES256-SHA,2048,256

Document Path: /
Document Length: 1917 bytes

Concurrency Level: 256
Time taken for tests: 15.30660 seconds
Complete requests: 256
Failed requests: 0
Write errors: 0
Non-2xx responses: 297
Total transferred: 708937 bytes
HTML transferred: 569347 bytes
Requests per second: 17.03 [#/sec] (mean)
Time per request: 15030.660 [ms] (mean)
Time per request: 58.714 [ms] (mean, across all concurrent requests)
Transfer rate: 46.04 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 206 5655 3965.2 5452 14904
Processing: 75 3836 3557.8 1864 10715
Waiting: 0 723 1044.6 135 3694
Total: 855 9491 5661.4 12725 15007

Percentage of the requests served within a certain time (ms)
50% 12725
66% 14932
75% 14973
80% 14981
90% 14994
95% 15006
98% 15006
99% 15007
100% 15007 (longest request)

Ich finde, die erhoehten Zugrifsszeiten sind bei SSL extrem hoch !
Zu hoch oder sollte ich mich taeuschen :?: :idea:

P.S. Das Programm "ab" befindet sich in /opt/lampp/bin
Knappe
 
Posts: 114
Joined: 18. November 2004 17:40

Postby Knappe » 05. October 2007 13:31

So, habe mir jetzt mal die Version 2.2.6 vom Apachen gezogen und zusammen mit Perl unter OpenSuSE 10.2 64bit mit der "configure-oswald" komplett neu uebersetzt.

Hier jetzt mal der Benchmark fuer
Code: Select all
ab -n 256 -c 256 https://192.168.2.1/

This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking 192.168.2.1 (be patient)
Completed 100 requests
Completed 200 requests
Finished 256 requests


Server Software: Apache/2.2.6
Server Hostname: 192.168.2.1
Server Port: 443
SSL/TLS Protocol: TLSv1/SSLv3,DHE-RSA-AES256-SHA,2048,256

Document Path: /
Document Length: 1915 bytes

Concurrency Level: 256
Time taken for tests: 4.419925 seconds
Complete requests: 256
Failed requests: 0
Write errors: 0
Non-2xx responses: 256
Total transferred: 601088 bytes
HTML transferred: 490240 bytes
Requests per second: 57.92 [#/sec] (mean)
Time per request: 4419.925 [ms] (mean)
Time per request: 17.265 [ms] (mean, across all concurrent requests)
Transfer rate: 132.81 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 152 2223 1250.5 2228 4413
Processing: 6 231 110.7 230 546
Waiting: 0 37 36.8 28 277
Total: 267 2454 1321.4 2465 4419

Percentage of the requests served within a certain time (ms)
50% 2465
66% 3181
75% 3578
80% 3896
90% 4408
95% 4415
98% 4417
99% 4418
100% 4419 (longest request)

Demzufolge ergab sich eine Performance-Steigerung bei SSL-Zugriffen von weit ueber 300 % (Time per request, Transfer rate) !

Irgendwelche Kommentare ?
Knappe
 
Posts: 114
Joined: 18. November 2004 17:40


Return to XAMPP für Linux

Who is online

Users browsing this forum: No registered users and 2 guests