Created
June 7, 2018 17:33
-
-
Save trycf/6089660fd69c52555f35eb54b8b61a18 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> | |
cftimer(label = "Scoped", type = "outline"){ | |
cfloop (from=1, to=1000000, index="i"){ | |
variables._site.foo1 = i; | |
variables._site.foo = i; | |
variables._site1.foo = i; | |
variables._site1.foo1 = i; | |
} | |
} | |
cftimer(label = "UnScoped", type = "outline"){ | |
cfloop (from=1, to=1000000, index="i"){ | |
_1site.foo1 = i; | |
_1site.foo = i; | |
_1site1.foo = i; | |
_1site1.foo1 = i; | |
} | |
} | |
//* | |
cftimer(label = "Scoped", type = "outline"){ | |
cfloop (from=1, to=1000000, index="i"){ | |
variables._2site.foo1 = i; | |
variables._2site.foo = i; | |
variables._2site1.foo = i; | |
variables._2site1.foo1 = i; | |
} | |
} | |
cftimer(label = "UnScoped", type = "outline"){ | |
cfloop (from=1, to=1000000, index="i"){ | |
_3site.foo1 = i; | |
_3site.foo = i; | |
_3site1.foo = i; | |
_3site1.foo1 = i; | |
} | |
} | |
cftimer(label = "Scoped", type = "outline"){ | |
cfloop (from=1, to=1000000, index="i"){ | |
variables._4site.foo1 = i; | |
variables._4site.foo = i; | |
variables._4site1.foo = i; | |
variables._4site1.foo1 = i; | |
} | |
} | |
cftimer(label = "UnScoped", type = "outline"){ | |
cfloop (from=1, to=1000000, index="i"){ | |
_5site.foo1 = i; | |
_5site.foo = i; | |
_5site1.foo = i; | |
_5site1.foo1 = i; | |
} | |
} | |
//*/ | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment