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]

stepanov_v1p2 benchmark



I saw that this should be used for a measurement of code quality. I
just run it on

g++ -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.95.2/specs
gcc version 2.95.2 19991024 (release)  

and on

g++ -v
Reading specs from /usr/local/lib/gcc-lib/i586-pc-linux-gnu/2.97/specs
gcc version 2.97 20001001 (experimental)    

cat /proc/cpuinfo
vendor_id       : GenuineIntel
model name      : Mobile Pentium MMX
cpu MHz         : 233.869933             

both compiled as

g++ -O2 stepanov_v1p2.C


Results for 2.95.2:

test      absolute   additions      ratio with
number    time       per second     test0

 0        1.90sec    26.32M         1.00
 1        1.68sec    29.76M         0.88
 2        1.71sec    29.24M         0.90
 3        1.76sec    28.41M         0.93
 4        1.71sec    29.24M         0.90
 5        1.69sec    29.59M         0.89
 6        1.73sec    28.90M         0.91
 7        1.74sec    28.74M         0.92
 8        1.64sec    30.49M         0.86
 9        1.74sec    28.74M         0.92
10        1.73sec    28.90M         0.91
11        1.72sec    29.07M         0.91
12        1.68sec    29.76M         0.88
mean:     1.72sec    29.00M         0.91
 
Total absolute time: 22.43 sec
 
Abstraction Penalty: 0.91                

Results for cvs gcc:

test      absolute   additions      ratio with
number    time       per second     test0
 
 0        1.78sec    28.09M         1.00
 1        1.60sec    31.25M         0.90
 2        4.58sec    10.92M         2.57
 3        3.24sec    15.43M         1.82
 4        4.21sec    11.88M         2.37
 5        3.24sec    15.43M         1.82
 6        4.24sec    11.79M         2.38
 7        3.22sec    15.53M         1.81
 8        4.36sec    11.47M         2.45
 9        3.26sec    15.34M         1.83
10        4.33sec    11.55M         2.43
11        3.25sec    15.38M         1.83
12        4.29sec    11.66M         2.41
mean:     3.35sec    14.91M         1.88
 
Total absolute time: 45.60 sec
 
Abstraction Penalty: 1.88
                                     

        Lgb

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