This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
# intended to execute in "devel execute php" | |
# to use outside devel, replace dsm() with print() | |
# | |
# this piece will measure cache set /get time for any method implemented in drupal. | |
# by default, it'll be the database caching, and you will be able to see the table | |
# 'cache' filling with entries. | |
# I'm using this to measure the difference of the default db method vs memcached. | |
# So for the first run, I use no extra cache config / modules, and I'm executing | |
# snippet 3 times. |
NewerOlder