mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-06 09:18:11 +08:00
WIP: Thumbnails
This commit is contained in:
@@ -6,7 +6,9 @@ fn compile_to_proto(c: &mut Criterion) {
|
||||
|
||||
for name in DEMO_ART {
|
||||
let network = load_from_name(name);
|
||||
c.bench_function(name, |b: &mut criterion::Bencher<'_>| b.iter_batched(|| network.clone(), |mut network| black_box(network.flatten()), criterion::BatchSize::SmallInput));
|
||||
c.bench_function(name, |b: &mut criterion::Bencher<'_>| {
|
||||
b.iter_batched(|| network.clone(), |mut network| black_box(network.compile()), criterion::BatchSize::SmallInput)
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user