X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;ds=sidebyside;f=demos%2Fperformance%2Ftest-results;h=72f50a6fe1a97166cc1693781194de11aca77927;hb=ba41861f8912ff0c31924d7f76afbafe79758183;hp=25b68082dd3f1a65cc72812b78adee83643082e3;hpb=d8394559dce40ff40b40525aa68087863efe7c1f;p=svn%2FCll1h%2F.git diff --git a/demos/performance/test-results b/demos/performance/test-results index 25b6808..72f50a6 100644 --- a/demos/performance/test-results +++ b/demos/performance/test-results @@ -1,29 +1,27 @@ +#!/usr/bin/ruby + +10000000.times { print "stuff","\n" } +Running... +14.58user 1.54system 0:16.27elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+457minor)pagefaults 0swaps #!/usr/bin/python for i in range(1,10000000): print "stuff" Running... -8.28user 0.16system 0:08.44elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+39996minor)pagefaults 0swaps -#include - -#define RUNS 10000000UL -int main() +8.28user 0.15system 0:08.61elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+39997minor)pagefaults 0swaps +#!/usr/bin/php5 -q + Running... -3.78user 2.08system 0:05.86elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+241minor)pagefaults 0swaps +4.93user 2.01system 0:07.24elapsed 95%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+1282minor)pagefaults 0swaps #!/usr/bin/perl my $i=0; @@ -33,8 +31,25 @@ for ($i=0;$i<10000000;$i++) } Running... -2.50user 0.00system 0:02.50elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+424minor)pagefaults 0swaps +2.56user 0.00system 0:02.73elapsed 93%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+425minor)pagefaults 0swaps +#include + +#define RUNS 10000000UL +int main() +{ + unsigned long i; + for (i=0;i #define RUNS 10000000UL @@ -61,12 +75,11 @@ printf("stuff\n"); return 0; } Compiling... -make: `printf' is up to date. -0.00user 0.00system 0:00.00elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+316minor)pagefaults 0swaps +0.06user 0.00system 0:00.06elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+3780minor)pagefaults 0swaps Running... -0.63user 0.00system 0:00.63elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+114minor)pagefaults 0swaps +0.61user 0.00system 0:00.62elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+115minor)pagefaults 0swaps #include #define RUNS 10000000UL @@ -79,11 +92,10 @@ puts("stuff"); return 0; } Compiling... -cc puts.c -o puts -0.04user 0.01system 0:00.06elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+3733minor)pagefaults 0swaps +0.03user 0.02system 0:00.06elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+3778minor)pagefaults 0swaps Running... -0.60user 0.01system 0:00.62elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k +0.62user 0.00system 0:00.63elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (0major+114minor)pagefaults 0swaps #include @@ -97,9 +109,8 @@ fputs("stuff\n",stdout); return 0; } Compiling... -cc fputs.c -o fputs -0.04user 0.01system 0:00.05elapsed 101%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+3735minor)pagefaults 0swaps +0.04user 0.01system 0:00.06elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+3787minor)pagefaults 0swaps Running... -0.58user 0.00system 0:00.58elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k +0.56user 0.00system 0:00.56elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (0major+115minor)pagefaults 0swaps