mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-29 18:48:11 +08:00
Add changing-seasons to the gungraun benchmark arguments
This commit is contained in:
@@ -18,7 +18,7 @@ fn setup_run_cached(name: &str) -> DynamicExecutor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[library_benchmark]
|
#[library_benchmark]
|
||||||
#[benches::with_setup(args = ["isometric-fountain", "painted-dreams", "parametric-dunescape", "red-dress", "valley-of-spires"], setup = setup_run_cached)]
|
#[benches::with_setup(args = ["changing-seasons", "isometric-fountain", "painted-dreams", "parametric-dunescape", "red-dress", "valley-of-spires"], setup = setup_run_cached)]
|
||||||
pub fn run_cached(executor: DynamicExecutor) -> DynamicExecutor {
|
pub fn run_cached(executor: DynamicExecutor) -> DynamicExecutor {
|
||||||
let context = RenderConfig::default();
|
let context = RenderConfig::default();
|
||||||
black_box(Executor::execute(&&executor, black_box(context)).unwrap());
|
black_box(Executor::execute(&&executor, black_box(context)).unwrap());
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ fn setup_run_once(name: &str) -> DynamicExecutor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[library_benchmark]
|
#[library_benchmark]
|
||||||
#[benches::with_setup(args = ["isometric-fountain", "painted-dreams", "procedural-string-lights", "parametric-dunescape", "red-dress", "valley-of-spires"], setup = setup_run_once)]
|
#[benches::with_setup(args = ["changing-seasons", "isometric-fountain", "painted-dreams", "procedural-string-lights", "parametric-dunescape", "red-dress", "valley-of-spires"], setup = setup_run_once)]
|
||||||
pub fn run_once(executor: DynamicExecutor) -> (DynamicExecutor, core_types::gpoll::GPoll<graph_craft::document::value::TaggedValue>) {
|
pub fn run_once(executor: DynamicExecutor) -> (DynamicExecutor, core_types::gpoll::GPoll<graph_craft::document::value::TaggedValue>) {
|
||||||
let context = application_io::RenderConfig::default();
|
let context = application_io::RenderConfig::default();
|
||||||
let result = black_box(Executor::execute(&&executor, black_box(context)).unwrap());
|
let result = black_box(Executor::execute(&&executor, black_box(context)).unwrap());
|
||||||
|
|||||||
Reference in New Issue
Block a user