illicit 1.1.2

An implicit thread-local environment which is indexed by type.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#[macro_use]
extern crate criterion;

use criterion::Criterion;

fn enter_small_env(c: &mut Criterion) {
    c.bench_function("enter a small illicit env", |b| {
        b.iter(|| illicit::Layer::new().offer(10u128).enter(|| ()));
    });
}

criterion::criterion_group!(benches, enter_small_env,);
criterion::criterion_main!(benches);