Skip to content

Instantly share code, notes, and snippets.

Created June 20, 2015 07:33
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 anonymous/09e5ac861a0373772344 to your computer and use it in GitHub Desktop.
Save anonymous/09e5ac861a0373772344 to your computer and use it in GitHub Desktop.
TryCF Gist
<cfscript>
arr = [];
bigString = repeatString("Foo Bar. ", 100);
ResponseTime = 0;
for ( j=1; j <= 10; j++ ){
requestTickBegin = GetTickCount("micro");
for ( i=1; i <= 1000; i++ ){
ArrayAppend(arr, bigString);
//arr.append(bigString);
}
ResponseTime += GetTickCount("micro") - requestTickBegin;
}
echo(ResponseTime & " micro seconds");
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment