|
@@ -21,8 +21,8 @@ It really depends, but most of the times the answer is: _yes, it is fast enough_
|
|
|
a couple of easy numbers using a single Predis client with PHP 5.3.5 (custom build) and Redis 2.2
|
|
|
(localhost) under Ubuntu 10.10 (running on a Intel Q6600):
|
|
|
|
|
|
- 18500 SET/sec using 12 bytes for both key and value
|
|
|
- 18100 GET/sec while retrieving the very same values
|
|
|
+ 18900 SET/sec using 12 bytes for both key and value
|
|
|
+ 19500 GET/sec while retrieving the very same values
|
|
|
0.210 seconds to fetch 30000 keys using _KEYS *_.
|
|
|
|
|
|
How does it compare with a nice C-based extension such as [__phpredis__](http://github.com/nicolasff/phpredis)?
|
|
@@ -43,8 +43,8 @@ Redis, but how these numbers change when we hit the network by connecting to ins
|
|
|
reside on other servers?
|
|
|
|
|
|
Using Predis:
|
|
|
- 3100 SET/sec using 12 bytes for both key and value
|
|
|
- 3100 GET/sec while retrieving the very same values
|
|
|
+ 3150 SET/sec using 12 bytes for both key and value
|
|
|
+ 3150 GET/sec while retrieving the very same values
|
|
|
0.212 seconds to fetch 30000 keys using "KEYS *".
|
|
|
|
|
|
Using phpredis:
|