X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=demos%2Fperformance%2Ftest-results2;h=ea395b5de8ab1190fd3c37c9defc59891b54a4fb;hb=67db9ef19d8b36eb84357b6e6477b7791b59182f;hp=6948e05e5f89f1c27eb6b96895ab4b00a2f45540;hpb=b194148d0f20d8e38947a40b2673f481cf0e55ce;p=svn%2FCll1h%2F.git diff --git a/demos/performance/test-results2 b/demos/performance/test-results2 index 6948e05..ea395b5 100644 --- a/demos/performance/test-results2 +++ b/demos/performance/test-results2 @@ -1,21 +1,21 @@ #!/usr/bin/ruby 10000000.times { print "stuff1"," ","stuff2","\n" } -Running...0:25.02 total, 23.30 user, 1.58 sys +Running...0:24.57 total, 23.03 user, 1.51 sys, 0 outputs #!/usr/bin/python for i in range(1,10000000): print "stuff1","stuff2" -Running...0:13.46 total, 13.27 user, 0.18 sys +Running...0:13.80 total, 13.53 user, 0.17 sys, 0 outputs #!/usr/bin/python for i in xrange(1,10000000): print "stuff1","stuff2" -Running...0:12.92 total, 12.89 user, 0.01 sys +Running...0:13.43 total, 13.20 user, 0.02 sys, 0 outputs #!/usr/bin/php5 -q -Running...0:11.38 total, 9.38 user, 2.00 sys +Running...0:11.93 total, 9.84 user, 2.08 sys, 0 outputs + +#include +#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 @@ -37,8 +61,8 @@ int main() } return 0; } -Compiling...0:00.36 total, 0.32 user, 0.04 sys -Running...0:08.22 total, 6.07 user, 2.03 sys +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 #!/usr/bin/perl @@ -47,7 +71,7 @@ for ($i=0;$i<10000000;$i++) { print ("stuff1"," ","stuff2","\n"); } -Running...0:05.74 total, 5.73 user, 0.00 sys +Running...0:05.97 total, 5.96 user, 0.00 sys, 0 outputs #include @@ -60,8 +84,8 @@ int main (void) } return 0; } -Compiling...0:00.05 total, 0.02 user, 0.02 sys -Running...0:02.85 total, 2.84 user, 0.01 sys +Compiling...0:00.06 total, 0.05 user, 0.00 sys, 0 outputs +Running...0:02.87 total, 2.84 user, 0.01 sys, 0 outputs #include "cll1.h" @@ -70,8 +94,8 @@ program repeat(10000000) print("stuff1","stuff2"); } -Compiling...0:00.09 total, 0.07 user, 0.02 sys -Running...0:01.94 total, 1.92 user, 0.01 sys +Compiling...0:00.14 total, 0.12 user, 0.00 sys, 0 outputs +Running...0:02.77 total, 2.76 user, 0.00 sys, 0 outputs #include @@ -87,6 +111,6 @@ int main (void) } return 0; } -Compiling...0:00.14 total, 0.04 user, 0.01 sys -Running...0:01.56 total, 1.53 user, 0.01 sys +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