diff --git a/README.md b/README.md index 6b43933..7a605de 100644 --- a/README.md +++ b/README.md @@ -10,4 +10,14 @@ You can then compile a Brainfuck source file by invoking `bf `. Several co ## Run tests -With `make check`, a suite of test programs will be compiled and run. Most of the tests are taken from [Wikipedia](https://en.wikipedia.org/wiki/Brainfuck), while [one test](test/pi.bf) has been created by [Felix Nawothnig](mailto:felix.nawothnig@t-online.de). +With `make check`, a suite of test programs will be compiled and run. Most of the tests are taken from [Wikipedia](https://en.wikipedia.org/wiki/Brainfuck), while [one test](test/pi.bf) has been created by Felix Nawothnig. + +## Benchmarks + +The following test case has been used for benchmarking the compiler: `factor.b` by [Brian Raiter](https://github.com/BR903/ELFkickers/blob/master/ebfc/bf) with input `6543210987654321`. The code has been compiled with different compilers and optimization levels. + +| Compiler | Runtime | +| -------- | ------- | +| [ebfc (commit e7fba94)](https://github.com/BR903/ELFkickers/tree/e7fba942df51e756897224cff5aa853de8fafd90/ebfc) | 23 seconds | +| [bfc (verion 1.7.0)](https://bfc.wilfred.me.uk/) | 8.5 seconds | +| this repository | 7.8 seconds |