Letzte Woche habe ich verschiedene Magento Backend Cachs auf meinem lokalen Rechner vergleichen. (Mac OsX, SDD Festplatte, 16GB Ram 1600MHz DDR3, 2,6 GHz i7)
Getestet habe ich mit https://github.com/colinmollenhour/magento-cache-benchmark
- APC ist im Magento Core enthalten
- Die Unterstützung zu RedisDB für Magento findet Ihr hier https://github.com/colinmollenhour/Cm_Cache_Backend_Redis
- die MongoDB Unterstützung hier https://github.com/madcad/magento-cache-mongodb
Das Ergebnis verwundert nicht, aber man sollte es mal getestet haben. ;-)
Cache Backend: apc + database
Loading default test data...
Loaded 10000 cache records in 11.24 seconds (11.0517 seconds cache time).
Data size is 4995.2K
Benchmarking 4 concurrent clients, each with 50000 operations...
4 concurrent clients completed in 3 seconds
reads| writes| cleans
------------------------------------
Client 1|70697.78| 1398.91| 1324.28
Client 2|74440.92| 1255.48| 1374.09
Client 3|76058.05| 1454.21| 1475.48
Client 0|73251.42| 1315.63| 1422.19
------------------------------------
ops/sec |294446,00| 5422,00| 5595,00
Cache Backend: Cm_Cache_Backend_Redis
Loading default test data...
Loaded 10000 cache records in 4.21 seconds (4.0364 seconds cache time).
Data size is 5042.1K
Benchmarking 4 concurrent clients, each with 50000 operations...
4 concurrent clients completed in 7 seconds
| reads| writes| cleans
------------------------------------
Client 1| 9460.08| 1968.94| 1716.26
Client 2| 9483.68| 2112.98| 1839.84
Client 3| 9484.50| 1928.98| 1705.01
Client 0| 9506.19| 2052.90| 1852.01
------------------------------------
ops/sec |37933,00| 8060,00| 7112,00
Cache Backend: MadCad_Cache_Backend_Mongodb + database
Loading default test data...
Loaded 10000 cache records in 3.10 seconds (2.9254 seconds cache time).
Data size is 4961.4K
Benchmarking 4 concurrent clients, each with 50000 operations...
4 concurrent clients completed in 13 seconds
| reads| writes| cleans
------------------------------------
Client 2| 4104.40| 1234.43| 122.62
Client 3| 4106.62| 1273.46| 125.11
Client 0| 4092.58| 1506.03| 116.96
Client 1| 4102.20| 1040.16| 112.72
------------------------------------
ops/sec |16404,00| 5053,00| 475,00