blog | popular | study | writing | projects | about | connect

How to Run a <200ms WordPress Site

July 6th, 2011 | System Administration

webserverconfiguration

I’ve spend significant time optimizing my site for speed. It’s true that Google favors sites that are fast, but I do it because I hate waste, and I find it enjoyable to optimize things.

The yield from this effort is that I now average ~200ms load times for my WordPress content. In short, my site is fast, and I get a lot of questions and comments on how I get this kind of speed, so here’s my setup:

  1. I run highly optimized markup. I wrote my theme myself (it’s the same for my WordPress and custom content), and it’s focused on simplicity and speed.
  2. I use inline CSS data to serve my core site images. So, once you pull my CSS you have my logo image and every other image you see in my core template. And that’s cached, so you only get it once. Everything pops after that.
  3. I run Nginx instead of Apache. It’s attacked less, extremely lightweight, and very fast.
  4. I compress and cache the hell out of everything using nginx.
  5. I run Varnish as a front-end to Nginx, which gives wicked fast response times. Basically, it serves your entire site as static files–out of memory.
  6. I use CloudFlare, which sits in front of all of this, caches my images and CSS and serves them from local distribution points worldwide, and fields all of my junk traffic such as bots and low-level web attacks.

The results have their own voice.

siteisfast

[ In addition to speed, this configuration allows me to take significant traffic while barely noticing. I've been on the front page of Reddit and Hacker News a number of times using this configuration, and my server giggled slightly. ]

So yeah, this config is rockin’, but I am always looking to improve. Hit me up with questions, comments, and ways you think I can optimize. I love to hear from fellow optimizers.

::

Related Posts:

  • 10 Ways to Improve Your Website Performance
  • WordPress Optimization Results: Varnish/Nginx/APC + W3 Total
  • 10 Ways to Test Your Website Performance
  • Getting Real IP Addresses Using CloudFlare, Nginx, and…
  • Handling Redirects with Varnish and Nginx
  • Varnish and Nginx
  • Good Times With Varnish, Nginx, and Apache Bench
  • Site Optimization With Inline CSS Images
  • Varnish Enabled
  • Optimizing WordPress with Nginx, Varnish, APC, W3 Total…


☐ If you enjoyed this, please consider connecting via Twitter, RSS, or my other content.

← Older Comments
  • Pingback: swimming trunks

  • Pingback: Houston Bejcek

  • Pingback: Benny Gingerich

  • Pingback: Ricardo Rodak

  • Pingback: Danny Deike

  • Pingback: Fatima Prosper

  • Pingback: Daina Klepchick

  • Pingback: Catherine Maisel

  • Pingback: Georgann Dimassimo

  • Pingback: Bryce Maler

  • Pingback: Derrick Rovner

← Older Comments



Daniel Miessler | 1999-2013 | Share

Powered by Stack