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

benpicco notifications at github.com
Thu Sep 2 15:45:13 CEST 2021


@benpicco commented on this pull request.



> +        printf("\t\tnum RT\t\tRTT");
+    }
+    puts("");
+
+    for (list_node_t* n = head->next; n; n = n->next) {
+        bench_client_t *node = container_of(n, bench_client_t, node);
+        uint8_t addr_len;
+
+        inet_ntop(AF_INET6, &node->addr.sin6_addr, addr_str, INET6_ADDRSTRLEN);
+        addr_len = printf("%s", addr_str);
+
+        if (addr_len > max_addr_len) {
+            max_addr_len = addr_len;
+        }
+
+        unsigned bw = (node->count_rx * (payload_len + sizeof(benchmark_msg_ping_t)))

if the configuration does not match, we send a config packet and the client will reset it's counters. 

I'd say it's safe to assume that for any valid data, client and server config must & will be in sync. 

-- 
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_r701097934
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210902/7783f720/attachment.htm>


More information about the notifications mailing list