This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcc300 vs gcc295.3 benchmarking?


Hi again,

I found Paolo's reply to David Ronis' message, so I tried the flops.c 
programme he mentioned. Below are the results of my comparison between the 2 
gcc versions. It appears that the MFLOPS(1) index is the most "real life" 
telling index: you'll see that gcc2.95.3 is faster in almost all cases, 
although (sytematically) not in some of the "sub indices". I didn't scan the 
source to see whether or not the benchmarking is done on/in library 
routines, but from the description, I'd guess not. Test machine: Dell 
Latitude CPt450 PIII, Linux Mandrake 6.1

gccopt is a wrapper script that (invoked without any options) passes the 
following list to gcc:
-fwritable-strings -mcpu=pentiumpro -march=pentiumpro -fno-fast-math 
-malign-double -fno-float-store -fomit-frame-pointer -mieee-fp 
-fno-strict-aliasing  -O6 -fstrength-reduce  -fexpensive-optimizations 
-frerun-cse-after-loop -fno-schedule-insns -fno-schedule-insns2 
-finline-functions -funroll-loops

env compiler=gcc300 gccopt -o flops flops.c
   FLOPS C Program (Double Precision), V2.0 18 Dec 1992

   Module     Error        RunTime      MFLOPS
                            (usec)
     1     -7.4605e-12      0.0841    166.4654
     2      1.0064e-15      0.0916     76.4505
     3      9.8755e-14      0.0920    184.7199
     4      3.7708e-13      0.0917    163.6131
     5     -1.3004e-13      0.2041    142.0861
     6      1.8840e-13      0.1372    211.3293
     7     -3.2123e-10      0.2687     44.6577
     8      7.7962e-14      0.1432    209.5498

   Iterations      =  256000000
   NullTime (usec) =     0.0011
   MFLOPS(1)       =    94.5723
   MFLOPS(2)       =    90.2621
   MFLOPS(3)       =   142.9949
   MFLOPS(4)       =   196.0778

324.750 user_cpu 0.000 kernel_cpu 5:25.02 total_time 99.9%CPU {0W 0X 0D 0K 
0M 108F 31R 0I 0O 0r 0s 0k 0w 0c}
Exit 33

--------------

env compiler=gcc295.3 gccopt -o flops flops.c
1.567_bola_817# flops

   FLOPS C Program (Double Precision), V2.0 18 Dec 1992

   Module     Error        RunTime      MFLOPS
                            (usec)
     1     -7.4594e-12      0.0933    150.0209
     2      1.0064e-15      0.0720     97.2856
     3      9.8721e-14      0.0800    212.6038
     4      3.7702e-13      0.0876    171.1993
     5     -1.3009e-13      0.2018    143.6811
     6      1.8842e-13      0.1366    212.3570
     7     -5.3619e-11      0.2498     48.0450
     8      7.7942e-14      0.1522    197.1253

   Iterations      =  256000000
   NullTime (usec) =     0.0011
   MFLOPS(1)       =   118.2553
   MFLOPS(2)       =    95.0975
   MFLOPS(3)       =   145.8177
   MFLOPS(4)       =   199.4179

306.880 user_cpu 0.000 kernel_cpu 5:06.98 total_time 99.9%CPU {0W 0X 0D 0K 
0M 107F 31R 0I 0O 0r 0s 0k 0w 0c}

--------------


--------------

gcc300 -mcpu=pentiumpro -march=pentiumpro -O2 -o flops flops.c
1.571_bola_817# flops

   FLOPS C Program (Double Precision), V2.0 18 Dec 1992

   Module     Error        RunTime      MFLOPS
                            (usec)
     1     -7.4594e-12      0.0897    156.0296
     2      1.0064e-15      0.0944     74.1415
     3      9.8721e-14      0.1540    110.3728
     4      3.7702e-13      0.1483    101.1325
     5     -1.3009e-13      0.2578    112.5019
     6      1.8842e-13      0.1876    154.5701
     7     -3.2123e-10      0.2528     47.4660
     8      7.7942e-14      0.1887    159.0062

   Iterations      =  256000000
   NullTime (usec) =     0.0045
   MFLOPS(1)       =    83.0547
   MFLOPS(2)       =    82.2195
   MFLOPS(3)       =   114.1566
   MFLOPS(4)       =   134.0931

400.990 user_cpu 0.200 kernel_cpu 6:43.98 total_time 99.3%CPU {0W 0X 0D 0K 
0M 106F 31R 0I 0O 0r 0s 0k 0w 0c}

--------------

gcc295.3 -mcpu=pentiumpro -march=pentiumpro -O2 -o flops flops.c
1.574_bola_817# flops

   FLOPS C Program (Double Precision), V2.0 18 Dec 1992

   Module     Error        RunTime      MFLOPS
                            (usec)
     1     -7.4594e-12      0.0942    148.5904
     2      1.0064e-15      0.0661    105.8476
     3      9.8721e-14      0.0830    204.8000
     4      3.7702e-13      0.0887    169.0885
     5     -1.3009e-13      0.1997    145.1985
     6      1.8842e-13      0.1519    190.9465
     7     -3.2123e-10      0.2454     48.9094
     8      7.7942e-14      0.1494    200.8368

   Iterations      =  256000000
   NullTime (usec) =     0.0045
   MFLOPS(1)       =   125.7035
   MFLOPS(2)       =    95.0627
   MFLOPS(3)       =   144.2309
   MFLOPS(4)       =   192.4017

319.180 user_cpu 0.020 kernel_cpu 5:19.34 total_time 99.9%CPU {0W 0X 0D 0K 
0M 104F 31R 0I 0O 0r 0s 0k 0w 0c}

--------------

gcc300 -mcpu=pentiumpro -march=pentiumpro -malign-double -O2 -o flops 
flops.c
1.577_bola_817# flops

   FLOPS C Program (Double Precision), V2.0 18 Dec 1992

   Module     Error        RunTime      MFLOPS
                            (usec)
     1     -7.4594e-12      0.0897    156.0296
     2      1.0064e-15      0.0944     74.1722
     3      9.8721e-14      0.1540    110.3728
     4      3.7702e-13      0.1482    101.2124
     5     -1.3009e-13      0.2585    112.1959
     6      1.8842e-13      0.1859    155.9992
     7     -3.2123e-10      0.2523     47.5542
     8      7.7942e-14      0.1884    159.2370

   Iterations      =  256000000
   NullTime (usec) =     0.0045
   MFLOPS(1)       =    83.0806
   MFLOPS(2)       =    82.3534
   MFLOPS(3)       =   114.3242
   MFLOPS(4)       =   134.5112
        [yes, indeed, no effect at all!]
400.520 user_cpu 0.060 kernel_cpu 6:41.03 total_time 99.8%CPU {0W 0X 0D 0K 
0M 106F 32R 0I 0O 0r 0s 0k 0w 0c}

--------------

gcc295.3 -mcpu=pentiumpro -march=pentiumpro -malign-double -O2 -o flops 
flops.c
1.582_bola_817# flops

   FLOPS C Program (Double Precision), V2.0 18 Dec 1992

   Module     Error        RunTime      MFLOPS
                            (usec)
     1     -7.4594e-12      0.0942    148.5904
     2      1.0064e-15      0.0662    105.7851
     3      9.8721e-14      0.0830    204.8964
     4      3.7702e-13      0.0887    169.0885
     5     -1.3009e-13      0.1998    145.1701
     6      1.8842e-13      0.1519    190.8974
     7     -3.2123e-10      0.2448     49.0265
     8      7.7942e-14      0.1493    200.8894

   Iterations      =  256000000
   NullTime (usec) =     0.0045
   MFLOPS(1)       =   125.6560
   MFLOPS(2)       =    95.1999
   MFLOPS(3)       =   144.3145
   MFLOPS(4)       =   192.4176

319.020 user_cpu 0.000 kernel_cpu 5:19.15 total_time 99.9%CPU {0W 0X 0D 0K 
0M 104F 32R 0I 0O 0r 0s 0k 0w 0c}

--------------

gcc300 -mcpu=pentiumpro -march=pentiumpro -malign-double 
-mpreferred-stack-boundary=8 -O2 -o flops flops.c
1.588_bola_817# flo
floppyd             floppyd_installtest flops
1.588_bola_817# flops

   FLOPS C Program (Double Precision), V2.0 18 Dec 1992

   Module     Error        RunTime      MFLOPS
                            (usec)
     1     -7.4594e-12      0.0898    155.9617
     2      1.0064e-15      0.0944     74.1415
     3      9.8721e-14      0.1542    110.2610
     4      3.7702e-13      0.1482    101.1858
     5     -1.3009e-13      0.2581    112.3487
     6      1.8842e-13      0.1864    155.5416
     7     -3.2123e-10      0.2527     47.4880
     8      7.7942e-14      0.1888    158.9404

   Iterations      =  256000000
   NullTime (usec) =     0.0045
   MFLOPS(1)       =    83.0339
   MFLOPS(2)       =    82.2716
   MFLOPS(3)       =   114.2228
   MFLOPS(4)       =   134.2941

400.710 user_cpu 0.050 kernel_cpu 6:40.99 total_time 99.9%CPU {0W 0X 0D 0K 
0M 106F 32R 0I 0O 0r 0s 0k 0w 0c}

--------------

gcc295.3 -mcpu=pentiumpro -march=pentiumpro -malign-double 
-mpreferred-stack-boundary=8 -O2 -o flops flops.c
1.592_bola_817# flops

   FLOPS C Program (Double Precision), V2.0 18 Dec 1992

   Module     Error        RunTime      MFLOPS
                            (usec)
     1     -7.4594e-12      0.0964    145.1600
     2      1.0064e-15      0.0662    105.7227
     3      9.8721e-14      0.0830    204.8964
     4      3.7702e-13      0.0886    169.3869
     5     -1.3009e-13      0.1998    145.1417
     6      1.8842e-13      0.1513    191.7355
     7     -3.2123e-10      0.2446     49.0656
     8      7.7942e-14      0.1489    201.5219

   Iterations      =  256000000
   NullTime (usec) =     0.0045
   MFLOPS(1)       =   125.5968
   MFLOPS(2)       =    95.1603
   MFLOPS(3)       =   144.2031
   MFLOPS(4)       =   192.9435

319.780 user_cpu 0.010 kernel_cpu 5:19.89 total_time 99.9%CPU {0W 0X 0D 0K 
0M 105F 32R 0I 0O 0r 0s 0k 0w 0c}

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]