project-ideas
project-ideas copied to clipboard
std.benchmark
Ideally every function in Phobos should have its own benchmark suite which is run for every PR to check for performance improvements or regressions.
- Additionally support for the new big O annotation here would be nice.
- Existing work: here, and here, and here (QuickText-like testing).
https://github.com/burner/benchmark
quicktext like testing can be found in https://github.com/atilaneves/unit-threaded
We already have std.datetime.stopwatch.datetime. Is this what this project is asking for or is to actually create a test agent that tests for performance regressions? I would argue that this should not necessarily be part of the standard testing suite, but rather be asked for at review time.