X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=demos%2Fperformance%2Ftest-results;h=ffefc3b6a19cd0b1af82550f1aa5fab36184d9db;hb=a30ccb5a13711904e08ce475aff75b037cab4abb;hp=9709fc5044df8124ed531b13c7f2a73e15c46cdd;hpb=e1fbb836e8f710979f270ba8fdbc92a8e65f7348;p=svn%2FCll1h%2F.git diff --git a/demos/performance/test-results b/demos/performance/test-results index 9709fc5..ffefc3b 100644 --- a/demos/performance/test-results +++ b/demos/performance/test-results @@ -1,31 +1,5 @@ -#!/usr/bin/ruby - -10000000.times { print "stuff","\n" } -Running...0:15.62 total, 14.06 user, 1.55 sys, 0 page faults - -#!/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 - -#!/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 - -#!/usr/bin/php5 -q - -Running...0:07.08 total, 5.00 user, 2.07 sys, 0 page faults - +Intel(R) Core(TM)2 CPU T5500 @ 1.66GHz Intel(R) Core(TM)2 CPU T5500 @ 1.66GHz 1000.000 1000.000 Mhz 3328.81 3325.09 bogomips +-------------------------------------------------- C - gcc - write #include #define RUNS 10000000UL @@ -35,14 +9,21 @@ 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 @@ -135,5 +684,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.066s +user 0m0.064s +sys 0m0.004s +Running... +real 0m0.557s +user 0m0.556s +sys 0m0.000s +-------------------------------------------------- C - gcc - fputs +#include + +#define RUNS 10000000UL +int main (void) +{ + unsigned long i; + for (i=0;i