X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=demos%2Fperformance%2Ftest-results2;h=856ae896db015cbe13c24798bf06b98295e9373e;hb=45cf8709a2e5d1a411834c14e6b78c441bb7bd6b;hp=ea395b5de8ab1190fd3c37c9defc59891b54a4fb;hpb=67db9ef19d8b36eb84357b6e6477b7791b59182f;p=svn%2FCll1h%2F.git diff --git a/demos/performance/test-results2 b/demos/performance/test-results2 index ea395b5..856ae89 100644 --- a/demos/performance/test-results2 +++ b/demos/performance/test-results2 @@ -1,22 +1,37 @@ +AMD Athlon(tm) XP 1259.392 Mhz 2520.58 bogomips +------------------------------------------------------------- Ruby #!/usr/bin/ruby 10000000.times { print "stuff1"," ","stuff2","\n" } -Running...0:24.57 total, 23.03 user, 1.51 sys, 0 outputs +Running... +real 1m50.369s +user 1m0.120s +sys 0m2.332s + +--------------------------------------------------- Python - range #!/usr/bin/python for i in range(1,10000000): print "stuff1","stuff2" -Running...0:13.80 total, 13.53 user, 0.17 sys, 0 outputs +Running... +real 0m54.919s +user 0m30.274s +sys 0m0.564s +-------------------------------------------------- Python - xrange #!/usr/bin/python for i in xrange(1,10000000): print "stuff1","stuff2" -Running...0:13.43 total, 13.20 user, 0.02 sys, 0 outputs +Running... +real 0m50.106s +user 0m27.758s +sys 0m0.136s +------------------------------------------------------------ PHP 5 #!/usr/bin/php5 -q -Running...0:11.93 total, 9.84 user, 2.08 sys, 0 outputs +Running... +real 0m34.079s +user 0m16.805s +sys 0m4.916s -#include +-------------------------------------------------- C - gcc - write #include #define RUNS 10000000UL @@ -47,9 +65,16 @@ int main (void) } return 0; } -Compiling...0:00.07 total, 0.06 user, 0.00 sys, 0 outputs -Running...0:11.92 total, 3.78 user, 7.86 sys, 0 outputs +Compiling... +real 0m0.494s +user 0m0.196s +sys 0m0.036s +Running... +real 1m8.226s +user 0m7.984s +sys 0m19.985s +---------------------------------------------- C - g++ - std::cout #include #define RUNS 10000000UL @@ -61,9 +86,16 @@ int main() } return 0; } -Compiling...0:00.38 total, 0.33 user, 0.05 sys, 0 outputs -Running...0:08.22 total, 6.18 user, 2.01 sys, 0 outputs +Compiling... +real 0m8.042s +user 0m1.176s +sys 0m0.132s +Running... +real 0m33.827s +user 0m11.369s +sys 0m3.908s +------------------------------------------------------------- Perl #!/usr/bin/perl my $i=0; @@ -71,22 +103,65 @@ for ($i=0;$i<10000000;$i++) { print ("stuff1"," ","stuff2","\n"); } -Running...0:05.97 total, 5.96 user, 0.00 sys, 0 outputs +Running... +real 0m29.584s +user 0m14.577s +sys 0m0.088s +------------------------------------------------- C - tcc - printf #include #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 @@ -111,6 +193,105 @@ int main (void) } return 0; } -Compiling...0:00.07 total, 0.04 user, 0.02 sys, 0 outputs -Running...0:01.52 total, 1.52 user, 0.00 sys, 0 outputs +Compiling... +real 0m0.016s +user 0m0.008s +sys 0m0.008s +Running... +real 0m8.072s +user 0m4.608s +sys 0m0.068s + +------------------------------------------------- C - gcc - printf +#include + +#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