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

benpicco notifications at github.com
Wed Aug 4 16:55:20 CEST 2021


<!--
The RIOT community cares a lot about code quality.
Therefore, before describing what your contribution is about, we would like
you to make sure that your modifications are compliant with the RIOT
coding conventions, see https://github.com/RIOT-OS/RIOT/wiki/Coding-conventions.
-->

### Contribution description

I needed a tool to generate configurable load on the network so I cobbled this together.
Maybe it's useful for others too.


### Testing procedure

Add the `benchmark_udp` module to you application

    USEMODULE += benchmark_udp

Start the benchmark process by specifying the IP of the host running the benchmark server

    benchmark start fd00:dead:beef::1

Build and start the benchmark server on your local machine

    make -C dist/tools/benchmark_udp
    dist/tools/benchmark_udp/bin/benchmark_server :: 12345

Observe the results:

```
host                       	num RX	num TX	rate
2001:dbc::3a:32ff:fefe:d7ff	35	35	100%
```


### Issues/PRs references

<!--
Examples: Fixes #1234. See also #5678. Depends on PR #9876.

Please use keywords (e.g., fixes, resolve) with the links to the issues you
resolved, this way they will be automatically closed when your pull request
is merged. See https://help.github.com/articles/closing-issues-using-keywords/.
-->

You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/16710

-- Commit Summary --

  * test_utils: add UDP benchmark
  * tools/benchmark_udp: add host tool for benchmark

-- File Changes --

    A dist/tools/benchmark_udp/Makefile (16)
    A dist/tools/benchmark_udp/main.c (226)
    M sys/Makefile (3)
    A sys/include/test_utils/benchmark_udp.h (96)
    M sys/shell/commands/Makefile (3)
    M sys/shell/commands/shell_commands.c (7)
    M sys/test_utils/Makefile.dep (3)
    A sys/test_utils/benchmark_udp/benchmark_udp.c (142)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/16710.patch
https://github.com/RIOT-OS/RIOT/pull/16710.diff

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


More information about the notifications mailing list