High Performance Drupal 7 Authenticated User Benchmarks

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
simg's picture

Hi All,

I just thought you might be interested to see some performance benchmarks that I've produced recently whilst doing some work porting the Authcache module to D7.

I think the results are "pretty encouraging". What do you think :) ?

summary: ~1000 fold increase in authenticated user performance, 5 fold increase for anonymous users
1200 requests per second @ 2.5ms per request on a very modest single server.

Benchmark Requests Concurrency Total
Time Taken/s
Requests/s Avg
Time Per
Request/ms
Time Per
Request
(across all)/ms
Longest
Request/ms
Completed
Requests
Failed
Requests
Static Html 1000 50 0.22 4540.56 11.012 0.22 13 1000 0
Anonymous Stock Drupal 1000 50 6.38 156.75 318.98 6.38 721 1000 0
Anonymous Authcache Drupal 1000 50 0.794 1259.52 39.698 0.794 81 1000 0
Static Html 1000 125 0.236 4237.05 29.502 0.236 35 1000 0
Anonymous Stock Drupal 1000 125 5.453 183.39 681.618 5.453 2523 1000 0
Anonymous Authcache Drupal 1000 125 0.767 1303.55 95.892 0.767 125 1000 0
Authenticated Stock Drupal 20 1 18.815 1.06 940.729 940.729 1101 20 0
Authenticated Stock Drupal 20 2 9.453 2.12 945.32 472.66 1130 20 0
Authenticated Stock Drupal 20 5 5.82 3.44 1454.978 290.978 1663 20 0
Authenticated Stock Drupal 50 10 14.035 3.56 2807.047 280.705 3393 50 0
Authenticated Authcache Drupal 1000 1 2.646 377.99 2.646 2.646 8 1000 0
Authenticated Authcache Drupal 1000 125 0.806 1240.86 100.737 0.806 141 1000 0
Authenticated Authcache Drupal 1000 250 4.527 220.87 1131.87 4.527 4520 1000 0
Authenticated Authcache Drupal 1000 500 12.217 81.85 6108.72 12.217 12213 1000 0

All tests performed on quad core Q6600 processor with 8GB RAM, solid state SATA hard disk running Apache, APC and PHP 5.3 and Drupal 7.10

Comments

I think my server sucks.

hupuzhao's picture

I think my server sucks.

it's probably not your

simg's picture

it's probably not your server, try the Authcache module ... (not yet production ready)

I think it will improve with

rogical's picture

I think it will improve with nginx and, of course memcache something like.

no, actually i'm using file

simg's picture

no, actually i'm using file based caching which is approximately 50% faster than memcache

Looks very promising, thanks

alanmackenzie's picture

Looks very promising, thanks for sharing the data.

A D7 port of authcache is something my employer would be very interested in. I could potentially spend up 3-4 days on this right now and would be glad to assist in any maintenance in the long run.

Let me know if there's anything I can do to help you out.

anything I can do to help you out.

simg's picture

Thanks !

It's a cliche, but right now the best thing anyone can do to help is download and test it :)
I'm expecting to have a full 7-x-1.x.dev release available from the main project page sometime today (hopefully).
It's approaching the point where I feel it's production ready (edit: for the adventurous) and I'm going to be trying it on one of my sites this week.

edit: there is now a 7.x-1.x dev release

solid state SATA hard

sam6's picture

solid state SATA hard disk

Wouldn't that explain in part the excellent numbers?

Would those benchmarks change much in a more available platform, like a RAID 10 system?

Thank you!

yes, but the important thing

simg's picture

yes, but the important thing to note is the "percentage" performance improvement.

With AuthCache (and FileCache) authenticated Drupal is 1000 times faster ...

It probably won't be quite as fast overall with mechanical drives but the degree of improvement will be similar.

Also, given that with FileCache (or MemCache) you're actually serving content direct from RAM it wouldn't surprise me if similar results were actually obtainable with mechanical drives.

Database queries will be much slower with mechanical drives, but we're not hitting the database :)

High performance

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week