delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
To: | cygwin AT cygwin DOT com |
From: | "Alex Vinokur" <alexvn AT connect DOT to> |
Subject: | Re: Comparative Performance of C++ Compilers (including gcc cygming special) |
Date: | Tue, 13 Apr 2004 21:20:33 +0300 |
Lines: | 173 |
Message-ID: | <c5hb1i$3ku$1@sea.gmane.org> |
References: | <c5gkcl$m1c$1 AT sea DOT gmane DOT org> <407C0198 DOT 4000707 AT cs DOT york DOT ac DOT uk> |
X-Complaints-To: | usenet AT sea DOT gmane DOT org |
X-Gmane-NNTP-Posting-Host: | 82-166-121-61.barak.net.il |
X-Newsreader: | Microsoft Outlook Express 6.00.2800.1106 |
"chris" wrote in message news:407C0198 DOT 4000707 AT cs DOT york DOT ac DOT uk... > Alex Vinokur wrote: > > > ======================================== > > Comparative Performance of C++ Compilers > > C/C++ Performance Tests > > ========================================= > > > > > > > <snip> > > While this is quite interesting, it seems to me you aren't really > running these programs for long enough for us to be able to see what > differences are due to startup time and due to runtime. How can we know how long the startup time is? > How about a couple of extra jobs, one of which runs for 1 minute and one for 2? > > > Three extra jobs for copyfile.cpp, g++ (Mingw32 Interface), No optimization. * job-1 : 1 min 10 sec * job-2 : 2 min 28 sec * job-2 : 5 min 57 sec $ g++ -mno-cygwin copyfile.cpp $ command time -p a 1000 50 750 1 > out 2>&1 // job-1 $ cat out ======================================= Simple C/C++ Perfometer : Copying files Version CF-1.1 ======================================= --------------------- GNU gcc 3.3.1 (MINGW) --------------------- YOUR COMMAND LINE : a.exe 1000 50 750 1 ### File size : 1000 ### Number of runs : 1 ### Number of tests : 50 ### Number of repetitions : 750 ### CLOCKS_PER_SEC : 1000 Run-1 of 1 : Started .................................................. c_1__functions_getc_putc : 45 units (0.045 secs) c_2__functions_fgetc_fputc : 175 units (0.175 secs) c_3__functions_fread_fwrite : 22 units (0.022 secs) cpp_1__operators_in_out : 434 units (0.434 secs) cpp_2__methods_get_put : 235 units (0.235 secs) cpp_3__methods_sbumpc_sputc : 89 units (0.089 secs) cpp_4__method_sbumpc__op_out : 41 units (0.041 secs) cpp_5__method_rdbuf__op_out : 38 units (0.038 secs) cpp_6__methods_cpp_read_write__const_buf : 39 units (0.039 secs) cpp_7__methods_cpp_read_write__max_buf : 35 units (0.035 secs) Run-1 of 1 : Finished real 70.24 user 0.02 sys 0.07 $ command time -p a 1000 100 750 1 > out 2>&1 // job-2 $ cat out ======================================= Simple C/C++ Perfometer : Copying files Version CF-1.1 ======================================= --------------------- GNU gcc 3.3.1 (MINGW) --------------------- YOUR COMMAND LINE : a.exe 1000 100 750 1 ### File size : 1000 ### Number of runs : 1 ### Number of tests : 100 ### Number of repetitions : 750 ### CLOCKS_PER_SEC : 1000 Run-1 of 1 : Started .................................................................................................... c_1__functions_getc_putc : 85 units (0.085 secs) c_2__functions_fgetc_fputc : 324 units (0.324 secs) c_3__functions_fread_fwrite : 42 units (0.042 secs) cpp_1__operators_in_out : 782 units (0.782 secs) cpp_2__methods_get_put : 411 units (0.411 secs) cpp_3__methods_sbumpc_sputc : 157 units (0.157 secs) cpp_4__method_sbumpc__op_out : 71 units (0.071 secs) cpp_5__method_rdbuf__op_out : 64 units (0.064 secs) cpp_6__methods_cpp_read_write__const_buf : 67 units (0.067 secs) cpp_7__methods_cpp_read_write__max_buf : 62 units (0.062 secs) Run-1 of 1 : Finished real 208.71 user 0.05 sys 0.04 $ command time -p a 1000 200 750 1 > out 2>&1 // job-2 $ cat out ======================================= Simple C/C++ Perfometer : Copying files Version CF-1.1 ======================================= --------------------- GNU gcc 3.3.1 (MINGW) --------------------- YOUR COMMAND LINE : a.exe 1000 200 750 1 ### File size : 1000 ### Number of runs : 1 ### Number of tests : 200 ### Number of repetitions : 750 ### CLOCKS_PER_SEC : 1000 Run-1 of 1 : Started .................................................................................................................................... .................................................................... c_1__functions_getc_putc : 81 units (0.081 secs) c_2__functions_fgetc_fputc : 307 units (0.307 secs) c_3__functions_fread_fwrite : 39 units (0.039 secs) cpp_1__operators_in_out : 734 units (0.734 secs) cpp_2__methods_get_put : 385 units (0.385 secs) cpp_3__methods_sbumpc_sputc : 152 units (0.152 secs) cpp_4__method_sbumpc__op_out : 67 units (0.067 secs) cpp_5__method_rdbuf__op_out : 62 units (0.062 secs) cpp_6__methods_cpp_read_write__const_buf : 62 units (0.062 secs) cpp_7__methods_cpp_read_write__max_buf : 59 units (0.059 secs) Run-1 of 1 : Finished real 357.10 user 0.01 sys 0.04 -- Alex Vinokur mailto:alexvn AT connect DOT to http://mathforum.org/library/view/10978.html -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |