Home » Development Forums » Kloxo Development » [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event)
| [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #84860] |
Wed, 08 June 2011 05:54  |
|
Steps:
1. Read http://forum.lxcenter.org/index.php?t=msg&th=16222 and http://forum.lxcenter.org/index.php?t=msg&th=16232 to make mod_ruid2 and httpd-itk ready
2. If /etc/sysconfig/httpd exist 'HTTPD=/usr/sbin/httpd.itk' then copy to 'httpd.itk'. Delete 'HTTPD=/usr/sbin/httpd.itk' line and then copy file to 'httpd.prefork'. Now, we have 3 file ('httpd', 'httpd.itk' and 'httpd.prefork')
3. Copy httpd.prefork to httpd and then login to kloxo to change to 'suphp' and change again to 'mod_suphp' on 'Switch Program'.
4. Now, in '/etc/httpd/conf.d' we have file php, ruid2, itk and suphp (with file extension as '.conf' or 'nonconf')
5. Testing for:
5.1. mod_php, run:
service httpd stop
cp /etc/sysconfig/httpd.prefork /etc/sysconfig/httpd
mv /etc/httpd/conf.d/itk.conf /etc/httpd/conf.d/itk.nonconf
mv /etc/httpd/conf.d/suphp.conf /etc/httpd/conf.d/suphp.nonconf
mv /etc/httpd/conf.d/ruid2.conf /etc/httpd/conf.d/ruid2.nonconf
mv /etc/httpd/conf.d/php.nonconf /etc/httpd/conf.d/php.conf
5.2. mod_ruid2, run:
service httpd stop
cp /etc/sysconfig/httpd.prefork /etc/sysconfig/httpd
mv /etc/httpd/conf.d/itk.conf /etc/httpd/conf.d/itk.nonconf
mv /etc/httpd/conf.d/suphp.conf /etc/httpd/conf.d/suphp.nonconf
mv /etc/httpd/conf.d/ruid2.nonconf /etc/httpd/conf.d/ruid2.conf
mv /etc/httpd/conf.d/php.nonconf /etc/httpd/conf.d/php.conf
5.3. httpd-itk, run:
service httpd stop
cp /etc/sysconfig/httpd.itk /etc/sysconfig/httpd
mv /etc/httpd/conf.d/itk.nonconf /etc/httpd/conf.d/itk.conf
mv /etc/httpd/conf.d/suphp.conf /etc/httpd/conf.d/suphp.nonconf
mv /etc/httpd/conf.d/ruid2.conf /etc/httpd/conf.d/ruid2.nonconf
mv /etc/httpd/conf.d/php.nonconf /etc/httpd/conf.d/php.conf
5.4. mod_suphp, run:
service httpd stop
cp /etc/sysconfig/httpd.prefork /etc/sysconfig/httpd
mv /etc/httpd/conf.d/itk.conf /etc/httpd/conf.d/itk.nonconf
mv /etc/httpd/conf.d/suphp.nonconf /etc/httpd/conf.d/suphp.conf
mv /etc/httpd/conf.d/ruid2.conf /etc/httpd/conf.d/ruid2.nonconf
mv /etc/httpd/conf.d/php.conf /etc/httpd/conf.d/php.nonconf
5.5. mod_suphp + httpd-worker
- Beside step 5.4, also change /etc/sysconfig/httpd from:
# HTTPD=/usr/sbin/httpd.worker
HTTPD=/usr/sbin/httpd.itk
to
HTTPD=/usr/sbin/httpd.worker
# HTTPD=/usr/sbin/httpd.itk
5.6. mod_suphp + httpd-event
- Beside step 5.4 and 5.5, also change /etc/sysconfig/httpd from:
# HTTPD=/usr/sbin/httpd.event
# HTTPD=/usr/sbin/httpd.worker
HTTPD=/usr/sbin/httpd.itk
to
HTTPD=/usr/sbin/httpd.event
# HTTPD=/usr/sbin/httpd.worker
# HTTPD=/usr/sbin/httpd.itk
and add '<IfModule event.c></IfModule>' with the same value/content of '<IfModule worker.c></IfModule>' in '/etc/httpd/conf/httpd.conf'
6. make file 'ab.sh' with content
echo "----------------------------"
service mysqld restart
service httpd restart
echo "----------------------------"
ab -n 1000 -c 5 http://96.44.188.123/test/snkpage.html
echo " "
echo "----------------------------"
service httpd restart
echo "----------------------------"
ab -n 1000 -c 5 http://96.44.188.123/test/phpmysqld.php
echo " "
echo "----------------------------"
service httpd restart
echo "----------------------------"
ab -n 1000 -c 5 http://96.44.188.123/cgi-bin/test.pl
echo " "
echo "----------------------------"
service httpd restart
echo "----------------------------"
ab -n 1000 -c 5 http://96.44.188.123/test/phpinfo.php
7. Make file:
7.1. /home/<client>/<domain>/test/snkpage.html with content:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Webserver test</title>
</head>
<body>
This is a webserver test page.
</body>
</html>
7.2. /home/<client>/<domain>/test/phpmysql.php with content:
<html>
<head><title>Php+MySQL</title></head>
<body>
<?php
$link = mysql_connect("localhost", "root", "password");
mysql_select_db("kloxo");
$query = "SELECT * FROM web";
$result = mysql_query($query);
while ($line = mysql_fetch_array($result))
{
foreach ($line as $value)
{
print "$value\n";
}
}
mysql_close($link);
?>
</body>
</html>
7.3. /home/<client>/<domain>/test/phpinfo.php with content:
<?php
/*
echo "<p align=\"center\">";
system("id");
echo "</p>";
*/
phpinfo();
?>
7.4. /home/<client>/<domain>/cgi-bin/test.pl with content:
#!/usr/bin/perl
$command=`perl -v`;
$title = "Perl Version";
print "Content-type: text/html\n\n";
print "<html><head><title>$title</title></head>\n<body>\n\n";
print "
<h1>$title</h1>
\n";
print $command;
print "\n\n</body></html>";
8. Assign IP for domain then run 'ab.sh'
[Updated on: Sat, 13 August 2011 11:52] Report message to a moderator
|
|
|
| Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #84861 is a reply to message #84860] |
Wed, 08 June 2011 05:55   |
|
1. mod_php
----------------------------
Stopping MySQL: [OK]
Starting MySQL: [OK]
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 96.44.188.123 (be patient)
Server Software: Apache
Server Hostname: 96.44.188.123
Server Port: 80
Document Path: /test/snkpage.html
Document Length: 168 bytes
Concurrency Level: 5
Time taken for tests: 1.922 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 421000 bytes
HTML transferred: 168000 bytes
Requests per second: 520.20 [#/sec] (mean)
Time per request: 9.612 [ms] (mean)
Time per request: 1.922 [ms] (mean, across all concurrent requests)
Transfer rate: 213.87 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 1
Processing: 2 9 77.4 4 1102
Waiting: 2 9 77.4 4 1102
Total: 2 10 77.4 4 1102
Percentage of the requests served within a certain time (ms)
50% 4
66% 4
75% 4
80% 5
90% 5
95% 6
98% 8
99% 9
100% 1102 (longest request)
----------------------------
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 96.44.188.123 (be patient)
Server Software: Apache
Server Hostname: 96.44.188.123
Server Port: 80
Document Path: /test/phpmysqld.php
Document Length: 270 bytes
Concurrency Level: 5
Time taken for tests: 1.977 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Non-2xx responses: 1000
Total transferred: 434000 bytes
HTML transferred: 270000 bytes
Requests per second: 505.74 [#/sec] (mean)
Time per request: 9.886 [ms] (mean)
Time per request: 1.977 [ms] (mean, across all concurrent requests)
Transfer rate: 214.35 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.1 0 1
Processing: 1 10 66.5 5 948
Waiting: 1 10 66.5 5 948
Total: 1 10 66.5 5 948
Percentage of the requests served within a certain time (ms)
50% 5
66% 5
75% 6
80% 6
90% 7
95% 8
98% 10
99% 12
100% 948 (longest request)
----------------------------
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 96.44.188.123 (be patient)
Server Software: Apache
Server Hostname: 96.44.188.123
Server Port: 80
Document Path: /cgi-bin/test.pl
Document Length: 597 bytes
Concurrency Level: 5
Time taken for tests: 5.222 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Non-2xx responses: 1000
Total transferred: 773000 bytes
HTML transferred: 597000 bytes
Requests per second: 191.50 [#/sec] (mean)
Time per request: 26.110 [ms] (mean)
Time per request: 5.222 [ms] (mean, across all concurrent requests)
Transfer rate: 144.56 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.4 0 6
Processing: 5 26 80.3 18 1162
Waiting: 2 25 80.3 18 1162
Total: 6 26 80.3 19 1162
Percentage of the requests served within a certain time (ms)
50% 19
66% 23
75% 26
80% 29
90% 33
95% 36
98% 41
99% 45
100% 1162 (longest request)
----------------------------
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 96.44.188.123 (be patient)
Server Software: Apache
Server Hostname: 96.44.188.123
Server Port: 80
Document Path: /test/phpinfo.php
Document Length: 56501 bytes
Concurrency Level: 5
Time taken for tests: 5.339 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 56681000 bytes
HTML transferred: 56501000 bytes
Requests per second: 187.31 [#/sec] (mean)
Time per request: 26.694 [ms] (mean)
Time per request: 5.339 [ms] (mean, across all concurrent requests)
Transfer rate: 10368.14 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.4 0 7
Processing: 5 26 82.5 15 1167
Waiting: 0 25 82.4 15 1166
Total: 5 27 82.5 15 1167
Percentage of the requests served within a certain time (ms)
50% 15
66% 21
75% 30
80% 32
90% 36
95% 39
98% 69
99% 164
100% 1167 (longest request)
[Updated on: Thu, 09 June 2011 08:48] Report message to a moderator
|
|
|
| Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #84862 is a reply to message #84861] |
Wed, 08 June 2011 05:59   |
|
2. mod_ruid2
----------------------------
Stopping MySQL: [OK]
Starting MySQL: [OK]
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 96.44.188.123 (be patient)
Server Software: Apache
Server Hostname: 96.44.188.123
Server Port: 80
Document Path: /test/snkpage.html
Document Length: 168 bytes
Concurrency Level: 5
Time taken for tests: 2.101 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 421000 bytes
HTML transferred: 168000 bytes
Requests per second: 475.99 [#/sec] (mean)
Time per request: 10.504 [ms] (mean)
Time per request: 2.101 [ms] (mean, across all concurrent requests)
Transfer rate: 195.70 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.1 0 2
Processing: 2 10 76.4 5 1088
Waiting: 2 10 76.4 5 1088
Total: 3 10 76.4 5 1089
Percentage of the requests served within a certain time (ms)
50% 5
66% 5
75% 6
80% 6
90% 7
95% 8
98% 9
99% 10
100% 1089 (longest request)
----------------------------
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 96.44.188.123 (be patient)
Server Software: Apache
Server Hostname: 96.44.188.123
Server Port: 80
Document Path: /test/phpmysqld.php
Document Length: 270 bytes
Concurrency Level: 5
Time taken for tests: 2.042 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Non-2xx responses: 1000
Total transferred: 434000 bytes
HTML transferred: 270000 bytes
Requests per second: 489.82 [#/sec] (mean)
Time per request: 10.208 [ms] (mean)
Time per request: 2.042 [ms] (mean, across all concurrent requests)
Transfer rate: 207.60 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.1 0 1
Processing: 2 10 70.8 5 1010
Waiting: 1 10 70.8 5 1009
Total: 2 10 70.8 5 1010
Percentage of the requests served within a certain time (ms)
50% 5
66% 5
75% 6
80% 6
90% 7
95% 8
98% 9
99% 10
100% 1010 (longest request)
----------------------------
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 96.44.188.123 (be patient)
Server Software: Apache
Server Hostname: 96.44.188.123
Server Port: 80
Document Path: /cgi-bin/test.pl
Document Length: 597 bytes
Concurrency Level: 5
Time taken for tests: 4.897 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Non-2xx responses: 1000
Total transferred: 773000 bytes
HTML transferred: 597000 bytes
Requests per second: 204.22 [#/sec] (mean)
Time per request: 24.484 [ms] (mean)
Time per request: 4.897 [ms] (mean, across all concurrent requests)
Transfer rate: 154.16 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.3 0 5
Processing: 6 24 70.8 18 1030
Waiting: 2 24 70.8 17 1029
Total: 6 24 70.8 18 1030
Percentage of the requests served within a certain time (ms)
50% 18
66% 21
75% 24
80% 27
90% 32
95% 34
98% 37
99% 41
100% 1030 (longest request)
----------------------------
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 96.44.188.123 (be patient)
Server Software: Apache
Server Hostname: 96.44.188.123
Server Port: 80
Document Path: /test/phpinfo.php
Document Length: 56509 bytes
Concurrency Level: 5
Time taken for tests: 4.850 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 56689000 bytes
HTML transferred: 56509000 bytes
Requests per second: 206.21 [#/sec] (mean)
Time per request: 24.248 [ms] (mean)
Time per request: 4.850 [ms] (mean, across all concurrent requests)
Transfer rate: 11415.61 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.2 0 2
Processing: 4 24 78.8 16 1127
Waiting: 0 23 78.8 16 1126
Total: 5 24 78.8 16 1127
Percentage of the requests served within a certain time (ms)
50% 16
66% 19
75% 22
80% 24
90% 32
95% 36
98% 40
99% 161
100% 1127 (longest request)
[Updated on: Thu, 09 June 2011 08:48] Report message to a moderator
|
|
|
| Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #84863 is a reply to message #84862] |
Wed, 08 June 2011 06:00   |
|
3. httpd-itk
----------------------------
Stopping MySQL: [OK]
Starting MySQL: [OK]
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 96.44.188.123 (be patient)
Server Software: Apache
Server Hostname: 96.44.188.123
Server Port: 80
Document Path: /test/snkpage.html
Document Length: 168 bytes
Concurrency Level: 5
Time taken for tests: 6.940 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 421000 bytes
HTML transferred: 168000 bytes
Requests per second: 144.10 [#/sec] (mean)
Time per request: 34.699 [ms] (mean)
Time per request: 6.940 [ms] (mean, across all concurrent requests)
Transfer rate: 59.24 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.6 0 10
Processing: 6 34 78.7 25 1148
Waiting: 6 34 78.7 25 1148
Total: 7 34 78.7 26 1148
Percentage of the requests served within a certain time (ms)
50% 26
66% 31
75% 34
80% 38
90% 50
95% 62
98% 74
99% 82
100% 1148 (longest request)
----------------------------
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 96.44.188.123 (be patient)
Server Software: Apache
Server Hostname: 96.44.188.123
Server Port: 80
Document Path: /test/phpmysqld.php
Document Length: 270 bytes
Concurrency Level: 5
Time taken for tests: 6.852 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Non-2xx responses: 1000
Total transferred: 434000 bytes
HTML transferred: 270000 bytes
Requests per second: 145.95 [#/sec] (mean)
Time per request: 34.259 [ms] (mean)
Time per request: 6.852 [ms] (mean, across all concurrent requests)
Transfer rate: 61.86 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 1.4 0 15
Processing: 6 33 71.8 25 1051
Waiting: 3 33 71.9 24 1051
Total: 6 34 71.8 25 1051
Percentage of the requests served within a certain time (ms)
50% 25
66% 31
75% 34
80% 37
90% 49
95% 68
98% 74
99% 76
100% 1051 (longest request)
----------------------------
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 96.44.188.123 (be patient)
Server Software: Apache
Server Hostname: 96.44.188.123
Server Port: 80
Document Path: /cgi-bin/test.pl
Document Length: 597 bytes
Concurrency Level: 5
Time taken for tests: 9.072 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Non-2xx responses: 1000
Total transferred: 773000 bytes
HTML transferred: 597000 bytes
Requests per second: 110.23 [#/sec] (mean)
Time per request: 45.360 [ms] (mean)
Time per request: 9.072 [ms] (mean, across all concurrent requests)
Transfer rate: 83.21 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.7 0 11
Processing: 14 45 76.0 36 1120
Waiting: 13 44 76.0 35 1120
Total: 15 45 76.0 36 1120
Percentage of the requests served within a certain time (ms)
50% 36
66% 42
75% 47
80% 50
90% 61
95% 83
98% 94
99% 100
100% 1120 (longest request)
----------------------------
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 96.44.188.123 (be patient)
Server Software: Apache
Server Hostname: 96.44.188.123
Server Port: 80
Document Path: /test/phpinfo.php
Document Length: 56505 bytes
Concurrency Level: 5
Time taken for tests: 49.517 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 56685000 bytes
HTML transferred: 56505000 bytes
Requests per second: 20.20 [#/sec] (mean)
Time per request: 247.583 [ms] (mean)
Time per request: 49.517 [ms] (mean, across all concurrent requests)
Transfer rate: 1117.94 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.7 0 13
Processing: 108 247 141.8 206 1696
Waiting: 107 246 141.7 205 1696
Total: 108 247 141.9 206 1696
Percentage of the requests served within a certain time (ms)
50% 206
66% 240
75% 279
80% 300
90% 402
95% 513
98% 585
99% 668
100% 1696 (longest request)
[Updated on: Thu, 09 June 2011 08:47] Report message to a moderator
|
|
|
| Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #84864 is a reply to message #84863] |
Wed, 08 June 2011 06:01   |
|
4. suphp
----------------------------
Stopping MySQL: [OK]
Starting MySQL: [OK]
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 96.44.188.123 (be patient)
Server Software: Apache
Server Hostname: 96.44.188.123
Server Port: 80
Document Path: /test/snkpage.html
Document Length: 168 bytes
Concurrency Level: 5
Time taken for tests: 1.576 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 421000 bytes
HTML transferred: 168000 bytes
Requests per second: 634.50 [#/sec] (mean)
Time per request: 7.880 [ms] (mean)
Time per request: 1.576 [ms] (mean, across all concurrent requests)
Transfer rate: 260.87 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 0
Processing: 2 8 64.5 3 918
Waiting: 2 8 64.5 3 918
Total: 2 8 64.5 3 918
Percentage of the requests served within a certain time (ms)
50% 3
66% 3
75% 4
80% 4
90% 4
95% 5
98% 6
99% 7
100% 918 (longest request)
----------------------------
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 96.44.188.123 (be patient)
Server Software: Apache
Server Hostname: 96.44.188.123
Server Port: 80
Document Path: /test/phpmysqld.php
Document Length: 270 bytes
Concurrency Level: 5
Time taken for tests: 1.750 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Non-2xx responses: 1000
Total transferred: 434000 bytes
HTML transferred: 270000 bytes
Requests per second: 571.33 [#/sec] (mean)
Time per request: 8.751 [ms] (mean)
Time per request: 1.750 [ms] (mean, across all concurrent requests)
Transfer rate: 242.15 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 1
Processing: 2 9 69.2 3 985
Waiting: 2 8 69.2 3 985
Total: 2 9 69.2 4 985
Percentage of the requests served within a certain time (ms)
50% 4
66% 4
75% 4
80% 4
90% 5
95% 6
98% 6
99% 8
100% 985 (longest request)
----------------------------
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 96.44.188.123 (be patient)
Server Software: Apache
Server Hostname: 96.44.188.123
Server Port: 80
Document Path: /cgi-bin/test.pl
Document Length: 562 bytes
Concurrency Level: 5
Time taken for tests: 7.286 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 714000 bytes
HTML transferred: 562000 bytes
Requests per second: 137.24 [#/sec] (mean)
Time per request: 36.432 [ms] (mean)
Time per request: 7.286 [ms] (mean, across all concurrent requests)
Transfer rate: 95.70 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.2 0 3
Processing: 11 36 69.2 27 1013
Waiting: 11 36 69.2 27 1013
Total: 11 36 69.2 27 1013
Percentage of the requests served within a certain time (ms)
50% 27
66% 31
75% 35
80% 39
90% 60
95% 69
98% 74
99% 96
100% 1013 (longest request)
----------------------------
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 96.44.188.123 (be patient)
Server Software: Apache
Server Hostname: 96.44.188.123
Server Port: 80
Document Path: /test/phpinfo.php
Document Length: 57138 bytes
Concurrency Level: 5
Time taken for tests: 75.444 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 57318000 bytes
HTML transferred: 57138000 bytes
Requests per second: 13.25 [#/sec] (mean)
Time per request: 377.221 [ms] (mean)
Time per request: 75.444 [ms] (mean, across all concurrent requests)
Transfer rate: 741.93 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.2 0 2
Processing: 197 377 162.1 326 1839
Waiting: 197 376 162.1 325 1838
Total: 197 377 162.1 326 1839
Percentage of the requests served within a certain time (ms)
50% 326
66% 373
75% 421
80% 459
90% 569
95% 683
98% 855
99% 920
100% 1839 (longest request)
[Updated on: Thu, 09 June 2011 08:47] Report message to a moderator
|
|
|
| Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #84865 is a reply to message #84864] |
Wed, 08 June 2011 06:03   |
|
Recap:
Connection Times (ms) for 1000 request and 5 concurrent
---------------------------------------------------------------
snkpage.html phpmysqld.php test.pl phpinfo.php
----------------------------------------------------------------------------
mod_php 1102 (100%) 948 (100%) 1162 (100%) 1167 (100%)
mod_ruid2 1089 (99%) 1010 (107%) 1030 (89%) 1127 (97%)
httpd-itk 1148 (104%) 1051 (110%) 1120 (96%) 1696 (145%)
mod_suphp 918 (83%) 985 (104%) 1013 (87%) 1839 (158%)
----------------------------------------------------------------------------
* Lower is better
- Benchmark for mysql may not accurate because too small content.
[Updated on: Thu, 09 June 2011 08:46] Report message to a moderator
|
|
|
| Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #84901 is a reply to message #84865] |
Wed, 08 June 2011 22:04   |
|
5. suphp + httpd-worker --> NEW!!!
----------------------------
Stopping MySQL: [OK]
Starting MySQL: [OK]
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 96.44.188.123 (be patient)
Server Software: Apache
Server Hostname: 96.44.188.123
Server Port: 80
Document Path: /test/snkpage.html
Document Length: 168 bytes
Concurrency Level: 5
Time taken for tests: 1.372 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 421000 bytes
HTML transferred: 168000 bytes
Requests per second: 728.71 [#/sec] (mean)
Time per request: 6.861 [ms] (mean)
Time per request: 1.372 [ms] (mean, across all concurrent requests)
Transfer rate: 299.60 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 1 0.4 1 2
Processing: 0 6 68.8 1 976
Waiting: 0 6 68.8 1 976
Total: 0 7 68.7 2 976
Percentage of the requests served within a certain time (ms)
50% 2
66% 2
75% 2
80% 3
90% 3
95% 3
98% 3
99% 4
100% 976 (longest request)
----------------------------
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 96.44.188.123 (be patient)
Server Software: Apache
Server Hostname: 96.44.188.123
Server Port: 80
Document Path: /test/phpmysqld.php
Document Length: 270 bytes
Concurrency Level: 5
Time taken for tests: 1.414 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Non-2xx responses: 1000
Total transferred: 434000 bytes
HTML transferred: 270000 bytes
Requests per second: 707.28 [#/sec] (mean)
Time per request: 7.069 [ms] (mean)
Time per request: 1.414 [ms] (mean, across all concurrent requests)
Transfer rate: 299.77 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 1 0.5 1 3
Processing: 0 6 69.4 1 986
Waiting: 0 6 69.4 1 986
Total: 1 7 69.4 2 986
Percentage of the requests served within a certain time (ms)
50% 2
66% 2
75% 3
80% 3
90% 3
95% 3
98% 4
99% 4
100% 986 (longest request)
----------------------------
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 96.44.188.123 (be patient)
Server Software: Apache
Server Hostname: 96.44.188.123
Server Port: 80
Document Path: /cgi-bin/test.pl
Document Length: 562 bytes
Concurrency Level: 5
Time taken for tests: 4.867 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 714000 bytes
HTML transferred: 562000 bytes
Requests per second: 205.47 [#/sec] (mean)
Time per request: 24.334 [ms] (mean)
Time per request: 4.867 [ms] (mean, across all concurrent requests)
Transfer rate: 143.27 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.2 0 4
Processing: 12 24 64.5 19 937
Waiting: 11 24 64.5 19 937
Total: 12 24 64.5 19 937
Percentage of the requests served within a certain time (ms)
50% 19
66% 21
75% 22
80% 23
90% 25
95% 27
98% 32
99% 34
100% 937 (longest request)
----------------------------
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 96.44.188.123 (be patient)
Server Software: Apache
Server Hostname: 96.44.188.123
Server Port: 80
Document Path: /test/phpinfo.php
Document Length: 57139 bytes
Concurrency Level: 5
Time taken for tests: 48.003 seconds
Complete requests: 1000
Failed requests: 3
(Connect: 0, Receive: 0, Length: 3, Exceptions: 0)
Write errors: 0
Non-2xx responses: 3
Total transferred: 57149362 bytes
HTML transferred: 56969374 bytes
Requests per second: 20.83 [#/sec] (mean)
Time per request: 240.016 [ms] (mean)
Time per request: 48.003 [ms] (mean, across all concurrent requests)
Transfer rate: 1162.63 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.2 0 3
Processing: 74 240 97.6 215 1356
Waiting: 74 239 97.6 214 1356
Total: 74 240 97.6 215 1357
Percentage of the requests served within a certain time (ms)
50% 215
66% 239
75% 265
80% 281
90% 319
95% 368
98% 428
99% 482
100% 1357 (longest request)
[Updated on: Thu, 09 June 2011 08:46] Report message to a moderator
|
|
|
| Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #84902 is a reply to message #84901] |
Wed, 08 June 2011 22:14   |
|
RECAP 2:
Connection Times (ms) for 1000 request and 5 concurrent
---------------------------------------------------------------
snkpage.html phpmysqld.php test.pl phpinfo.php
----------------------------------------------------------------------------
mod_php 1102 (100%) 948 (100%) 1162 (100%) 1167 (100%)
mod_ruid2 1089 (99%) 1010 (107%) 1030 (89%) 1127 (97%)
httpd-itk 1148 (104%) 1051 (110%) 1120 (96%) 1696 (145%)
mod_suphp 918 (83%) 985 (104%) 1013 (87%) 1839 (158%)
mod_suphp + 976 (89%) 986 (104%) 937 (81%) 1357 (118%)
httpd-worker
----------------------------------------------------------------------------
* Lower is better
[Updated on: Thu, 09 June 2011 08:45] Report message to a moderator
|
|
|
| Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #84930 is a reply to message #84902] |
Thu, 09 June 2011 08:34   |
|
6. suphp + httpd-event --> NEW!!!
----------------------------
Stopping MySQL: [OK]
Starting MySQL: [OK]
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 96.44.188.123 (be patient)
Server Software: Apache
Server Hostname: 96.44.188.123
Server Port: 80
Document Path: /test/snkpage.html
Document Length: 168 bytes
Concurrency Level: 5
Time taken for tests: 1.398 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 421421 bytes
HTML transferred: 168168 bytes
Requests per second: 715.43 [#/sec] (mean)
Time per request: 6.989 [ms] (mean)
Time per request: 1.398 [ms] (mean, across all concurrent requests)
Transfer rate: 294.43 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 1 0.5 1 3
Processing: 0 6 67.7 1 962
Waiting: 0 6 67.7 1 961
Total: 1 7 67.7 2 962
Percentage of the requests served within a certain time (ms)
50% 2
66% 2
75% 3
80% 3
90% 3
95% 3
98% 4
99% 5
100% 962 (longest request)
----------------------------
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 96.44.188.123 (be patient)
Server Software: Apache
Server Hostname: 96.44.188.123
Server Port: 80
Document Path: /test/phpmysqld.php
Document Length: 270 bytes
Concurrency Level: 5
Time taken for tests: 1.391 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Non-2xx responses: 1001
Total transferred: 434434 bytes
HTML transferred: 270270 bytes
Requests per second: 719.13 [#/sec] (mean)
Time per request: 6.953 [ms] (mean)
Time per request: 1.391 [ms] (mean, across all concurrent requests)
Transfer rate: 305.09 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 1 0.4 1 3
Processing: 1 6 63.8 1 905
Waiting: 0 5 63.8 1 905
Total: 1 7 63.7 2 906
Percentage of the requests served within a certain time (ms)
50% 2
66% 3
75% 3
80% 3
90% 3
95% 3
98% 4
99% 4
100% 906 (longest request)
----------------------------
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 96.44.188.123 (be patient)
Server Software: Apache
Server Hostname: 96.44.188.123
Server Port: 80
Document Path: /cgi-bin/test.pl
Document Length: 562 bytes
Concurrency Level: 5
Time taken for tests: 5.826 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 714000 bytes
HTML transferred: 562000 bytes
Requests per second: 171.64 [#/sec] (mean)
Time per request: 29.131 [ms] (mean)
Time per request: 5.826 [ms] (mean, across all concurrent requests)
Transfer rate: 119.68 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.2 0 4
Processing: 11 29 75.6 18 1072
Waiting: 9 23 74.0 17 1072
Total: 11 29 75.6 18 1073
Percentage of the requests served within a certain time (ms)
50% 18
66% 20
75% 22
80% 24
90% 62
95% 76
98% 83
99% 88
100% 1073 (longest request)
----------------------------
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 96.44.188.123 (be patient)
Server Software: Apache
Server Hostname: 96.44.188.123
Server Port: 80
Document Path: /test/phpinfo.php
Document Length: 57163 bytes
Concurrency Level: 5
Time taken for tests: 48.218 seconds
Complete requests: 1000
Failed requests: 2
(Connect: 0, Receive: 0, Length: 2, Exceptions: 0)
Write errors: 0
Non-2xx responses: 2
Total transferred: 57229860 bytes
HTML transferred: 57049868 bytes
Requests per second: 20.74 [#/sec] (mean)
Time per request: 241.092 [ms] (mean)
Time per request: 48.218 [ms] (mean, across all concurrent requests)
Transfer rate: 1159.07 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.1 0 1
Processing: 74 240 88.6 217 1203
Waiting: 74 240 88.4 216 1203
Total: 74 241 88.6 217 1203
Percentage of the requests served within a certain time (ms)
50% 217
66% 247
75% 266
80% 280
90% 327
95% 369
98% 413
99% 466
100% 1203 (longest request)
[Updated on: Fri, 10 June 2011 08:41] Report message to a moderator
|
|
|
| Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #84931 is a reply to message #84930] |
Thu, 09 June 2011 08:42   |
|
RECAP 3:
Connection Times (ms) for 1000 request and 5 concurrent
---------------------------------------------------------------
snkpage.html phpmysqld.php test.pl phpinfo.php
----------------------------------------------------------------------------
mod_php 1102 (100%) 948 (100%) 1162 (100%) 1167 (100%)
mod_ruid2 1089 (99%) 1010 (107%) 1030 (89%) 1127 (97%)
httpd-itk 1148 (104%) 1051 (110%) 1120 (96%) 1696 (145%)
mod_suphp 918 (83%) 985 (104%) 1013 (87%) 1839 (158%)
mod_suphp + 976 (89%) 986 (104%) 937 (81%) 1357 (118%)
httpd-worker
mod_suphp + 962 (97%) 906 (96%) 1073 (92%) 1203 (103%)
httpd-event
----------------------------------------------------------------------------
* Lower is better
[Updated on: Thu, 09 June 2011 08:44] Report message to a moderator
|
|
| | | | | | |
| Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #90454 is a reply to message #84860] |
Sat, 29 October 2011 08:45   |
|
Here are some realworld production server results.
I have tested with loadimpact(1-50 users) site which is normal loading time around 4 sec. (medium WP site)
in all tests load times did not go above 6 sec but I was monitoring CPU usage during testing and it shows this:
mod_php - did not test since is not ok for shared setup
mod_ruid2 - max CPU at 30
httpd-itk - max CPU at 51
mod_suphp - max CPU at 76
mod_suphp + httpd-worker - max CPU 63
mod_suphp + httpd-event - max CPU 58
ruid2 have serious memory leak issues and is filling memory all the way... Not god at all but fastest
edit: CPU is in average 1 min load with 0. in front... 4 cores
[Updated on: Wed, 02 November 2011 08:14] Report message to a moderator
|
|
| | | | | | | |
| Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #95921 is a reply to message #94892] |
Mon, 05 March 2012 13:40   |
|
shazar wrote on Tue, 07 February 2012 16:23 Most likely you have the MaxClients set to 256 which will cause OOM on almost any server under 4 GB of memory and even possible on a server with 8 GB.
Thanks that was it.
I'm on a 2gb vps.
I am not exactly sure what makes mod_php_ruid2 so much different from mod_php in kloxo that I have to go in and set limits in the apache config file.
It works, but I am still scratching my head as to why the apache processes continue to open on a rolling basis and are not appearing to close automatically with ruid2.
for example - the apache processes are remaining open even if there is no trafic coming in - when new trafic comes in it opens more processes - this maxes out memory until a hard limit is hit in the apache config file and then the older processes appear to close/roll off when the hard limit is hit. I am investigating this further and it may be an issue with the apache fork.
For those who need some understanding of tuning the MaxClients parameter here is an older article, but it explains how to claculate and fine tune your apache.
http://2bits.com/articles/tuning-the-apache-maxclients-param eter.html
-joe
|
|
|
| Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #95924 is a reply to message #95921] |
Mon, 05 March 2012 14:06   |
|
The opening and closing of the apache forked processes shouldn't concern you. I actually perfer my spare settings to match my MaxClients. This way all of my apache processes stay open and are ready to work instead of being spawned as needed and closed when not needed. Basically it seems the ruid2 module keeps it open longer. This should not be a bad thing, it means the process can be up and waiting instead of being killed and respawned when later needed. It should be easier to see the maximum you can set MaxClients to after a week as well. Don't use up all of your memory as spare memory will be used for file caching and write buffering, which should improve performance.
https://www.mercuryvps.com
HyperVM Xen VPS hosting
[Updated on: Mon, 05 March 2012 14:07] Report message to a moderator
|
|
| | | | | | |
Goto Forum:
Current Time: Fri May 24 05:18:18 EDT 2013
Total time taken to generate the page: 0.01703 seconds
|