The following tables contain the execution time of the Gambit benchmarks (on 2 GHz Intel core duo, Mac OS X 10.5.5) when built with different C compilers and options. For a given benchmark, the entry in green indicates which setting has the fastest execution and the number given is the time in milliseconds. Other entries give the execution time relative to the green entry.
The first table gives CPU time and the second gives real time.
CPU time
|
Program |
gcc-O1 |
gcc-O2 |
gcc-O3 |
llvm-gcc |
browse
|
1.06
|
1.02
|
3224
|
2.73
|
cpstak
|
1.05
|
1.05
|
1414
|
1.16
|
ctak
|
1.14
|
1.01
|
1465
|
3.11
|
dderiv
|
1507
|
1.01
|
1.00
|
1.13
|
deriv
|
1116
|
1.06
|
1.07
|
1.11
|
destruc
|
1.06
|
1.03
|
1149
|
1.75
|
diviter
|
1.00
|
1023
|
1023
|
1.02
|
divrec
|
1.00
|
1387
|
1387
|
1.05
|
puzzle
|
1.00
|
631
|
1.00
|
1.21
|
takl
|
1.14
|
782
|
1.06
|
1.31
|
trav1
|
496
|
1.02
|
1.00
|
1.39
|
trav2
|
1.07
|
1.07
|
1.07
|
895
|
triangl
|
1.10
|
1030
|
1.00
|
1.24
|
fft
|
326
|
1.02
|
1.02
|
1.31
|
fib
|
1.09
|
1.17
|
851
|
1.35
|
fibfp
|
1.04
|
1.25
|
1.24
|
1222
|
mbrot
|
1104
|
1.00
|
1.00
|
1.01
|
nucleic
|
1.02
|
233
|
1.01
|
1.06
|
pnpoly
|
1.04
|
289
|
1.02
|
1.26
|
sum
|
337
|
337
|
337
|
1.88
|
sumfp
|
1.00
|
1.01
|
1.01
|
4911
|
tak
|
988
|
1.04
|
1.01
|
1.22
|
tfib
|
1.11
|
1.02
|
1362
|
2.31
|
ack
|
632
|
1.07
|
1.03
|
1.16
|
array1
|
1.06
|
1.03
|
443
|
1.02
|
cat
|
1506
|
1.02
|
1.02
|
14.60
|
string
|
1.01
|
2935
|
1.00
|
1.00
|
sum1
|
1.02
|
1482
|
1.05
|
9.64
|
sumloop
|
1.11
|
1.05
|
1.05
|
3598
|
tail
|
1199
|
1.00
|
1.00
|
9.55
|
wc
|
711
|
1.01
|
1.01
|
15.83
|
conform
|
1.03
|
1001
|
1.07
|
1.20
|
dynamic
|
849
|
1.02
|
1.03
|
5.21
|
earley
|
1.03
|
734
|
1.01
|
2.03
|
fibc
|
1.16
|
1.03
|
1084
|
3.18
|
graphs
|
1.07
|
1.03
|
919
|
1.80
|
lattice
|
2061
|
1.09
|
1.14
|
1.35
|
matrix
|
1.04
|
1375
|
1.00
|
2.37
|
maze
|
1.01
|
1.02
|
523
|
1.11
|
mazefun
|
1.03
|
1.03
|
861
|
2.15
|
nqueens
|
1070
|
1.01
|
1.02
|
1.81
|
paraffins
|
1634
|
1.00
|
1.02
|
1.04
|
peval
|
1.04
|
1.03
|
910
|
1.71
|
pi
|
1.02
|
2514
|
1.06
|
1.51
|
primes
|
1.06
|
1.11
|
1.02
|
1061
|
ray
|
367
|
1.07
|
1.06
|
3.93
|
scheme
|
1.02
|
1.08
|
1400
|
1.58
|
simplex
|
463
|
1.09
|
1.09
|
1.45
|
slatex
|
1.02
|
1312
|
1.02
|
6.86
|
perm9
|
1.02
|
1212
|
1.06
|
1.09
|
nboyer
|
1.02
|
1248
|
1.01
|
1.16
|
sboyer
|
1076
|
1.07
|
1.02
|
1.22
|
gcbench
|
1.03
|
2808
|
1.05
|
2.93
|
Real time
|
Program |
gcc-O1 |
gcc-O2 |
gcc-O3 |
llvm-gcc |
browse
|
1.06
|
1.02
|
3229
|
2.74
|
cpstak
|
1.05
|
1.05
|
1424
|
1.15
|
ctak
|
1.14
|
1.01
|
1474
|
3.10
|
dderiv
|
1.00
|
1.01
|
1518
|
1.13
|
deriv
|
1140
|
1.05
|
1.05
|
1.10
|
destruc
|
1.07
|
1.03
|
1157
|
1.75
|
diviter
|
1.01
|
1030
|
1.00
|
1.02
|
divrec
|
1.01
|
1.00
|
1396
|
1.05
|
puzzle
|
1.01
|
635
|
1.00
|
1.21
|
takl
|
1.14
|
787
|
1.05
|
1.31
|
trav1
|
499
|
1.02
|
1.00
|
1.39
|
trav2
|
1.07
|
1.07
|
1.07
|
900
|
triangl
|
1.10
|
1035
|
1.00
|
1.24
|
fft
|
328
|
1.02
|
1.02
|
1.31
|
fib
|
1.09
|
1.17
|
855
|
1.36
|
fibfp
|
1.04
|
1.25
|
1.23
|
1231
|
mbrot
|
1.00
|
1.00
|
1113
|
1.01
|
nucleic
|
1.01
|
236
|
1.01
|
1.05
|
pnpoly
|
1.04
|
290
|
1.02
|
1.27
|
sum
|
1.00
|
1.01
|
338
|
1.88
|
sumfp
|
1.00
|
1.01
|
1.01
|
4943
|
tak
|
994
|
1.04
|
1.00
|
1.22
|
tfib
|
1.10
|
1.02
|
1369
|
2.30
|
ack
|
635
|
1.07
|
1.03
|
1.16
|
array1
|
1.06
|
1.03
|
447
|
1.02
|
cat
|
1578
|
1.02
|
1.02
|
14.27
|
string
|
1.01
|
2951
|
1.00
|
1.00
|
sum1
|
1.02
|
1486
|
1.06
|
9.65
|
sumloop
|
1.12
|
1.05
|
1.05
|
3612
|
tail
|
1266
|
1.01
|
1.01
|
9.43
|
wc
|
715
|
1.01
|
1.01
|
15.80
|
conform
|
1.02
|
1006
|
1.07
|
1.20
|
dynamic
|
853
|
1.02
|
1.03
|
5.21
|
earley
|
1.03
|
737
|
1.01
|
2.03
|
fibc
|
1.16
|
1.02
|
1093
|
3.17
|
graphs
|
1.07
|
1.03
|
924
|
1.80
|
lattice
|
2070
|
1.09
|
1.14
|
1.35
|
matrix
|
1.04
|
1383
|
1.00
|
2.37
|
maze
|
1.01
|
1.03
|
526
|
1.11
|
mazefun
|
1.03
|
1.04
|
867
|
2.15
|
nqueens
|
1077
|
1.01
|
1.02
|
1.81
|
paraffins
|
1645
|
1.00
|
1.02
|
1.04
|
peval
|
1.04
|
1.03
|
916
|
1.70
|
pi
|
1.02
|
2528
|
1.06
|
1.50
|
primes
|
1.06
|
1.10
|
1.02
|
1068
|
ray
|
1.04
|
1.04
|
394
|
3.68
|
scheme
|
1.02
|
1.08
|
1407
|
1.58
|
simplex
|
467
|
1.09
|
1.09
|
1.44
|
slatex
|
1.05
|
1863
|
1.04
|
5.23
|
perm9
|
1.02
|
1247
|
1.05
|
1.06
|
nboyer
|
1.02
|
1256
|
1.01
|
1.15
|
sboyer
|
1082
|
1.07
|
1.02
|
1.22
|
gcbench
|
1.03
|
2825
|
1.05
|
2.93
|