------------------------------------------------------------- Ruby #!/usr/bin/ruby 10000000.times { print "stuff1"," ","stuff2","\n" } Running... real 0m24.569s user 0m23.113s sys 0m1.420s --------------------------------------------------- Python - range #!/usr/bin/python for i in range(1,10000000): print "stuff1","stuff2" Running... real 0m13.571s user 0m13.369s sys 0m0.200s -------------------------------------------------- Python - xrange #!/usr/bin/python for i in xrange(1,10000000): print "stuff1","stuff2" Running... real 0m13.118s user 0m13.105s sys 0m0.012s ------------------------------------------------------------ PHP 5 #!/usr/bin/php5 -q Running..../test-performance2.sh: line 24: -f: command not found real 0m0.001s user 0m0.000s sys 0m0.000s -------------------------------------------------- C - gcc - write #include #define RUNS 10000000UL int main (void) { unsigned long i; char *s1="stuff1"; char *s2="stuff2"; int l1=strlen(s1); int l2=strlen(s2); for (i=0;i #define RUNS 10000000UL int main() { unsigned long i; for (i=0;i #define RUNS 10000000UL int main (void) { unsigned long i; for (i=0;i #include #define RUNS 10000000UL int main (void) { unsigned long i; char *s1="stuff1"; char *s2="stuff2"; int l1=strlen(s1); int l2=strlen(s2); for (i=0;i #define RUNS 10000000UL int main (void) { unsigned long i; for (i=0;i