WordPress has long been thought of as the weak option for content management on the web. Developers are often telling clients how Drupal is much more powerful, robust, and secure; or they’re pitching some custom built solution. Then you’ve got the WordPress crowd trying to defend their position claiming that “WordPress is more than just a blogging platform.” Well, I’m about to flip that on its head. I spend a lot of time on the internet—I’ve got my 10,000 hours if you know what I mean—and I’d say WordPress is too much system for a majority of websites.
I’ve long thought static websites are faster, safer, and cheaper. In this article we’ll look at some data concerning speed differences between the two systems and see if I’m right.
To test the difference in speed between WordPress and Jekyll, I set up two sites on an unimpressive shared hosting account. I added a large amount of text and a number of pictures to a post to have some data to work with. Once the pages were loaded with the same data I used GTmetrix and WebPagetest.org to test the sites.
The GTmetrix test of the WordPress site showed a page load time of 3.7 seconds. That’s not bad—better than most according to Google’s data. The GTmetrix test of the Jekyll generated site showed a page load time of 1.4 seconds. That’s 2.3 seconds faster or 164%. The PageSpeed Grade was 35% better and the YSlow grade was 8% better with the static site.
WebPagetest.org runs the site twice giving you a better idea of what a first time visitor would see and what a repeat visitor would see once your site has been cached. Here are the numbers:
Quite a bit different. The page load time is still faster with the static site—82% faster—but WebPagetest.org is showing a longer load time than GTmetrix.
For me, the decision to go with a static site generator is pretty obvious. The only question then is: do you need a database? The answer is “no” more often than you’d think, and if you can say no to the database I think you should. You’ll get more speed, more security, and less complexity, all of which should save you money.