Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Benchmark support #8

Open
skogsbaer opened this issue Sep 28, 2012 · 1 comment
Open

Benchmark support #8

skogsbaer opened this issue Sep 28, 2012 · 1 comment

Comments

@skogsbaer
Copy link
Owner

It should be possible to define benchmarks in HTF. Benchmark should use criterion for measurements.

Possibility 1:

bench_fact = nf fact 100

This simply runs the benchmark when explicitly requested but not when executing the whole test suite.

Possibility 2:

bench_fact = withReference someReferenceBenchmark 3.4 $ nf fact 100

This checks that running nf fact 100 is at most 3.4 times as slow as `someReferenceBenchmark. This benchmark is run when the whole test suite is run.

Benchmark should not be executed concurrently to other tests.

@nikita-volkov
Copy link

+1, This would be amazingly useful to have! Great idea!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants