1

So, I've installed stock Drupal 8 version which I downloaded yesterday on my local server, today I've decided to run some benchmarking using Apache's benchmark tool and this is what I get:

[Without cache]

ab2 -n 1000 -c 5 http://localhost/drupal/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, *link removed*
Licensed to The Apache Software Foundation, *link removed*

Benchmarking localhost (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Completed 1000 requests
Finished 1000 requests


Server Software:        Apache
Server Hostname:        localhost
Server Port:            80

Document Path:          /drupal/
Document Length:        6407 bytes

Concurrency Level:      5
Time taken for tests:   1.536 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Total transferred:      6979000 bytes
HTML transferred:       6407000 bytes
Requests per second:    651.05 [#/sec] (mean)
Time per request:       7.680 [ms] (mean)
Time per request:       1.536 [ms] (mean, across all concurrent requests)
Transfer rate:          4437.18 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.0      0       1
Processing:     5    8   2.9      7      40
Waiting:        5    8   2.9      7      40
Total:          5    8   2.9      7      40

Percentage of the requests served within a certain time (ms)
  50%      7
  66%      8
  75%      8
  80%      8
  90%      9
  95%     10
  98%     11
  99%     27
 100%     40 (longest request)

[With cache]

ab2 -n 1000 -c 5 http://localhost/drupal/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, *link removed*
Licensed to The Apache Software Foundation, *link removed*

Benchmarking localhost (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Completed 1000 requests
Finished 1000 requests


Server Software:        Apache
Server Hostname:        localhost
Server Port:            80

Document Path:          /drupal/
Document Length:        68 bytes

Concurrency Level:      5
Time taken for tests:   18.641 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Non-2xx responses:      1000
Total transferred:      624000 bytes
HTML transferred:       68000 bytes
Requests per second:    53.64 [#/sec] (mean)
Time per request:       93.207 [ms] (mean)
Time per request:       18.641 [ms] (mean, across all concurrent requests)
Transfer rate:          32.69 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.0      0       0
Processing:    52   93  21.4     89     234
Waiting:       52   93  21.4     89     234
Total:         52   93  21.4     89     234

Percentage of the requests served within a certain time (ms)
  50%     89
  66%     93
  75%     97
  80%    102
  90%    113
  95%    129
  98%    171
  99%    176
 100%    234 (longest request)

I toggle caching by going into configuration > performance > selecting {no caching, 5 min}

Mind you, there's no content on the website nor anything added just a minimal installation with toolbar module and a couple of others enabled

My question is - how is it possible that drupal takes significantly more time to load (see time taken for tests) when caching is on that when it's disabled? -I mean shouldn't caching improve load times or am I getting this all wrong?

0

EDIT: I read the question wrong, and thought OP was asking about D7 vs D8. But they were talking about D8 caching vs D8 no caching. My bad. If you're interested D7 vs D8, here's my original answer... ;-)

Simple answer is there is more code in D8. But comparing vanilla D7 and vanilla D8 is not a valid comparison, because D8 includes many of the modules that you would normally install in a D7 site. That, and the caching and routing layers will allow much better benchmarking in certain areas that are common to high-traffic and very-content-full sites.

There was a similar question asked that goes into more detail: Drupal 8 vs 7 performance comparison?

  • I take the OP is comparing Drupal 8 when caching is enabled with Drupal 8 when caching is not enabled, and noticed that caching seems not to help. – kiamlaluno Nov 22 '15 at 17:00
  • Ah! I see - I misunderstood the question. Thanks, I'll update my answer. – m.stenta Nov 23 '15 at 17:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy