mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-12-06 08:13:40 -10:00
* Free executor nodes once no output reaches them, and let an export keep its output instead of blocking the runtime * Answer an export on a channel of its own, so the viewport's answers stay in order * Render a copy's SVG as an export of the copied layers' own network * Record in the executor which paths' types changed, to be taken with take_type_changes * Prepare every network in the node graph executor, and send the runtime the thumbnail sources instead of the previews and layers
26 lines
733 B
Rust
26 lines
733 B
Rust
mod benchmark_util;
|
|
|
|
use benchmark_util::{bench_for_each_demo, setup_network};
|
|
use criterion::{Criterion, criterion_group, criterion_main};
|
|
use interpreted_executor::dynamic_executor::DynamicExecutor;
|
|
|
|
fn update_executor(c: &mut Criterion) {
|
|
let mut group = c.benchmark_group("Update Executor");
|
|
bench_for_each_demo(&mut group, |name, g| {
|
|
g.bench_function(name, |b| {
|
|
b.iter_batched(
|
|
|| {
|
|
let (_, _, proto_network) = setup_network(name);
|
|
(DynamicExecutor::default(), proto_network)
|
|
},
|
|
|(mut executor, network)| executor.insert(std::hint::black_box(network)),
|
|
criterion::BatchSize::SmallInput,
|
|
)
|
|
});
|
|
});
|
|
group.finish();
|
|
}
|
|
|
|
criterion_group!(benches, update_executor);
|
|
criterion_main!(benches);
|