[announce] php: mcache extension 1.0

John McCaskey johnm at klir.com
Thu Jan 20 09:32:59 PST 2005


On Thu, 2005-01-20 at 01:00 -0800, Sean Chittenden wrote:
> > Benchmarking libmemcache in c directly...
> > Performed 40000 sets in 2.248915 seconds.
> > Performed 40000 gets in 2.234578 seconds.
> > Performed 20000 gets of 2 values at once in 1.205434 seconds.
> 
> Anecdotally, I'd be interested in your tests of this against 1.2.1 
> given it has some logic to reduce CPU cycles on hashing when there is 
> only one server.  CRC32 is reasonably inexpensive, but avoiding it all 
> together is certainly cheaper.  :)  -sc
> 

Actually, I was under the impression you introduced that optimization in
1.2.0, in fact I checked, and the hashing is not being called with one
server under 1.2.0.

Here is the benchmark with 1.2.1 howerver:
Benchmarking libmemcache in c directly...
Performed 40000 sets in 2.213733 seconds.
Performed 40000 gets in 2.144761 seconds.
Performed 20000 gets of 2 values at once in 1.218654 seconds.

As you can see, the gets where slightly faster (maybe not statistically
significant though)... so maybe I'm missing something and the hash was
getting called in 1.2.0.

-- 
John A. McCaskey
Software Development Engineer
Klir Technologies, Inc.
johnm at klir.com
206.902.2027


More information about the memcached mailing list