comment out tests

This commit is contained in:
Adam
2025-07-16 01:42:37 -07:00
parent cf0a32b9b1
commit f5c6b65fcc
35 changed files with 2963 additions and 3098 deletions
@@ -1,12 +1,12 @@
use criterion::{Criterion, black_box, criterion_group, criterion_main};
use graph_craft::util::DEMO_ART;
fn compile_to_proto(c: &mut Criterion) {
use graph_craft::util::{compile, load_from_name};
use graph_craft::util::load_from_name;
let mut c = c.benchmark_group("Compile Network cold");
for name in DEMO_ART {
let network = load_from_name(name);
c.bench_function(name, |b| b.iter_batched(|| network.clone(), |network| compile(black_box(network)), criterion::BatchSize::SmallInput));
c.bench_function(name, |b: &mut criterion::Bencher<'_>| b.iter_batched(|| network.clone(), |mut network| black_box(network.flatten()), criterion::BatchSize::SmallInput));
}
}
@@ -4,8 +4,8 @@ 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(_input: NodeNetwork) {
black_box(compile(_input));
pub fn compile_to_proto(mut input: NodeNetwork) {
let _ = black_box(input.flatten());
}
library_benchmark_group!(name = compile_group; benchmarks = compile_to_proto);