X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=demos%2Fperformance%2Ftest-results;h=ae344a736bfe550aca27662de843ee2b217da0c2;hb=96ec74e5789a747913ebe5b1a583e540e60fa94a;hp=0f94f3049caeaee604d48dda021c625d1b5ec590;hpb=67db9ef19d8b36eb84357b6e6477b7791b59182f;p=svn%2FCll1h%2F.git diff --git a/demos/performance/test-results b/demos/performance/test-results index 0f94f30..ae344a7 100644 --- a/demos/performance/test-results +++ b/demos/performance/test-results @@ -1,22 +1,34 @@ +AMD Athlon(tm) XP 1259.392 Mhz 2520.58 bogomips +------------------------------------------------------------- Ruby #!/usr/bin/ruby 10000000.times { print "stuff","\n" } -Running...0:16.24 total, 14.59 user, 1.63 sys, 0 outputs +Running... +real 0m31.160s +user 0m29.546s +sys 0m1.548s +--------------------------------------------------- Python - range #!/usr/bin/python for i in range(1,10000000): print "stuff" -Running...0:08.79 total, 8.57 user, 0.14 sys, 0 outputs - +Running... +real 0m18.386s +user 0m17.757s +sys 0m0.308s +-------------------------------------------------- Python - xrange #!/usr/bin/python for i in xrange(1,10000000): print "stuff" -Running...0:08.34 total, 8.22 user, 0.01 sys, 0 outputs - +Running... +real 0m18.832s +user 0m18.805s +sys 0m0.024s +------------------------------------------------------------ PHP 5 #!/usr/bin/php5 -q -Running...0:07.05 total, 4.83 user, 2.10 sys, 0 outputs - +Running... +real 0m10.832s +user 0m7.696s +sys 0m2.544s +-------------------------------------------------- C - gcc - write #include #define RUNS 10000000UL @@ -35,38 +50,71 @@ int main (void) char *s1="stuff\n"; int l1=strlen(s1); -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 #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="stuff\n"; + int l1=strlen(s1); + + for (i=0;i +#define RUNS 10000000UL +int main (void) +{ + unsigned long i; + for (i=0;i #define RUNS 10000000UL int main (void) { -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="stuff\n"; + int l1=strlen(s1); + + for (i=0;i +#define RUNS 10000000UL +int main (void) +{ + unsigned long i; + for (i=0;i