Bench1.prg: Sieve of Erotosthenes, 1000 iterations
 
FlagShip
6.1.1
seconds
Clipper
5.3
seconds
xHarbour
0.92.0
seconds
Xbase++
1.82
seconds
1. Test for numeric calculations: Number of primes were 303
1.64
12.47
9.45
2.46
2. Test for string handling: Number of primes were 303
2.95
148.63
107.23
10.48
3. Test for C-inline usage: Number of primes were 303
0.06
( 12.47 )
( 9.45 )
( 2.46 )

Bench2.prg: Database Operations
 
1. Create database
0.040
0.050
0.000
0.090
2. Append 10,000 records, exclusive
0.412
0.440
0.130
0.570
3. Append 10,000 records, shared
0.901
1.320
0.781
0.900
4. Replace 2x 10,000 records, shared
3.716
0.830
0.691
0.940
5. Index 10,000 records on character
0.150
0.270
0.150
0.370
6. Index 10,000 records on number
0.122
0.170
0.101
0.360
7. Seek 1000x shared on character
0.293
0.060
0.080
0.060
8. Seek 1000x shared on numeric
0.276
0.050
0.080
0.070
9. Replace 2x 1000x records, shared w. 2 indices
0.530
0.270
0.130
0.210
10. Replace 2x 1000x records, shared w. 2 indices & DbCommit()
0.623
94.700
0.150
46.450
11. Replace 2x 1000x records, shared w. 2 indices & COMMIT
0.631
103.200
0.160
45.390
12. Append 1000x records, shared w. 2 indices
0.251
0.500
0.241
0.420
13. Append 1000x records, shared w. 2 indices & SKIP 0
0.380
0.270
0.250
0.400
14. Append 1000x records, shared w. 2 indices & DbCommit()
0.381
153.900
0.301
53.130

Bench2.prg: General Calculations
 
1. Empty loop 1,000,000 x
0.090
1.650
1.182
0.110
2. Addition 1,000,000 x integer
0.702
2.030
2.083
0.260
3. Addition 1,000,000 x typed int
0.140
1.980
2.083
0.270
4. Increment 1,000,000 x integer
1.131
2.030
2.273
0.120
5. Increment 1,000,000 x typed int
0.152
2.030
2.203
0.120
6. Multiplication 1,000,000 x integer
0.931
2.800
2.644
0.270
7.Multiplication 1,000,000 x typed int
0.220
2.860
2.624
0.250
8.Multiplication 1,000,000 x float
0.581
2.690
2.954
0.290
9. Multiplication 1,000,000 x typed float
0.243
2.750
2.994
0.240
10. Division 1,000,000 x float
0.592
2.690
3.105
0.350
11. Division 1,000,000 x typed float
0.291
2.750
3.034
0.300

All benchmarks are compiled and executed on the same hardware on MS-Windows 2000 SP4. Times in red signals only an extreme difference (more than 10-times longer). The .prg source code is freely available.