Drupal 7 vs Drupal 8 (beta 11) Performance Tests

It has been 3 months since March 25, when I publiched Drupal 7 vs Drupal 8 speed tests results. Now, after there has been a significant performance work on Drupal 8 caching, I am revisiting the issue, comparing Drupal 8 beta 11 to Drupal 7.37.

Tests were conducted my my work Lenovo ThinkPad E530c laptop with 8Mb RAM and SSD hard drive, with Ubuntu 14.10, LAMP stack with MariaDB 10.1 and PHP 5.6.9. No APC or any other cache except the build-in PHP's opcache and Drupal's native's cache. The ab test command ran 1000 requests with concurrency of 20.

Because Drupal 8 now has caching turned on by default, I have also turned caching on for Drupal 7, to make sure that I test performance under the similar settings. All test results here are taken with Drupal 7 native caching on.

So, what's the result?

1. No content, cached.

The idea here was to test 'pure' codebase, without any content, like in my previous test. Caching for anonymous users was enabled for both cases. Drupal 7 outperformed Drupal 8 with about 2.3 times difference, with 486 against 209 requests per second. For Drupal 7 users out there - please take note, that Drupal 7 performed about 7 times better with native caching on!

2. 10 nodes, front page, cached.

Now what about content? It has been entertained, that perhaps, with Drupal 8's superior caching mechanism, it might even out perform Drupal 7. Well, it doesn't. The figures from the previous section have scaled almost perfectly into the 10 nodes content, with only a slight varition, 477 vs 206 requests per second. A difference so small, that we can almost conclude, that 10 nodes did not slow rendering in any significant manner in both cases. And still, Drupal 7 is about 2.3 times faster.

3. 10 nodes, front page, logged in.

Testing as a logged in user. Drupal performance drops drastically in both cases, which is expected. When logged in, only 21 request per second was managed by Drupal 7, and only 7 requests per second by Drupal 8, which makes Drupal 8 percisely 3 times slower for logged in users.

Conclusion.

There has been an improvement in Drupal 8 performance. In previous tests, Drupal 8 was 4-3 times less performant than Drupal 7. Now, it is only 3-2 times less performant. An 1/4 performance gain is a significant gain, though it still does not bring Drupal 8 close to Drupal 7. Drupal 8 remains 2-3 times regressed in performance, which is especially evident for logged in users - this needs to be taken to account when intending to use Drupal 8 for social networks and blogging platforms with many authenticated users.