From 7150dd0b97c58af61d3dcc6e5d9ac38fb0fc39d4 Mon Sep 17 00:00:00 2001 From: xchaos Date: Tue, 22 Jan 2008 14:58:53 +0000 Subject: [PATCH] cout.cpp had unfair disadvantage git-svn-id: https://dev.arachne.cz/repos/cll1h/trunk@31 4bb87942-c103-4e5a-b51c-0ebff58f8515 --- demos/performance/cout.cpp | 2 +- demos/performance/test-results | 50 ++++++++++++++++----------------- demos/performance/test-results2 | 40 +++++++++++++------------- 3 files changed, 46 insertions(+), 46 deletions(-) diff --git a/demos/performance/cout.cpp b/demos/performance/cout.cpp index df1f138..f40ba69 100644 --- a/demos/performance/cout.cpp +++ b/demos/performance/cout.cpp @@ -5,7 +5,7 @@ int main() { unsigned long i; for (i=0;i #define RUNS 10000000UL @@ -19,16 +19,16 @@ int main() { unsigned long i; for (i=0;i #define RUNS 10000000UL @@ -65,11 +65,11 @@ printf("stuff\n"); return 0; } Compiling... -0.04user 0.01system 0:00.05elapsed 94%CPU (0avgtext+0avgdata 0maxresident)k +0.05user 0.00system 0:00.06elapsed 96%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+116minor)pagefaults 0swaps +0.61user 0.00system 0:00.62elapsed 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 101%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+3781minor)pagefaults 0swaps +0.05user 0.00system 0:00.06elapsed 96%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+3779minor)pagefaults 0swaps Running... -0.60user 0.00system 0:00.61elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k +0.62user 0.00system 0:00.63elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (0major+115minor)pagefaults 0swaps #include @@ -99,8 +99,8 @@ fputs("stuff\n",stdout); return 0; } Compiling... -0.05user 0.00system 0:00.06elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+3785minor)pagefaults 0swaps +0.05user 0.01system 0:00.06elapsed 103%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+3784minor)pagefaults 0swaps Running... -0.56user 0.00system 0:00.57elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+114minor)pagefaults 0swaps +0.56user 0.00system 0:00.56elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+115minor)pagefaults 0swaps diff --git a/demos/performance/test-results2 b/demos/performance/test-results2 index 17a86f3..bf73127 100644 --- a/demos/performance/test-results2 +++ b/demos/performance/test-results2 @@ -2,16 +2,16 @@ 10000000.times { print "stuff1"," ","stuff2","\n" } Running... -23.37user 1.62system 0:25.02elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+457minor)pagefaults 0swaps +22.69user 1.50system 0:24.43elapsed 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.56user 0.17system 0:13.76elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+39996minor)pagefaults 0swaps +13.56user 0.17system 0:13.77elapsed 99%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.32user 0.04system 0:00.37elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+8700minor)pagefaults 0swaps +0.33user 0.03system 0:00.37elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+8699minor)pagefaults 0swaps Running... -5.93user 2.16system 0:08.10elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+240minor)pagefaults 0swaps +6.16user 1.93system 0:08.11elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+241minor)pagefaults 0swaps #!/usr/bin/perl my $i=0; @@ -37,7 +37,7 @@ for ($i=0;$i<10000000;$i++) print ("stuff1"," ","stuff2","\n"); } Running... -5.68user 0.00system 0:05.68elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k +5.68user 0.00system 0:05.71elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (0major+425minor)pagefaults 0swaps #include "cll1.h" @@ -47,10 +47,10 @@ program print("stuff1","stuff2"); } Compiling... -0.08user 0.01system 0:00.09elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+3999minor)pagefaults 0swaps +0.08user 0.01system 0:00.10elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+4000minor)pagefaults 0swaps Running... -1.90user 0.00system 0:01.90elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k +1.91user 0.00system 0:01.94elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (0major+132minor)pagefaults 0swaps #include @@ -64,11 +64,11 @@ int main (void) return 0; } Compiling... -0.04user 0.02system 0:00.06elapsed 104%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+3784minor)pagefaults 0swaps +0.03user 0.02system 0:00.06elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+3783minor)pagefaults 0swaps Running... -2.87user 0.00system 0:02.88elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+122minor)pagefaults 0swaps +2.90user 0.00system 0:02.89elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+121minor)pagefaults 0swaps #include #define RUNS 10000000UL @@ -84,8 +84,8 @@ int main (void) return 0; } Compiling... -0.05user 0.01system 0:00.12elapsed 52%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+3790minor)pagefaults 0swaps +0.04user 0.02system 0:00.06elapsed 101%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+3787minor)pagefaults 0swaps Running... -1.50user 0.01system 0:01.51elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k -0inputs+0outputs (0major+116minor)pagefaults 0swaps +1.52user 0.00system 0:01.54elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k +0inputs+0outputs (0major+115minor)pagefaults 0swaps -- 2.30.2