Skip to main content

Drupal 10 Bench Tests

in category Diagnostics -> PHP Applications -> Drupal 10 Bench Tests. Updated at Fri, 23 Feb 2024 21:05:33 EST

Testing the performance of Drupal 10.


The Drupal team claims they have improved the performance of Drupal in their newest release, Drupal 10.* They are not kidding. Drupal outperforms every other well-known PHP framework that I have tested.

The test below is with Drupal 10.2.0 loaded, and it's default database, plus Commerce installed and several pages of content added, plus several other popular modules loaded. No other PHP framework comes close to Drupal's performance. Drupal is even beating my Perl code running on FCGI. That's unusual.

The Drupal build tested below runs on a networked 8GB RAM Raspberry PI 4 dev server running Apache 2 with php8.3-fpm, comparable to a VM at Azure with 8GB RAM. Drupal is running in debug mode. It is not caching and the css and js are not aggregated. So, this is very much an unoptimized Drupal and it still beats all the other PHP frameworks by quite a bit.

$ ab -c1 -n50 https://drupal10.localnet/
This is ApacheBench, Version 2.3 <$Revision: 1903618 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking drupal10.localnet (be patient).....done


Server Software:        Apache
Server Hostname:        drupal10.localnet
Server Port:            443
SSL/TLS Protocol:       TLSv1.3,TLS_AES_256_GCM_SHA384,2048,256
Server Temp Key:        X25519 253 bits
TLS Server Name:        drupal10.localnet

Document Path:          /
Document Length:        18754 bytes

Concurrency Level:      1
Time taken for tests:   4.131 seconds
Complete requests:      50
Failed requests:        0
Total transferred:      962300 bytes
HTML transferred:       937700 bytes
Requests per second:    12.10 [#/sec] (mean)
Time per request:       82.629 [ms] (mean)
Time per request:       82.629 [ms] (mean, across all concurrent requests)
Transfer rate:          227.46 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        9   11   1.1     11      16
Processing:    69   71   1.3     71      75
Waiting:       67   70   1.3     70      74
Total:         79   82   1.7     82      90

Percentage of the requests served within a certain time (ms)
  50%     82
  66%     83
  75%     83
  80%     84
  90%     84
  95%     85
  98%     90
  99%     90
 100%     90 (longest request)

Keywords
drupal 10 performance, apache bench test PHP