X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=demos%2Fperformance%2Ftest-results;h=ae344a736bfe550aca27662de843ee2b217da0c2;hb=96ec74e5789a747913ebe5b1a583e540e60fa94a;hp=9709fc5044df8124ed531b13c7f2a73e15c46cdd;hpb=e1fbb836e8f710979f270ba8fdbc92a8e65f7348;p=svn%2FCll1h%2F.git diff --git a/demos/performance/test-results b/demos/performance/test-results index 9709fc5..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:15.62 total, 14.06 user, 1.55 sys, 0 page faults +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.64 total, 8.43 user, 0.21 sys, 0 page faults - +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.19 total, 8.17 user, 0.00 sys, 0 page faults - +Running... +real 0m18.832s +user 0m18.805s +sys 0m0.024s +------------------------------------------------------------ PHP 5 #!/usr/bin/php5 -q -Running...0:07.08 total, 5.00 user, 2.07 sys, 0 page faults - +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; -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 @@ -135,5 +311,32 @@ int main (void) } return 0; } -Compiling...0:00.06 total, 0.05 user, 0.01 sys, 0 page faults -Running...0:00.53 total, 0.53 user, 0.00 sys, 0 page faults +Compiling... +real 0m0.197s +user 0m0.164s +sys 0m0.032s +Running... +real 0m0.968s +user 0m0.956s +sys 0m0.012s +-------------------------------------------------- C - gcc - fputs +#include + +#define RUNS 10000000UL +int main (void) +{ + unsigned long i; + for (i=0;i