Skip to content

Commit

Permalink
fix benches
Browse files Browse the repository at this point in the history
  • Loading branch information
UkoeHB committed Sep 20, 2023
1 parent cbc6825 commit cc17203
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions benches/replication.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ fn replication(c: &mut Criterion) {
server_app.update();
elapsed += instant.elapsed();

std::thread::sleep(Duration::from_millis(5));
client_app.update();
assert_eq!(client_app.world.entities().len(), ENTITIES);
}
Expand All @@ -57,6 +58,7 @@ fn replication(c: &mut Criterion) {
.spawn_batch([(Replication, DummyComponent); ENTITIES as usize]);

server_app.update();
std::thread::sleep(Duration::from_millis(5));

let instant = Instant::now();
client_app.update();
Expand Down

0 comments on commit cc17203

Please sign in to comment.