"chris" wrote in message news:[EMAIL PROTECTED] > 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:[EMAIL PROTECTED] 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/