Skip to content

Commit

Permalink
Report about benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
terminationshock committed Feb 19, 2023
1 parent 8d2a8eb commit 619e6e5
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,14 @@ You can then compile a Brainfuck source file by invoking `bf <FILE>`. 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:[email protected]).
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 |

0 comments on commit 619e6e5

Please sign in to comment.