Skip to content

Instantly share code, notes, and snippets.

@glennpratt
Created February 7, 2011 18:26
Show Gist options
  • Save glennpratt/814897 to your computer and use it in GitHub Desktop.
Save glennpratt/814897 to your computer and use it in GitHub Desktop.
Completely unscientific testing of module_implements cache and loadcache.
// Execution time
baseline => 100%
module_implements => 37%
all cache => 24%
// module_implements cache + user_load static, user_load persistent and node_load persistent cache
new-host-3:DrupalBench gpratt$ ./drplb.sh -n 5 -c 2 http://vbox.allplayers.com/users/glenn
Drupal Login: glenn
Password: This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking vbox.allplayers.com (be patient).....done
Server Software: Apache/2.2.14
Server Hostname: vbox.allplayers.com
Server Port: 80
Document Path: /users/glenn
Document Length: 79537 bytes
Concurrency Level: 2
Time taken for tests: 17.731 seconds
Complete requests: 5
Failed requests: 4
(Connect: 0, Receive: 0, Length: 4, Exceptions: 0)
Write errors: 0
Total transferred: 399895 bytes
HTML transferred: 397825 bytes
Requests per second: 0.28 [#/sec] (mean)
Time per request: 7092.287 [ms] (mean)
Time per request: 3546.144 [ms] (mean, across all concurrent requests)
Transfer rate: 22.03 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 1 0.9 2 2
Processing: 5520 5986 313.8 6104 6311
Waiting: 5518 5980 309.9 6099 6298
Total: 5520 5987 314.1 6105 6313
WARNING: The median and mean for the initial connection time are not within a normal deviation
These results are probably not that reliable.
Percentage of the requests served within a certain time (ms)
50% 5976
66% 6234
75% 6234
80% 6313
90% 6313
95% 6313
98% 6313
99% 6313
100% 6313 (longest request)
// module_implements cache
new-host-3:DrupalBench gpratt$ ./drplb.sh -n 5 -c 2 http://vbox.allplayers.com/users/glenn
Drupal Login: glenn
Password: This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking vbox.allplayers.com (be patient).....done
Server Software: Apache/2.2.14
Server Hostname: vbox.allplayers.com
Server Port: 80
Document Path: /users/glenn
Document Length: 79592 bytes
Concurrency Level: 2
Time taken for tests: 27.088 seconds
Complete requests: 5
Failed requests: 4
(Connect: 0, Receive: 0, Length: 4, Exceptions: 0)
Write errors: 0
Total transferred: 400006 bytes
HTML transferred: 397936 bytes
Requests per second: 0.18 [#/sec] (mean)
Time per request: 10835.263 [ms] (mean)
Time per request: 5417.632 [ms] (mean, across all concurrent requests)
Transfer rate: 14.42 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 1 0.2 1 1
Processing: 8263 9001 604.2 9180 9655
Waiting: 8261 8994 601.4 9171 9650
Total: 8264 9001 604.0 9181 9655
Percentage of the requests served within a certain time (ms)
50% 8763
66% 9598
75% 9598
80% 9655
90% 9655
95% 9655
98% 9655
99% 9655
100% 9655 (longest request)
// Baseline
new-host-3:DrupalBench gpratt$ ./drplb.sh -n 5 -c 2 http://vbox.allplayers.com/users/glenn
Drupal Login: glenn
Password: This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking vbox.allplayers.com (be patient).....done
Server Software: Apache/2.2.14
Server Hostname: vbox.allplayers.com
Server Port: 80
Document Path: /users/glenn
Document Length: 79500 bytes
Concurrency Level: 2
Time taken for tests: 72.217 seconds
Complete requests: 5
Failed requests: 4
(Connect: 0, Receive: 0, Length: 4, Exceptions: 0)
Write errors: 0
Total transferred: 399807 bytes
HTML transferred: 397737 bytes
Requests per second: 0.07 [#/sec] (mean)
Time per request: 28886.908 [ms] (mean)
Time per request: 14443.454 [ms] (mean, across all concurrent requests)
Transfer rate: 5.41 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 2 1.3 2 3
Processing: 23492 24351 748.2 24771 25107
Waiting: 23487 24346 747.0 24765 25102
Total: 23492 24353 748.0 24773 25108
Percentage of the requests served within a certain time (ms)
50% 24647
66% 24898
75% 24898
80% 25108
90% 25108
95% 25108
98% 25108
99% 25108
100% 25108 (longest request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment