forked from tweag/nickel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnumeric.rs
32 lines (31 loc) · 825 Bytes
/
numeric.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
use criterion::{criterion_main, Criterion};
use nickel_lang_utilities::ncl_bench_group;
use pprof::criterion::{Output, PProfProfiler};
ncl_bench_group! {
name = benches;
config = Criterion::default().with_profiler(PProfProfiler::new(100, Output::Flamegraph(None)));
{
name = "fibonacci 10",
path = "numeric/fibonacci",
args = (10),
}, {
name = "pidigits 100",
path = "numeric/pidigits",
args = (100),
}, {
name = "sum 30",
path = "numeric/reduce",
subtest = "sum",
args = (30),
}, {
name = "product 30",
path = "numeric/reduce",
subtest = "product",
args = (30),
}, {
name = "scalar 10",
path = "numeric/scalar",
args = (10),
}
}
criterion_main!(benches);