From: xchaos Date: Tue, 22 Jan 2008 10:35:00 +0000 (+0000) Subject: fine tuning of tests X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=b836e2422e0b72efed1ac2bccbcc9060b328d36b;p=svn%2FCll1h%2F.git fine tuning of tests git-svn-id: https://dev.arachne.cz/repos/cll1h/trunk@24 4bb87942-c103-4e5a-b51c-0ebff58f8515 --- diff --git a/demos/performance/test-performance b/demos/performance/test-performance index 6cb45dd..c7e1ddf 100755 --- a/demos/performance/test-performance +++ b/demos/performance/test-performance @@ -1,5 +1,4 @@ #!/bin/sh -clear cat print.py echo "Running..." diff --git a/demos/performance/test-performance2 b/demos/performance/test-performance2 index a13e00d..736593d 100755 --- a/demos/performance/test-performance2 +++ b/demos/performance/test-performance2 @@ -1,5 +1,4 @@ #!/bin/sh -clear cat print2.py echo "Running..." diff --git a/demos/performance/test-results b/demos/performance/test-results index 101316f..271bd45 100644 --- a/demos/performance/test-results +++ b/demos/performance/test-results @@ -1,10 +1,10 @@ -#!/usr/bin/python +#!/usr/bin/python for i in range(1,10000000): print "stuff" Running... -8.38user 0.20system 0:08.81elapsed 97%CPU (0avgtext+0avgdata 0maxresident)k +8.72user 0.20system 0:08.93elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (0major+39997minor)pagefaults 0swaps #!/usr/bin/perl @@ -15,7 +15,7 @@ for ($i=0;$i<10000000;$i++) } Running... -2.55user 0.00system 0:02.57elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k +2.52user 0.00system 0:02.54elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (0major+424minor)pagefaults 0swaps #include "cll1.h" @@ -26,11 +26,11 @@ program } Compiling... cc cll1-print.c -o cll1-print -0.06user 0.00system 0:00.07elapsed 97%CPU (0avgtext+0avgdata 0maxresident)k +0.04user 0.03system 0:00.07elapsed 102%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (0major+3905minor)pagefaults 0swaps Running... -0.97user 0.00system 0:00.99elapsed 97%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+131minor)pagefaults 0swaps +0.96user 0.00system 0:00.96elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+130minor)pagefaults 0swaps #include #define RUNS 10000000UL @@ -44,11 +44,11 @@ return 0; } Compiling... cc printf.c -o printf -0.04user 0.01system 0:00.05elapsed 101%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+3735minor)pagefaults 0swaps +0.04user 0.02system 0:00.05elapsed 101%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+3736minor)pagefaults 0swaps Running... -0.62user 0.00system 0:00.64elapsed 97%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+115minor)pagefaults 0swaps +0.66user 0.00system 0:00.65elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+114minor)pagefaults 0swaps #include #define RUNS 10000000UL @@ -62,11 +62,11 @@ return 0; } Compiling... cc puts.c -o puts -0.05user 0.01system 0:00.06elapsed 101%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+3731minor)pagefaults 0swaps +0.04user 0.01system 0:00.05elapsed 105%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+3734minor)pagefaults 0swaps Running... -0.66user 0.01system 0:00.68elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+114minor)pagefaults 0swaps +0.64user 0.00system 0:00.63elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+115minor)pagefaults 0swaps #include #define RUNS 10000000UL @@ -80,8 +80,8 @@ return 0; } Compiling... cc fputs.c -o fputs -0.04user 0.01system 0:00.05elapsed 101%CPU (0avgtext+0avgdata 0maxresident)k +0.04user 0.01system 0:00.05elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (0major+3735minor)pagefaults 0swaps Running... -0.54user 0.00system 0:00.54elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+116minor)pagefaults 0swaps +0.56user 0.00system 0:00.56elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+115minor)pagefaults 0swaps diff --git a/demos/performance/test-results2 b/demos/performance/test-results2 index 42bc3d3..0acdfe5 100644 --- a/demos/performance/test-results2 +++ b/demos/performance/test-results2 @@ -1,11 +1,11 @@ -#!/usr/bin/python +#!/usr/bin/python for i in range(1,10000000): print "stuff1","stuff2" Running... -13.69user 0.18system 0:13.92elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+39997minor)pagefaults 0swaps +13.52user 0.17system 0:13.70elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+39996minor)pagefaults 0swaps #!/usr/bin/perl my $i=0; @@ -14,8 +14,8 @@ for ($i=0;$i<10000000;$i++) print ("stuff1"," ","stuff2","\n"); } Running... -5.72user 0.01system 0:05.74elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+424minor)pagefaults 0swaps +5.90user 0.00system 0:05.90elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+426minor)pagefaults 0swaps #include "cll1.h" program @@ -25,11 +25,11 @@ program } Compiling... cc cll1-print2.c -o cll1-print2 -0.06user 0.01system 0:00.07elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+3906minor)pagefaults 0swaps +0.05user 0.02system 0:00.07elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+3904minor)pagefaults 0swaps Running... -1.99user 0.02system 0:02.01elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+132minor)pagefaults 0swaps +1.98user 0.01system 0:02.02elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+131minor)pagefaults 0swaps #include #define RUNS 10000000UL @@ -43,10 +43,10 @@ int main (void) } Compiling... cc printf2.c -o printf2 -0.04user 0.01system 0:00.05elapsed 103%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+3737minor)pagefaults 0swaps +0.04user 0.01system 0:00.05elapsed 101%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+3736minor)pagefaults 0swaps Running... -2.94user 0.01system 0:02.95elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k +2.93user 0.00system 0:02.93elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (0major+121minor)pagefaults 0swaps #include @@ -64,8 +64,8 @@ int main (void) } Compiling... cc fputs2.c -o fputs2 -0.04user 0.02system 0:00.05elapsed 101%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+3734minor)pagefaults 0swaps +0.06user 0.01system 0:00.08elapsed 102%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+3735minor)pagefaults 0swaps Running... -1.56user 0.00system 0:01.57elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k +1.47user 0.00system 0:01.48elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (0major+115minor)pagefaults 0swaps