X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=demos%2Fperformance%2Ftest-results;h=ce895562d64f1c0cdd039f22b12504a2706ee1bc;hb=93583418508acf4635f5d2064f627909c56e29c2;hp=9709fc5044df8124ed531b13c7f2a73e15c46cdd;hpb=e1fbb836e8f710979f270ba8fdbc92a8e65f7348;p=svn%2FCll1h%2F.git diff --git a/demos/performance/test-results b/demos/performance/test-results index 9709fc5..ce89556 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 - +AMD Athlon(tm) XP 1259.487 Mhz 2522.30 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; -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 +270,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.216s +user 0m0.188s +sys 0m0.028s +Running... +real 0m1.027s +user 0m1.012s +sys 0m0.012s +-------------------------------------------------- C - gcc - fputs +#include + +#define RUNS 10000000UL +int main (void) +{ + unsigned long i; + for (i=0;i