[riot-notifications] [RIOT-OS/RIOT] test_utils: add UDP benchmark (#16710)

benpicco notifications at github.com
Thu Sep 2 15:43:26 CEST 2021


@benpicco commented on this pull request.



> +                                     ? (100 * node->count_rt) / node->count_tx
+                                     : 0;
+            printf("\t%u (%u%%)\t%u µs", node->count_rt, success_rate_rt, node->rtt_us);
+        }
+        puts("");
+    }
+}
+
+static void dispatch_loop(int sock)
+{
+    list_node_t head = { .next = NULL };
+    struct timeval tv_now, tv_last = { 0 };
+
+    puts("entering loop…");
+    while (1) {
+        uint8_t buffer[BENCH_PAYLOAD_SIZE_MAX + sizeof(benchmark_msg_ping_t)];

hm but then I won't be able to receive messages from nodes that were previously configured with a larger payload

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16710#discussion_r701096309
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210902/ad2e9fe2/attachment-0001.htm>


More information about the notifications mailing list