Significantly reduce the amount of building required for benchmarks (#4067)

# Objective

- Release mode. Many time

## Solution

- Less things, less time
This commit is contained in:
Daniel McNab 2022-03-01 00:51:07 +00:00
parent 3ffa655cdd
commit 1ba9818a78
5 changed files with 6 additions and 5 deletions

View File

@ -8,7 +8,8 @@ license = "MIT OR Apache-2.0"
[dev-dependencies]
criterion = "0.3"
bevy = { path = ".." }
bevy_ecs = { path = "../crates/bevy_ecs" }
bevy_tasks = { path = "../crates/bevy_tasks" }
[[bench]]
name = "system_stage"

View File

@ -1,4 +1,4 @@
use bevy::ecs::{
use bevy_ecs::{
component::Component,
entity::Entity,
system::{Command, CommandQueue, Commands},

View File

@ -1,4 +1,4 @@
use bevy::ecs::{
use bevy_ecs::{
component::Component,
schedule::{Stage, SystemStage},
system::Query,

View File

@ -1,4 +1,4 @@
use bevy::ecs::{component::Component, entity::Entity, world::World};
use bevy_ecs::{component::Component, entity::Entity, world::World};
use criterion::{black_box, criterion_group, criterion_main, Criterion};
criterion_group!(

View File

@ -1,4 +1,4 @@
use bevy::tasks::{ParallelIterator, TaskPoolBuilder};
use bevy_tasks::{ParallelIterator, TaskPoolBuilder};
use criterion::{black_box, criterion_group, criterion_main, BenchmarkId, Criterion};
struct ParChunks<'a, T>(std::slice::Chunks<'a, T>);