phpBB benchmarking

Do not post support requests, bug reports or feature requests. Discuss phpBB here. Non-phpBB related discussion goes in General Discussion!
Anti-Spam Guide
lemonandlime
Registered User
Posts: 7
Joined: Sat Oct 24, 2009 10:29 pm

phpBB benchmarking

Post by lemonandlime »

If anyone owns a vps/dedi, and is running a phpBB forum, could you please benchmark its performance!

Preferably you need shell access on the server to run this command:
Code:

ab -n 2000 -c 20 http://domain.com/forum/

This will run the apache benchmarking tool (works with other web servers) and request the forum index page a total of 2000 times with 20 synchronous workers.

Please run this and post results (looking for "requests per second"), make sure you post your servers spec and how big your forum is.

The reason I ask is that my forum gets really bad results, vanilla installs arent much better (add some forums and posts and it gets much slower). It's not the server, php or mysql - they've been cleared so the only thing left is phpBB. And I just refuse to accept its phpBBs fault either!

Thanks...
ToonArmy
Former Team Member
Posts: 4608
Joined: Sat Mar 06, 2004 5:29 pm
Location: Worcestershire, UK
Name: Chris Smith
Contact:

Re: phpBB benchmarking

Post by ToonArmy »

32000 posts, 17000 topics.

Code: Select all

Server Software:        nginx/0.6.32
Server Hostname:        xmedia.ex.ac.uk
Server Port:            80

Document Path:          /forums/
Document Length:        56304 bytes

Concurrency Level:      20
Time taken for tests:   69.685319 seconds
Complete requests:      2000
Failed requests:        1354
   (Connect: 0, Length: 1354, Exceptions: 0)
Write errors:           0
Total transferred:      113986837 bytes
HTML transferred:       112645497 bytes
Requests per second:    28.70 [#/sec] (mean)
Time per request:       696.853 [ms] (mean)
Time per request:       34.843 [ms] (mean, across all concurrent requests)
Transfer rate:          1597.40 [Kbytes/sec] received
Chris SmithGitHub
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 27130
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Re: phpBB benchmarking

Post by Paul »

125k posts, 9k topics:

Code: Select all

Server Software:        Apache/2
Server Hostname:        www.staffordforum.eu
Server Port:            80

Document Path:          /nl/
Document Length:        19474 bytes

Concurrency Level:      20
Time taken for tests:   83.573 seconds
Complete requests:      2000
Failed requests:        1778
   (Connect: 0, Receive: 0, Length: 1778, Exceptions: 0)
Write errors:           0
Total transferred:      40374488 bytes
HTML transferred:       39212488 bytes
Requests per second:    23.93 [#/sec] (mean)
Time per request:       835.733 [ms] (mean)
Time per request:       41.787 [ms] (mean, across all concurrent requests)
Transfer rate:          471.78 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   3.0      0      36
Processing:    66  834 283.7    808    2559
Waiting:       26  734 285.0    712    2534
Total:         66  834 283.8    808    2559

Percentage of the requests served within a certain time (ms)
  50%    808
  66%    917
  75%    985
  80%   1039
  90%   1167
  95%   1319
  98%   1580
  99%   1744
 100%   2559 (longest request)

And a second try

Code: Select all

Server Software:        Apache/2
Server Hostname:        www.staffordforum.eu
Server Port:            80

Document Path:          /nl/
Document Length:        19627 bytes

Concurrency Level:      20
Time taken for tests:   98.885 seconds
Complete requests:      2000
Failed requests:        129
   (Connect: 0, Receive: 0, Length: 129, Exceptions: 0)
Write errors:           0
Total transferred:      40425933 bytes
HTML transferred:       39263933 bytes
Requests per second:    20.23 [#/sec] (mean)
Time per request:       988.851 [ms] (mean)
Time per request:       49.443 [ms] (mean, across all concurrent requests)
Transfer rate:          399.24 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    2  13.2      0     166
Processing:    67  986 636.0    880    7038
Waiting:       61  839 572.1    765    6349
Total:         67  988 636.1    881    7038

Percentage of the requests served within a certain time (ms)
  50%    881
  66%   1027
  75%   1129
  80%   1214
  90%   1529
  95%   1914
  98%   2636
  99%   4131
 100%   7038 (longest request)

(Note, this test is now at the busiest moment of the week, so its not the most fastest).
User avatar
Dog Cow
Registered User
Posts: 2500
Joined: Fri Jan 28, 2005 12:14 am
Contact:

Re: phpBB benchmarking

Post by Dog Cow »

I'm doing this site. Will post results in a moment. :P

... OK, here we are:

Code: Select all

Server Software:        Apache
Server Hostname:        www.phpbb.com
Server Port:            80

Document Path:          /community/
Document Length:        43108 bytes

Concurrency Level:      20
Time taken for tests:   147.392 seconds
Complete requests:      2000
Failed requests:        1694
   (Connect: 0, Receive: 0, Length: 1694, Exceptions: 0)
Write errors:           0
Total transferred:      84714470 bytes
HTML transferred:       83429297 bytes
Requests per second:    13.57 [#/sec] (mean)
Time per request:       1473.917 [ms] (mean)
Time per request:       73.696 [ms] (mean, across all concurrent requests)
Transfer rate:          561.29 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       84   88   3.0     88     125
Processing:   499 1382 696.7   1403   28047
Waiting:       89  299 343.1    287   15252
Total:        586 1470 696.7   1492   28137

Percentage of the requests served within a certain time (ms)
  50%   1492
  66%   1606
  75%   1681
  80%   1737
  90%   1899
  95%   2042
  98%   2137
  99%   2253
 100%  28137 (longest request)
Moof!
Mac GUI Vault: Retro Apple II & Macintosh computing archive.
Inside Allerton bookMac GUIMac 512K Blog
lemonandlime
Registered User
Posts: 7
Joined: Sat Oct 24, 2009 10:29 pm

Re: phpBB benchmarking

Post by lemonandlime »

Thanks guys! What sort of spec are your servers? Dual core? Quad? :D
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 27130
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Re: phpBB benchmarking

Post by Paul »

Mine is from a 3 year old core 2 duo (so dualcore).
lemonandlime
Registered User
Posts: 7
Joined: Sat Oct 24, 2009 10:29 pm

Re: phpBB benchmarking

Post by lemonandlime »

For reference, my board has 100K posts, 25K topics, 6K users. The server is an i7, 12GB ram and 2 SSDs in raid 0. I'm getting about 20 requests per second on that. Another forum i host (same server) with 40K posts gets 150 requests/sec; so Im still trying to find out if this is a mod related thing or if "ab" downloads all the images too, or just html etc.
User avatar
Kellanved
Former Team Member
Posts: 2635
Joined: Wed Jan 26, 2005 2:48 pm
Location: Meta-level

Re: phpBB benchmarking

Post by Kellanved »

lemonandlime wrote:For reference, my board has 100K posts, 25K topics, 6K users. The server is an i7, 12GB ram and 2 SSDs in raid 0. I'm getting about 20 requests per second on that. Another forum i host (same server) with 40K posts gets 150 requests/sec; so Im still trying to find out if this is a mod related thing or if "ab" downloads all the images too, or just html etc.
In that case, it is safe to say that you are looking at a server configuration issue. A board that size should run comfortably on any old single-CPU server - a virtual server should do. The specs are far superior to those of the phpBB.com server.
Nocando is in Idontwanna county. No support via PM
lemonandlime
Registered User
Posts: 7
Joined: Sat Oct 24, 2009 10:29 pm

Re: phpBB benchmarking

Post by lemonandlime »

I know this is a phpBB help forum (rather than server help), but maybe someone here might know something or would be able to help me.

I've just installed fedora 10, lighttpd, php (inc APC) and mysql (from YUM) and setup a blank phpBB forum - getting 100 req/s on that. Tweaking mysql settings doesnt help much.

Can i ask what operating systems you are using, and if youre using any special software? Or did you compile your own mysql etc?
ToonArmy
Former Team Member
Posts: 4608
Joined: Sat Mar 06, 2004 5:29 pm
Location: Worcestershire, UK
Name: Chris Smith
Contact:

Re: phpBB benchmarking

Post by ToonArmy »

My stats are from a Pentium D with 4GiB memory, using stock Debian software.
Chris SmithGitHub
Acyd Burn
Consultant
Consultant
Posts: 5830
Joined: Wed Dec 05, 2001 8:31 pm
Location: Behind You
Name: Meik Sievertsen

Re: phpBB benchmarking

Post by Acyd Burn »

Do you use a NFS share where phpBB is installed or for the cache directory? Have you tried to disable phpBB's cache or to profile the index page to determine where the most time is spent?

A board with 100k posts is still under the category "small board" if it comes to resources required. ;)
ToonArmy
Former Team Member
Posts: 4608
Joined: Sat Mar 06, 2004 5:29 pm
Location: Worcestershire, UK
Name: Chris Smith
Contact:

Re: phpBB benchmarking

Post by ToonArmy »

Worth enabling debug mode and looking at the explain statistic, link will be added to the footer.
Chris SmithGitHub
arod-1
Registered User
Posts: 1327
Joined: Mon Sep 20, 2004 1:33 pm

Re: phpBB benchmarking

Post by arod-1 »

i would be mightily interested if anyone of the people who measured results could repeat the tests with SubSilver2 (i.e., install the style and make it the "default" for the duration of the test) and report here if they see same results, or if there is a significant difference one way or the other.

it's been my sense for a long time that there is something performance-hostile in the prosilver implementation (don't get me wrong - i love the style and would not use subSilver - but i do believe that there is some performance gotchas in the implementation).

peace.
ToonArmy
Former Team Member
Posts: 4608
Joined: Sat Mar 06, 2004 5:29 pm
Location: Worcestershire, UK
Name: Chris Smith
Contact:

Re: phpBB benchmarking

Post by ToonArmy »

Yes the images. ab doesn't download all the page resources, so the only difference will be the size of the header/index/footer templates.
Chris SmithGitHub
lemonandlime
Registered User
Posts: 7
Joined: Sat Oct 24, 2009 10:29 pm

Re: phpBB benchmarking

Post by lemonandlime »

Explain mode shows everything fine

Code: Select all

Page generated in 0.1948 seconds with 19 queries + 3 queries returning data from cache
Time spent on mysqli queries: 0.01932s | Time spent on PHP: 0.17548s
Things are fast, but it just wont go above 20 requests per second.

Going to try another OS... (Debian and CentOS)
Post Reply

Return to “phpBB Discussion”