mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-05 03:08:12 +08:00
comment out tests
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user