Skip to content

Instantly share code, notes, and snippets.

@Quby
Created March 20, 2011 06:31
Show Gist options
  • Save Quby/878162 to your computer and use it in GitHub Desktop.
Save Quby/878162 to your computer and use it in GitHub Desktop.
last = (new Date).getTime();
str = '';
for(a=0,b=0,c=0,d=0,f=0;a<1000,b<1000,c<1000,d<1000,f<1000;a++,b++,c++,d++,f++){
str += 'Number %0 %1 %2 %3 %4'.format(a,b,c,d,f);
}
print((new Date).getTime() - last)
last = (new Date).getTime();
str = '';
for(a=0,b=0,c=0,d=0,f=0;a<1000,b<1000,c<1000,d<1000,f<1000;a++,b++,c++,d++,f++){
str += 'Number ' + a + ' '+ b + ' '+ c + ' '+ d + ' '+ f + ' ';
}
print((new Date).getTime() - last)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment