Skip to content

Commit

Permalink
Significantly reduce the amount of building required for benchmarks (b…
Browse files Browse the repository at this point in the history
…evyengine#4067)

# Objective

- Release mode. Many time

## Solution

- Less things, less time
  • Loading branch information
DJMcNab committed Mar 1, 2022
1 parent 3ffa655 commit 1ba9818
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion benches/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion benches/benches/bevy_ecs/commands.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use bevy::ecs::{
use bevy_ecs::{
component::Component,
entity::Entity,
system::{Command, CommandQueue, Commands},
Expand Down
2 changes: 1 addition & 1 deletion benches/benches/bevy_ecs/stages.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use bevy::ecs::{
use bevy_ecs::{
component::Component,
schedule::{Stage, SystemStage},
system::Query,
Expand Down
2 changes: 1 addition & 1 deletion benches/benches/bevy_ecs/world_get.rs
Original file line number Diff line number Diff line change
@@ -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!(
Expand Down
2 changes: 1 addition & 1 deletion benches/benches/bevy_tasks/iter.rs
Original file line number Diff line number Diff line change
@@ -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>);
Expand Down

0 comments on commit 1ba9818

Please sign in to comment.