Benchmarks

    Here are a few benchmarks to provide some idea of the speed of the Bach interpreter. These are comparisons with results published at ”The Great Win32 Computer Language Shootout” at http://dada.perl.it/shootout/. I have scaled the results on my computer based on the relative performance of some LCC examples.

    As with all benchmarks, these should be taken with a grain of salt -- there is no guarantee that they are even accurate, much less meaningful.

    The reader is encouraged to visit  http://dada.perl.it/shootout/ and the original ‘shootout’ site at http://www.bagley.org/~doug/shootout/ for more details.

Test

VC++

Bach

Perl

Python

gforth

Array access

0.03

0.34

7.83

5.78

1.06

Hashes II

Failed

2.75

2.88

3.30

5.47

List operations

Failed

0.06

0.94

1.25

0.39

Matrix mult.

0.05

0.81

8.94

8.64

0.16

Method calls

0.03

4.20

9.97

7.72

1.91

Nested Loops

0.02

0.25

8.92

7.02

0.28

Random # Gen.

0.11

0.37 (a)

2.27

2.50

0.48

Sieve of Erat.

0.11

1.82

16.45

14.69

0.84

String concat.

2.69?

0.08

0.09

0.39

0.11

    (a) Results are for identical implementations. Bach has a built-in random number generator that clocks in at 0.18