PHP Benchmark – Memcached with pecl-memcache & php-memcached , redis with Predis & Rediska Part 2

Filed Under (Website Monitoring) by admin on 28-04-2010

Part 1: monitoring.com/blog/php-benchmark-memcached-with-pecl-memcache-php-memcached-redis-with-predis-rediska”>PHP Benchmark – Memcached with pecl-memcache & php-memcached , redis with Predis & Rediska Part 1

Please read Part 1 for my explanation of what I am trying to do, and why I am testing these out. It is good to note that libredis performed almost identical to pecl-memcache when running 10 concurrent connections (each request puts 5 keys and gets those 5 keys back)

wget http://127.0.0.1/path/to/benchmark

1 connection pecl-memcache 10000 sets/gets
set: 0.6813(s)
get: 0.6937(s)

1 connection php-memcached 10000 sets/gets
set: 0.6988(s)
get: 0.7722(s)

1 connection libredis 10000 sets/gets
set: 0.8227(s)
get: 0.7697(s)

1 connection predis 10000 sets/gets
set: 2.2110(s)
get: 1.0792(s)

1 connection rediska 10000 sets/gets
set: 5.0501(s)
get: 3.3987(s)

—————————————
ab -c 10 -t 10 http://127.0.0.1/path/to/benchmark

10 concurrent connections pecl-memcache – 5 sets/gets per request
Complete requests: 4402
Requests per second: 440.14 [#/sec] (mean)

10 concurrent connections libredis – 5 sets/gets per request
Complete requests: 4754
Requests per second: 475.35 [#/sec] (mean)

10 concurrent connections predis – 5 sets/gets per request
Complete requests: 2179
Requests per second: 216.43 [#/sec] (mean)

10 concurrent connections php-memcached – 5 sets/gets per request
Complete requests: 2200
Requests per second: 204.78 [#/sec] (mean)

10 concurrent connections rediska – 5 sets/gets per request
Complete requests: 1678
Requests per second: 167.76 [#/sec] (mean)
—————————————
nginx/0.8.36 PHP print “hello” (php-fpm latest SVN, PHP 5.3.2)

ab -kc 100 -n 10000 http://127.0.0.1/dummy.php 100 concurrent keepalive connections
Requests per second: 1781.36 [#/sec] (mean)

ab -n 100000 -kc 10000 http://127.0.0.1/dummy.php 10,000 concurrent keepalive connections
Requests per second: 1559.65 [#/sec] (mean)

b -n 100000 -kc 10000 http://127.0.0.1/dummy.php 10,000 concurrent NON-keepalive connections
Requests per second: 1416.88 [#/sec] (mean)

—————————————
ab -kc 100 -n 30000 http://127.0.0.1/404.html

nginx 404.html – 100 concurrent keepalive connections
Requests per second: 15954.15 [#/sec] (mean)

monitoring.eu/wp-content/plugins/wp-o-matic/cache/71721_reblog_e.png?x-id=f3b9d2ad-99b6-4eb9-9d4b-d730aed31f3e” alt=”Reblog this post [with Zemanta]” style=”border:none;float:right” title=”PHP Benchmark Memcached with pecl memcache & php memcached , redis with Predis & Rediska Part 2″ />
  • monitoring.com/blog/php-benchmark-memcached-with-pecl-memcache-php-memcached-redis-with-predis-rediska-part-2/feed” rel=”nofollow” title=”Subscribe to the comments for this post?”>Subscribe to the comments for this post?
  • monitoring.com/blog/php-benchmark-memcached-with-pecl-memcache-php-memcached-redis-with-predis-rediska-part-2&title=PHP+Benchmark+-+Memcached+with+pecl-memcache+%26+php-memcached+%2C+redis+with+Predis+%26+Rediska+Part+2″ rel=”nofollow” title=”Share this on del.icio.us”>Share this on del.icio.us
  • monitoring.com/blog/php-benchmark-memcached-with-pecl-memcache-php-memcached-redis-with-predis-rediska-part-2&title=PHP+Benchmark+-+Memcached+with+pecl-memcache+%26+php-memcached+%2C+redis+with+Predis+%26+Rediska+Part+2″ rel=”nofollow” title=”Digg this!”>Digg this!
  • monitoring.com/blog/php-benchmark-memcached-with-pecl-memcache-php-memcached-redis-with-predis-rediska-part-2&title=PHP+Benchmark+-+Memcached+with+pecl-memcache+%26+php-memcached+%2C+redis+with+Predis+%26+Rediska+Part+2&desc=Part%201%3A%20PHP%20Benchmark%20-%20Memcached%20with%20pecl-memcache%20%26amp%3B%20php-memcached%20%2C%20redis%20with%20Predis%20%26amp%3B%20Rediska%20Part%201%0D%0A%0D%0APlease%20read%20Part%201%20for%20my%20explanation%20of%20what%20I%20am%20trying%20to%20do%2C%20and%20why%20I%20am%20testing%20these%20out.%20It%20is%20good%20to%20note%20that%20libredis%20performed%20almost%20identical%20to%20pecl-memcache%20when%20runn” rel=”nofollow” title=”Post this on Diigo”>Post this on Diigo
  • google.com/buzz/post?url=http://www.ezwebsitemonitoring.com/blog/php-benchmark-memcached-with-pecl-memcache-php-memcached-redis-with-predis-rediska-part-2&imageurl=” rel=”nofollow” title=”Post on google Buzz”>Post on google Buzz
  • monitoring.com/blog/php-benchmark-memcached-with-pecl-memcache-php-memcached-redis-with-predis-rediska-part-2&bm_description=PHP+Benchmark+-+Memcached+with+pecl-memcache+%26+php-memcached+%2C+redis+with+Predis+%26+Rediska+Part+2&plugin=sexybookmarks” rel=”nofollow” title=”Add this to Mister Wong”>Add this to Mister Wong
  • monitoring.com/blog/php-benchmark-memcached-with-pecl-memcache-php-memcached-redis-with-predis-rediska-part-2&title=PHP+Benchmark+-+Memcached+with+pecl-memcache+%26+php-memcached+%2C+redis+with+Predis+%26+Rediska+Part+2″ rel=”nofollow” title=”Share this on Mixx”>Share this on Mixx
  • monitoring.com/blog/php-benchmark-memcached-with-pecl-memcache-php-memcached-redis-with-predis-rediska-part-2&title=PHP+Benchmark+-+Memcached+with+pecl-memcache+%26+php-memcached+%2C+redis+with+Predis+%26+Rediska+Part+2″ rel=”nofollow” title=”Share this on Reddit”>Share this on Reddit
  • monitoring.com/blog/php-benchmark-memcached-with-pecl-memcache-php-memcached-redis-with-predis-rediska-part-2&title=PHP+Benchmark+-+Memcached+with+pecl-memcache+%26+php-memcached+%2C+redis+with+Predis+%26+Rediska+Part+2″ rel=”nofollow” title=”Stumble upon something good? Share it on StumbleUpon”>Stumble upon something good? Share it on StumbleUpon
  • monitoring.com/blog/php-benchmark-memcached-with-pecl-memcache-php-memcached-redis-with-predis-rediska-part-2″ rel=”nofollow” title=”Share this on Technorati”>Share this on Technorati
  • monitoring.com/blog/2010/05/04/twitter-facts-and-figures-history-statistics/”>twitter.com/home?status=PHP+Benchmark+-+Memcached+with+pecl-memcache+%26+php-memcached+%2C+redis+with+Predis%5B..%5D+-+http://bit.ly/cHcuKU&source=shareaholic” rel=”nofollow” title=”Tweet This!”>Tweet This!

monitoring.eu/wp-content/plugins/wp-o-matic/cache/71721_97ZsqvlvZtU” height=”1″ width=”1″ />
monitoring.com/blog/php-benchmark-memcached-with-pecl-memcache-php-memcached-redis-with-predis-rediska-part-2″ rel=”nofollow”>Go to Source

Post a comment

You must be logged in to post a comment.

website monitoring
hide your email