X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=demos%2Fperformance%2Ftest-results;h=0f94f3049caeaee604d48dda021c625d1b5ec590;hb=67db9ef19d8b36eb84357b6e6477b7791b59182f;hp=8415d1ee6248287df19895d77b3957a534925277;hpb=283bc4971907f85920dde9f545b3eb8fd3884a79;p=svn%2FCll1h%2F.git diff --git a/demos/performance/test-results b/demos/performance/test-results index 8415d1e..0f94f30 100644 --- a/demos/performance/test-results +++ b/demos/performance/test-results @@ -1,21 +1,21 @@ #!/usr/bin/ruby 10000000.times { print "stuff","\n" } -Running...0:16.51 total, 14.79 user, 1.51 sys, 0 KB average size +Running...0:16.24 total, 14.59 user, 1.63 sys, 0 outputs #!/usr/bin/python for i in range(1,10000000): print "stuff" -Running...0:09.04 total, 8.58 user, 0.20 sys, 0 KB average size +Running...0:08.79 total, 8.57 user, 0.14 sys, 0 outputs #!/usr/bin/python for i in xrange(1,10000000): print "stuff" -Running...0:08.22 total, 8.15 user, 0.00 sys, 0 KB average size +Running...0:08.34 total, 8.22 user, 0.01 sys, 0 outputs #!/usr/bin/php5 -q -Running...0:07.13 total, 5.00 user, 2.10 sys, 0 KB average size +Running...0:07.05 total, 4.83 user, 2.10 sys, 0 outputs +#include + +#define RUNS 10000000UL +int main (void) +{ + unsigned long i; + char *s1="stuff\n"; + int l1=strlen(s1); + +for (i=0;i @@ -47,8 +64,8 @@ int main() } return 0; } -Compiling...0:00.37 total, 0.32 user, 0.04 sys, 0 KB average size -Running...0:01.00 total, 1.00 user, 0.00 sys, 0 KB average size +Compiling...0:00.39 total, 0.34 user, 0.05 sys, 0 outputs +Running...0:01.02 total, 0.98 user, 0.01 sys, 0 outputs #include "cll1.h" @@ -57,8 +74,8 @@ program repeat(10000000) print("stuff"); } -Compiling...0:00.09 total, 0.07 user, 0.02 sys, 0 KB average size -Running...0:00.88 total, 0.88 user, 0.00 sys, 0 KB average size +Compiling...0:00.13 total, 0.12 user, 0.01 sys, 0 outputs +Running...0:01.25 total, 1.23 user, 0.00 sys, 0 outputs #include @@ -71,8 +88,8 @@ printf("stuff\n"); } return 0; } -Compiling...0:00.05 total, 0.04 user, 0.00 sys, 0 KB average size -Running...0:00.67 total, 0.65 user, 0.02 sys, 0 KB average size +Compiling...0:00.06 total, 0.04 user, 0.01 sys, 0 outputs +Running...0:00.62 total, 0.60 user, 0.00 sys, 0 outputs #include @@ -85,19 +102,6 @@ puts("stuff"); } return 0; } -Compiling...0:00.09 total, 0.06 user, 0.02 sys, 0 KB average size -Running...0:00.62 total, 0.62 user, 0.00 sys, 0 KB average size +Compiling...0:00.06 total, 0.05 user, 0.00 sys, 0 outputs +Running...0:00.63 total, 0.63 user, 0.00 sys, 0 outputs -#include - -#define RUNS 10000000UL -int main (void) -{ -unsigned long i; -for (i=0;i