Skip to content

Instantly share code, notes, and snippets.

@andreacfm
Created June 20, 2011 12:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreacfm/1035561 to your computer and use it in GitHub Desktop.
Save andreacfm/1035561 to your computer and use it in GitHub Desktop.
Railo MongoDb Cache Performamce
<cfset start = gettickcount()>
<cfloop from="1" to="1000" index="i">
<cfcache action="put" id="a#i#" value="#i#">
<cfcache action="get" id="a#i#" name="v">
<cfcache action="put" id="b#i#" value="#{value = i}#">
<cfcache action="get" id="b#i#" name="v">
</cfloop>
<cfset end = gettickcount()>
<cfoutput>#end - start# millis</cfoutput>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment