WIP: Thumbnails

This commit is contained in:
Adam
2025-07-16 01:43:00 -07:00
parent 8b665d158c
commit fcd379a62f
50 changed files with 1208 additions and 1053 deletions
@@ -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)
});
}
}
@@ -5,7 +5,7 @@ use iai_callgrind::{black_box, library_benchmark, library_benchmark_group, main}
#[library_benchmark]
#[benches::with_setup(args = ["isometric-fountain", "painted-dreams", "procedural-string-lights", "parametric-dunescape", "red-dress", "valley-of-spires"], setup = load_from_name)]
pub fn compile_to_proto(mut input: NodeNetwork) {
let _ = black_box(input.flatten());
let _ = black_box(input.compile());
}
library_benchmark_group!(name = compile_group; benchmarks = compile_to_proto);