Editing WordPress Optimization

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 17: Line 17:
 
==WordPress Performance Tests==
 
==WordPress Performance Tests==
  
By using the guide below, you can significantly improve Wordpress '''[http://wiki.mikejung.biz/Category:Performance performance]'''. For my tests I used WordPress 4.0.1 and did not create any posts, or add any content to the blog. I did this to set a baseline for performance, once you start adding in content it's hard to really compare results.
+
By using the guide below, you can significantly improve Wordpress performance. For my tests I used WordPress 4.0.1 and did not create any posts, or add any content to the blog. I did this to set a baseline for performance, once you start adding in content it's hard to really compare results.
  
I tested out performance on '''[https://www.liquidweb.com/storm/vps.html LiquidWeb's 1GB SSD VPS]''' The VPS has 2 vCPUs and 1GB of RAM along with 50GB all SSD storage.
+
I tested out performance on [[https://www.liquidweb.com/storm/vps.html LiquidWeb's 1GB SSD VPS]] The VPS has 2 vCPUs and 1GB of RAM along with 50GB all SSD storage.
  
For the "Default" run I used a newly created cPanel server, installed WordPress and started to running tests. I used MySQL 5.6, Apache 2.4 Prefork with PHP 5.4 using SuPHP as the handler. I did not have an optimized .htaccess file in place, Varnish was not installed, '''[http://wiki.mikejung.biz/Memcached Memcached]''' was not installed, and w3totalcache was not used for this run. Obviously this is not how most people run WordPress, but I wanted to use the most basic configuration and no optimizations to show the "worst case" WordPress performance.  
+
For the "Default" run I used a newly created cPanel server, installed WordPress and started to running tests. I used MySQL 5.6, Apache 2.4 Prefork with PHP 5.4 using SuPHP as the handler. I did not have an optimized .htaccess file in place, Varnish was not installed, memcached was not installed, and w3totalcache was not used for this run. Obviously this is not how most people run WordPress, but I wanted to use the most basic configuration and no optimizations to show the "worst case" WordPress performance.  
  
I used '''[http://wiki.mikejung.biz/Apache Apache]''' '''[http://wiki.mikejung.biz/Benchmarking Benchmark]''' to test out the site. I ran this from a remote location, so this was NOT run on the same server that hosted the Wordpress site. This command will use 5 concurrent connections and will load the site 1000 times.  
+
I used Apache Benchmark to test out the site. I ran this from a remote location, so this was NOT run on the same server that hosted the Wordpress site. This command will use 5 concurrent connections and will load the site 1000 times.  
 
<pre>
 
<pre>
 
ab -c 5 -n 1000 http://mytestdomain.lol/
 
ab -c 5 -n 1000 http://mytestdomain.lol/
 
</pre>
 
</pre>
  
As you can see, with the '''default configuration''' I get around '''13 Requests per second'''. The response time for 95% of requests was '''456ms'''. This isn't amazing, but not terrible. The server was able to handle the load without issue, but view the next set of results to see what happens once we '''[http://wiki.mikejung.biz/Category:Optimization optimize]''' the server a bit.  
+
As you can see, with the '''default configuration''' I get around '''13 Requests per second'''. The response time for 95% of requests was '''456ms'''. This isn't amazing, but not terrible. The server was able to handle the load without issue, but view the next set of results to see what happens once we optimize the server a bit.  
 
<pre>
 
<pre>
 
Server Software:        Apache/2.4.10
 
Server Software:        Apache/2.4.10

Please note that all contributions to wiki.mikejung.biz may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see wiki.mikejung.biz:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)