WordPress vs. Drupal - Which is faster?

Posted by Oleg Prosyanik


Today we’ll be testing several servers and software configurations to obtain summary test reports and compare the results. Let’s say for example we plan to open a new website with regular, ongoing streaming of data, images and video clips, for instance, a news site. 

In the process of planning the project, we decided to try two blog configurations in parallel. 

WordPress vs. Drupal

Both have advantages and disadvantages. Making the right decision without any pre-testing or reference for possible results is difficult and not recommended. Running these tests are important as we will then be able to better assess between the two configurations and select our best option.
 
Before you start testing or getting results, let’s set up our two configurations, add some test content to the websites and finally, assess possible actions of potential users. Then, we need to design the test scripts and proceed to test the configurations.
 
Step 1. Test Server Configuration.
Because we need obtain as many results as possible, let’s configure our servers as real-world scenarios. First, configure the hardware, install and prep all necessary server software. Next, we prepare the demo sites for testing. 
 
To get the load testing results, we connected to our New Relic account - our partners for application performance monitoring (APM) - to the server applications to monitor performance during the load test. 
 
*Note- To use New Relic’s APM service, a downloaded component must be installed on the servers and be linked to your New Relic account. 
 
The next necessary action is the configuration of both websites and the uploading of the test materials to simulate the service.
 
BlazeMeter: Test Server Configuration
 
We already configured both our Drupal and WordPress blogs and installed all necessary modules, optimized the sites and added in the content;  a few posts, some static content pages and basic forms.
 
So we are starting with two nearly identical sites in terms of content and functionality, albeit located on two separate servers with the same hardware configuration. When we run our aggregated test , we’ll get a better idea of the which system configuration is better for our purposes.
 
Step 2. The Creation of Load Scripts.
When we configure our blogs, we can begin creation of our JMeter test scripts for each configuration which will then be combined into a single test.
 
The test plan consists of basic user actions reading through a blog post, viewing other site pages etc. 
 
BlazeMeter: Creation of Load Scripts
 
 
Step 3. Creation of Aggregated Tests.
Now that we have configured the demo sites and test scripts we can get down to it. 
 
Comparing our Drupal blog with our WordPress blog and creating an aggregation test.
 
An aggregation test is a test that contains master and slave tests. Master load tests run and controls related slave tests.  Running tests in this way allows us to easily and effectively compare results about efficiency of the CMS for Drupal and WordPress. In our case, the Aggregation test results contain information from several test sessions.
 
BlazeMeter: Creation of Aggregated Test Scripts
 
To create the tests, login to your BlazeMeter account, then click “Add Test”.
 
Set the test name, traffic origin location and JMeter version. Then, upload the script files and configure virtual user activity as shown above.
 
To obtain additional information we can now connect your New Relic account and select the data you wish to monitor in our reports. 
 
To do this, expand the New Relic settings group, connect to your existing New Relic account, and select the required application and metrics to obtain. For example, we want get data pertaining to errors per minute which occurs during test run.
 
BlazeMeter: New Relic Settings
 
Set the advanced properties of the each load test.  In this section we must set, which load test will be the master and which the slave. 
 
We set the Drupal blog as the slave test. To do this we select the corresponding radio button under the ‘Multi Test Type’ options block. This test will now be controlled by the master load test.
 
BlazeMeter: Advanced Test Properties
 
During the creation of the second test, of our WordPress blog, again under the advanced test properties and select “Multi Test Type: Master”. When setting up a test as the master test, we need to choose the slave tests that were pre-configured as slaves. Under the “Slaves” checkbox dropdown, we selected the Drupal load test created before. 
 
BlazeMeter: Advanced Test Properties- JMeter Console Command Line
 
Once set up and saved, our test set up will now be displayed on the main page under the ‘Load Tests’ table. 
 
BlazeMeter: Load Tests Table
 
Step 4. Run Aggregation Load Test
To start the aggregation test open the WordPress load test, from the Load Tests table and use Start button at the top of the test description page.
 
While our test runs, we can see interim results. To do this after the test started, just use the top menu link “Load Report” at the load test page.  Loading the report of the master test allows us to see results not only for the current test but for all running slave tests. 
 
Now, we start our aggregate test and can see interim results for both the WordPress and Drupal blogs. For clarity we named elements of the Drupal load test as “Drupal_*”.
 
BlazeMeter: Run Aggregate Test Reports- Drupal
 
When we open load report for the master test, aside from the standard tabs Load Results, Monitoring and Logs we can also use the Master Load Results and Master Monitoring tabs which show us all the compiled data about the master and slave test runs. 
 
When we added additional tests, we connected our New Relic account and selected which information from New Relic we wanted to view on BlazeMeter’s dashboard. 
 
BlazeMeter:Load Results Tab- New Relic APM Results
 
In the test configuration we opted to view errors which occurred on our server. But, because there are no errors we just see a straight line passing through –“zero errors/minute”. That’s a good result.
 
To view results for the slave tests separately, we just open the required test from the main tests page, Load Tests Table. The load report for the slave test will be shown automatically.
 
When the tests finish, we can open the final aggregated load test report and view the results. To open it, go to main test page “Tests &Reports and open the test report from the Reports list.  The report will be named for the load test which was configured.
 
BlazeMeter: View Results of Master Slave Tests- Slave
 
Step 5. Analyze Results
Now we can analyze the report and decide the winning CMS, Drupal or WordPress, will be better for our purposes. So, we need open the test report to view the results and analyze the graph.
 
Check out the response time under the results tab/Response Time Graph. The average duration of response for Drupal blog is nearly 14 seconds. For the WordPress blog this number is only 0.52 – 0.53 seconds.
 
BlazeMeter: Website response time running by Drupal CMS
 
                                                         Website response time running by Drupal CMS
 
BlazeMeter: Website response time running by WordPress CMS
 
                                                  Website response time running by WordPress CMS
 
Because the response time is one of the most important parameters of the site, we can easily and obviously conclude that the WordPress website works much more quickly than Drupal site.
 
Improvement to the quality of the Drupal site is certainly possible with a number of additional optimizations. But these actions involve additional resources of which we are currently low on. So, WordPress it is, at least for these purposes.
 
Now we have made a thorough assessment of our simulated sites. These are imperative steps in the development of services.
 
WordPress vs. Druapl= WordPress is the Winner!
 
DOWNLOAD BLAZEMETER'S PLUGIN TO WORDPRESS


Join our Sessions (or get the recap)

 
Load Testing for Mobile (made easy), the recap: Learn all about our new mobile testing features and how to easily and realistically test mobile apps and websites.