Overview
On top of the riscv-tests spec test suite, we should cross-compile some no_std Rust programs for the sake of testing + benchmarking the emulator against fully-fledged programs.
Some simple example programs could be:
- Fibonacci
- Quicksort
- Collatz conjecture
An output of this ticket should be both tests against the StEmu as well as benchmarks over various ranges. Good example programs should scale in complexity based off of the input, allowing for a wider range of benchmarks.
To benchmark, criterion + flamegraph should be used. Bonus points if benchmarks for brisc get published as an artifact of this.
Overview
On top of the
riscv-testsspec test suite, we should cross-compile someno_stdRust programs for the sake of testing + benchmarking the emulator against fully-fledged programs.Some simple example programs could be:
An output of this ticket should be both tests against the
StEmuas well as benchmarks over various ranges. Good example programs should scale in complexity based off of the input, allowing for a wider range of benchmarks.To benchmark,
criterion+flamegraphshould be used. Bonus points if benchmarks forbriscget published as an artifact of this.