Skip to content

Instantly share code, notes, and snippets.

@ivanionut
Created September 22, 2018 21:23
Show Gist options
  • Save ivanionut/d66ae6f0228bbd0ae5794965cfdd2f72 to your computer and use it in GitHub Desktop.
Save ivanionut/d66ae6f0228bbd0ae5794965cfdd2f72 to your computer and use it in GitHub Desktop.
<cfscript>
num_iterations = 1*1000*1000;
start_time = getTickCount();
for(i=1; i<=num_iterations; i++) test();
end_time = getTickCount();
tot_time = end_time - start_time;
writeOutput("#tot_time#ms");
boolean function test(){ return true; }
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment