mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-27 11:08:13 +08:00
Exclude executor teardown from the measured bench regions
This commit is contained in:
@@ -9,7 +9,7 @@ fn run_once(c: &mut Criterion) {
|
||||
let context = RenderConfig::default();
|
||||
bench_for_each_demo(&mut group, |name, g| {
|
||||
g.bench_function(name, |b| {
|
||||
b.iter_batched(
|
||||
b.iter_batched_ref(
|
||||
|| setup_network(name),
|
||||
|(executor, _)| futures::executor::block_on(executor.tree().eval_tagged_value(executor.output(), std::hint::black_box(context))).unwrap(),
|
||||
criterion::BatchSize::SmallInput,
|
||||
|
||||
Reference in New Issue
Block a user