From c3eef81ff1a2fff494c9064196510e9fa22e23fb Mon Sep 17 00:00:00 2001 From: xchaos Date: Tue, 22 Jan 2008 13:35:54 +0000 Subject: [PATCH] updated performance tests git-svn-id: https://dev.arachne.cz/repos/cll1h/trunk@29 4bb87942-c103-4e5a-b51c-0ebff58f8515 --- demos/performance/test-performance2.sh | 8 ++--- demos/performance/test-results | 38 ++++++++++----------- demos/performance/test-results2 | 46 +++++++++++++------------- 3 files changed, 46 insertions(+), 46 deletions(-) diff --git a/demos/performance/test-performance2.sh b/demos/performance/test-performance2.sh index d0ef063..7298303 100755 --- a/demos/performance/test-performance2.sh +++ b/demos/performance/test-performance2.sh @@ -1,13 +1,13 @@ #!/bin/sh -cat print2.py -echo "Running..." -time ./print2.py > /dev/null - cat print2.rb echo "Running..." time ./print2.rb > /dev/null +cat print2.py +echo "Running..." +time ./print2.py > /dev/null + cat cout2.cpp echo "Compiling..." time g++ -O4 cout2.cpp -o cout2 diff --git a/demos/performance/test-results b/demos/performance/test-results index 4a25893..6b5e60a 100644 --- a/demos/performance/test-results +++ b/demos/performance/test-results @@ -2,7 +2,7 @@ 10000000.times { print "stuff","\n" } Running... -14.71user 1.44system 0:16.17elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k +14.60user 1.64system 0:16.50elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (0major+457minor)pagefaults 0swaps #!/usr/bin/python @@ -10,8 +10,8 @@ for i in range(1,10000000): print "stuff" Running... -8.33user 0.17system 0:08.51elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+39998minor)pagefaults 0swaps +8.48user 0.17system 0:08.75elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+39997minor)pagefaults 0swaps #include #define RUNS 10000000UL @@ -24,11 +24,11 @@ int main() return 0; } Compiling... -0.34user 0.05system 0:00.38elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+8820minor)pagefaults 0swaps +0.33user 0.04system 0:00.38elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+8821minor)pagefaults 0swaps Running... -3.59user 2.17system 0:05.78elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+241minor)pagefaults 0swaps +3.71user 2.04system 0:05.82elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+240minor)pagefaults 0swaps #!/usr/bin/perl my $i=0; @@ -38,7 +38,7 @@ for ($i=0;$i<10000000;$i++) } Running... -2.51user 0.00system 0:02.51elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k +2.52user 0.00system 0:02.53elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (0major+424minor)pagefaults 0swaps #include "cll1.h" @@ -48,10 +48,10 @@ program print("stuff"); } Compiling... -0.08user 0.02system 0:00.10elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+4013minor)pagefaults 0swaps +0.08user 0.01system 0:00.09elapsed 97%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+4014minor)pagefaults 0swaps Running... -0.88user 0.00system 0:00.88elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k +0.84user 0.00system 0:00.85elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (0major+130minor)pagefaults 0swaps #include @@ -65,11 +65,11 @@ printf("stuff\n"); return 0; } Compiling... -0.04user 0.01system 0:00.06elapsed 104%CPU (0avgtext+0avgdata 0maxresident)k +0.04user 0.02system 0:00.05elapsed 101%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (0major+3781minor)pagefaults 0swaps Running... -0.62user 0.00system 0:00.61elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+115minor)pagefaults 0swaps +0.62user 0.00system 0:00.63elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+114minor)pagefaults 0swaps #include #define RUNS 10000000UL @@ -82,10 +82,10 @@ puts("stuff"); return 0; } Compiling... -0.05user 0.00system 0:00.05elapsed 103%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+3781minor)pagefaults 0swaps +0.04user 0.01system 0:00.06elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+3779minor)pagefaults 0swaps Running... -0.67user 0.00system 0:00.68elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k +0.62user 0.01system 0:00.63elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (0major+115minor)pagefaults 0swaps #include @@ -99,8 +99,8 @@ fputs("stuff\n",stdout); return 0; } Compiling... -0.04user 0.02system 0:00.06elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+3786minor)pagefaults 0swaps +0.05user 0.00system 0:00.19elapsed 33%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+3787minor)pagefaults 0swaps Running... 0.57user 0.00system 0:00.57elapsed 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 afe0d4d..3ce1fe8 100644 --- a/demos/performance/test-results2 +++ b/demos/performance/test-results2 @@ -1,17 +1,17 @@ +#!/usr/bin/ruby + +10000000.times { print "stuff1"," ","stuff2","\n" } +Running... +22.60user 1.51system 0:24.13elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+456minor)pagefaults 0swaps #!/usr/bin/python for i in range(1,10000000): print "stuff1","stuff2" Running... -13.76user 0.19system 0:13.98elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k +13.40user 0.16system 0:13.56elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (0major+39997minor)pagefaults 0swaps -#!/usr/bin/ruby - -10000000.times { print "stuff1"," ","stuff2","\n" } -Running... -23.17user 1.58system 0:24.78elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+457minor)pagefaults 0swaps #include #define RUNS 10000000UL @@ -24,11 +24,11 @@ int main() return 0; } Compiling... -0.34user 0.04system 0:00.39elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k +0.32user 0.04system 0:00.37elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (0major+8824minor)pagefaults 0swaps Running... -6.14user 1.98system 0:08.12elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+240minor)pagefaults 0swaps +6.41user 1.94system 0:08.37elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+241minor)pagefaults 0swaps #!/usr/bin/perl my $i=0; @@ -37,8 +37,8 @@ for ($i=0;$i<10000000;$i++) print ("stuff1"," ","stuff2","\n"); } Running... -5.68user 0.01system 0:05.71elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+426minor)pagefaults 0swaps +5.66user 0.00system 0:05.67elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+425minor)pagefaults 0swaps #include "cll1.h" program @@ -47,10 +47,10 @@ program print("stuff1","stuff2"); } Compiling... -0.07user 0.02system 0:00.10elapsed 102%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+4011minor)pagefaults 0swaps +0.07user 0.02system 0:00.10elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+4010minor)pagefaults 0swaps Running... -1.72user 0.00system 0:01.73elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k +1.82user 0.00system 0:01.82elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (0major+130minor)pagefaults 0swaps #include @@ -64,11 +64,11 @@ int main (void) return 0; } Compiling... -0.04user 0.01system 0:00.06elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+3782minor)pagefaults 0swaps +0.04user 0.02system 0:00.05elapsed 101%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+3783minor)pagefaults 0swaps Running... -2.99user 0.00system 0:03.00elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+121minor)pagefaults 0swaps +2.84user 0.00system 0:02.85elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+122minor)pagefaults 0swaps #include #define RUNS 10000000UL @@ -84,8 +84,8 @@ int main (void) return 0; } Compiling... -0.06user 0.00system 0:00.06elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+3792minor)pagefaults 0swaps +0.05user 0.00system 0:00.06elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+3790minor)pagefaults 0swaps Running... -1.46user 0.01system 0:01.47elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+116minor)pagefaults 0swaps +1.54user 0.00system 0:01.54elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+115minor)pagefaults 0swaps -- 2.30.2