-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_utils: add UDP benchmark #16710
Conversation
32e80f2
to
87eb9bb
Compare
603030e
to
0539c2c
Compare
192f08b
to
6dfa6c8
Compare
I did compile the server with maybe the average can be made sliding instead of total ✔️ |
While testing this on native i found that this yields interesting cases for the network stack at high load 👍 good for further development
The Packet-Contend Format is LittleEndian (System Endianess) - I assume this is intentional, maybe this needs documentation. The Configuration is not redone if the benchmark is stopped and started again, also the counters are not reset, since the cookie is not deleted on stop - Is this intentional? ✔️ |
when i did multiple starts one after another the client looked up some times
maybe the listener is able to close the sock while the sender is going to write it. The sock close might be better placed in the |
Ops, good catch - I totally forgot about the listener thread |
Is it possible to get the testing procedure you wrote up into a doc or readme.md next to either the module or server? |
eadffbb
to
7c358df
Compare
I am ok if would like to squash all fixups untill yesterday and calm down the check-pr |
b58e937
to
49e8bfc
Compare
gnrc: working gnrc_netorting with added module specific example
is this a missing module or an error in lwip? |
This already got fixed in |
yes please squash and rebase |
1b381d3
to
f3aee01
Compare
testing BIG Packages
or |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice tool to check reliability and performance of networks and nodes under high pkg pressure.
Thank you for the review! |
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 your applicatione.g.:
Start the benchmark process by specifying the IP of the host running the benchmark server
Build and start the benchmark server on your local machine
Observe the results:
You can use the
-i <µs>
option to adjust the interval in which clients will send packets.With the
-s <bytes>
option you can adjust the size of the packets. E.g.to send packets with 100 byte payload every 100 µs
Issues/PRs references