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/e1ae9bf052d5d53fcc324c460d3cdcda to your computer and use it in GitHub Desktop.
Save trycf/e1ae9bf052d5d53fcc324c460d3cdcda to your computer and use it in GitHub Desktop.
TryCF Gist
<cfscript>
start = getTickCount();
arr = ["Email,Rand"];
cfloop( from=1, to=50000, index="i" ){
arr.append("#i#@test.com,#randRange(1,1000)#");
}
sys = createObject( "java", "java.lang.System" );
nl = sys.getProperty("line.separator");
csvstr = arr.toList( nl );
result = {"Time": getTickCount() - start}
writeDump(result);
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment