From 0f8f204152727c79157edb66c38c754b46250192 Mon Sep 17 00:00:00 2001 From: koe Date: Wed, 20 Sep 2023 11:36:59 -0500 Subject: [PATCH] fix benches --- benches/replication.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/benches/replication.rs b/benches/replication.rs index eff46933..51634a72 100644 --- a/benches/replication.rs +++ b/benches/replication.rs @@ -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); } @@ -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();