Skip to content

Instantly share code, notes, and snippets.

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 trycf/6089660fd69c52555f35eb54b8b61a18 to your computer and use it in GitHub Desktop.
Save trycf/6089660fd69c52555f35eb54b8b61a18 to your computer and use it in GitHub Desktop.
TryCF Gist
<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