entitycache 的效果

默认的数据库缓存,entity_load('node',array(1,2,3,4));耗时记录

tu108213:cms qinshuguo$ drush en -y entitycache
tu108213:cms qinshuguo$ drush scr scripts/test.php
float(0.056358098983765)
tu108213:cms qinshuguo$ drush scr scripts/test.php
float(0.00086712837219238)
tu108213:cms qinshuguo$ drush scr scripts/test.php
float(0.00079488754272461)
tu108213:cms qinshuguo$ drush dis -y entitycache
tu108213:cms qinshuguo$ drush scr scripts/test.php
float(0.039340972900391)
tu108213:cms qinshuguo$ drush scr scripts/test.php
float(0.0084400177001953)
tu108213:cms qinshuguo$ drush scr scripts/test.php
float(0.008720874786377)
tu108213:cms qinshuguo$ drush en -y entitycache
tu108213:cms qinshuguo$ drush scr scripts/test.php
float(0.032104015350342)
tu108213:cms qinshuguo$ drush scr scripts/test.php
float(0.00089192390441895)