From 7abc1411d7be61c60fed7e882e444e64e2cf463f Mon Sep 17 00:00:00 2001 From: Tulio A M Mendes Date: Thu, 16 Apr 2026 02:42:40 -0300 Subject: [PATCH] perf(net): reduce ping test sleep times for faster test runs QEMU virtual NIC doesn't need 2s to stabilize. Reduced initial wait from 2s to 500ms and inter-ping delay from 1s to 250ms. --- src/net/net_ping.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/net_ping.c b/src/net/net_ping.c index dc0ccc6e..33c2434e 100644 --- a/src/net/net_ping.c +++ b/src/net/net_ping.c @@ -145,7 +145,7 @@ void net_ping_test(void) { } /* Wait for the E1000 link to stabilize in QEMU */ - process_sleep(2 * TIMER_HZ); /* ~2 seconds */ + process_sleep(TIMER_HZ / 2); /* ~500ms — plenty for QEMU virtual NIC */ ip_addr_t target; ip_addr_set_zero_ip4(&target); @@ -190,7 +190,7 @@ void net_ping_test(void) { } if (i + 1 < PING_COUNT) - process_sleep(TIMER_HZ); /* ~1 second between pings */ + process_sleep(TIMER_HZ / 4); /* ~250ms between pings */ } /* Cleanup in tcpip thread */ -- 2.43.0