From 830ff42eb4e7f5bba5dc7b81213f44cac674bc7c Mon Sep 17 00:00:00 2001 From: xchaos Date: Tue, 22 Jan 2008 10:31:26 +0000 Subject: [PATCH] updatet performance tests and results git-svn-id: https://dev.arachne.cz/repos/cll1h/trunk@23 4bb87942-c103-4e5a-b51c-0ebff58f8515 --- demos/performance/test-performance | 2 +- demos/performance/test-performance2 | 2 +- demos/performance/test-results | 30 +++++++++++++++-------------- demos/performance/test-results2 | 22 +++++++++++---------- 4 files changed, 30 insertions(+), 26 deletions(-) diff --git a/demos/performance/test-performance b/demos/performance/test-performance index df89664..6cb45dd 100755 --- a/demos/performance/test-performance +++ b/demos/performance/test-performance @@ -29,6 +29,6 @@ time ./puts > /dev/null cat fputs.c echo "Compiling..." -make fputs +time make fputs echo "Running..." time ./fputs > /dev/null diff --git a/demos/performance/test-performance2 b/demos/performance/test-performance2 index 19d2bc5..a13e00d 100755 --- a/demos/performance/test-performance2 +++ b/demos/performance/test-performance2 @@ -23,6 +23,6 @@ time ./printf2 > /dev/null cat fputs2.c echo "Compiling..." -make fputs2 +time make fputs2 echo "Running..." time ./fputs2 > /dev/null diff --git a/demos/performance/test-results b/demos/performance/test-results index 2aa861c..101316f 100644 --- a/demos/performance/test-results +++ b/demos/performance/test-results @@ -4,7 +4,7 @@ for i in range(1,10000000): print "stuff" Running... -8.56user 0.20system 0:08.82elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k +8.38user 0.20system 0:08.81elapsed 97%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.51user 0.03system 0:02.63elapsed 96%CPU (0avgtext+0avgdata 0maxresident)k +2.55user 0.00system 0:02.57elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (0major+424minor)pagefaults 0swaps #include "cll1.h" @@ -26,10 +26,10 @@ program } Compiling... cc cll1-print.c -o cll1-print -0.05user 0.02system 0:00.08elapsed 89%CPU (0avgtext+0avgdata 0maxresident)k +0.06user 0.00system 0:00.07elapsed 97%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (0major+3905minor)pagefaults 0swaps Running... -0.98user 0.02system 0:01.01elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k +0.97user 0.00system 0:00.99elapsed 97%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (0major+131minor)pagefaults 0swaps #include @@ -44,11 +44,11 @@ return 0; } Compiling... cc printf.c -o printf -0.04user 0.01system 0:00.06elapsed 100%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+3735minor)pagefaults 0swaps Running... -0.60user 0.02system 0:00.64elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+116minor)pagefaults 0swaps +0.62user 0.00system 0:00.64elapsed 97%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+115minor)pagefaults 0swaps #include #define RUNS 10000000UL @@ -62,11 +62,11 @@ return 0; } Compiling... cc puts.c -o puts -0.04user 0.01system 0:00.05elapsed 103%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+3734minor)pagefaults 0swaps +0.05user 0.01system 0:00.06elapsed 101%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+3731minor)pagefaults 0swaps Running... -0.61user 0.00system 0:00.64elapsed 95%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+115minor)pagefaults 0swaps +0.66user 0.01system 0:00.68elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+114minor)pagefaults 0swaps #include #define RUNS 10000000UL @@ -80,6 +80,8 @@ 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 Running... -0.56user 0.00system 0:00.68elapsed 82%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+115minor)pagefaults 0swaps +0.54user 0.00system 0:00.54elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+116minor)pagefaults 0swaps diff --git a/demos/performance/test-results2 b/demos/performance/test-results2 index 7e98461..42bc3d3 100644 --- a/demos/performance/test-results2 +++ b/demos/performance/test-results2 @@ -4,7 +4,7 @@ for i in range(1,10000000): print "stuff1","stuff2" Running... -13.31user 0.16system 0:13.47elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k +13.69user 0.18system 0:13.92elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (0major+39997minor)pagefaults 0swaps #!/usr/bin/perl @@ -14,8 +14,8 @@ for ($i=0;$i<10000000;$i++) print ("stuff1"," ","stuff2","\n"); } Running... -5.68user 0.00system 0:05.70elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+425minor)pagefaults 0swaps +5.72user 0.01system 0:05.74elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+424minor)pagefaults 0swaps #include "cll1.h" program @@ -26,10 +26,10 @@ 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+3904minor)pagefaults 0swaps +0inputs+0outputs (0major+3906minor)pagefaults 0swaps Running... -1.95user 0.01system 0:01.96elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+130minor)pagefaults 0swaps +1.99user 0.02system 0:02.01elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+132minor)pagefaults 0swaps #include #define RUNS 10000000UL @@ -43,10 +43,10 @@ int main (void) } Compiling... cc printf2.c -o printf2 -0.05user 0.01system 0:00.06elapsed 106%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+3735minor)pagefaults 0swaps +0.04user 0.01system 0:00.05elapsed 103%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+3737minor)pagefaults 0swaps Running... -2.89user 0.00system 0:02.90elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k +2.94user 0.01system 0:02.95elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (0major+121minor)pagefaults 0swaps #include @@ -64,6 +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 Running... -1.52user 0.00system 0:01.53elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k +1.56user 0.00system 0:01.57elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (0major+115minor)pagefaults 0swaps -- 2.30.2