X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;ds=inline;f=demos%2Fperformance%2Ftest-results;h=af9d68bcd4444d512b4ea9eae1025886e69dbee6;hb=06ab91f038972610338e77f4f488c7ef5c132e69;hp=8415d1ee6248287df19895d77b3957a534925277;hpb=283bc4971907f85920dde9f545b3eb8fd3884a79;p=svn%2FCll1h%2F.git diff --git a/demos/performance/test-results b/demos/performance/test-results index 8415d1e..af9d68b 100644 --- a/demos/performance/test-results +++ b/demos/performance/test-results @@ -1,22 +1,33 @@ +------------------------------------------------------------- Ruby #!/usr/bin/ruby 10000000.times { print "stuff","\n" } -Running...0:16.51 total, 14.79 user, 1.51 sys, 0 KB average size +Running... +real 0m16.104s +user 0m14.353s +sys 0m1.412s +--------------------------------------------------- Python - range #!/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... +real 0m8.661s +user 0m8.465s +sys 0m0.168s +-------------------------------------------------- Python - xrange #!/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... +real 0m8.480s +user 0m8.433s +sys 0m0.016s +------------------------------------------------------------ PHP 5 #!/usr/bin/php5 -q -Running...0:07.13 total, 5.00 user, 2.10 sys, 0 KB average size +Running... +real 0m7.098s +user 0m5.048s +sys 0m2.024s +-------------------------------------------------- C - gcc - write +#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() { 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