Created
June 20, 2015 07:33
-
-
Save anonymous/09e5ac861a0373772344 to your computer and use it in GitHub Desktop.
TryCF Gist
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
<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