* CI: Clean offline; display cleaned bytes; one artifact upload * Add missing csv bench to iai benchmarks * Generate flamegraphs for benchmarks * Validate benchmark results separately
19 lines
570 B
Rust
19 lines
570 B
Rust
use iai_callgrind::{library_benchmark, library_benchmark_group, main};
|
|
use scryer_prolog::machine::parsed_results::QueryResolution;
|
|
|
|
mod setup;
|
|
|
|
#[library_benchmark]
|
|
#[bench::count_edges(setup::prolog_benches()["count_edges"].setup())]
|
|
#[bench::numlist(setup::prolog_benches()["numlist"].setup())]
|
|
#[bench::csv_codename(setup::prolog_benches()["csv_codename"].setup())]
|
|
fn bench(mut run: impl FnMut() -> QueryResolution) -> QueryResolution {
|
|
run()
|
|
}
|
|
|
|
library_benchmark_group!(
|
|
name = benches;
|
|
benchmarks = bench
|
|
);
|
|
main!(library_benchmark_groups = benches);
|