Skip to content

Improve internal benchmarks#125

Merged
hamishcoleman merged 35 commits into
n42n:mainfrom
hamishcoleman:main
Apr 23, 2026
Merged

Improve internal benchmarks#125
hamishcoleman merged 35 commits into
n42n:mainfrom
hamishcoleman:main

Conversation

@hamishcoleman

Copy link
Copy Markdown
Contributor

No description provided.

hamishcoleman and others added 29 commits March 8, 2026 15:31
By converting the benchmark option setting from a argv to a real option,
we make room to have a more consistent set of test filter strings.

By creating an new string to id mapping type, we should in the future be
able to simplify some of the other config file parsing types.
The pdu2tun test still has some undiagnosed memory corruption when using
the new process and so it is not converted over.
The PEEK and POKE pthread actions are intended for debugging, and this
code was using them for inter-process communication.  This mismatch
could lead to memory corruption (and I suspect this was the reason why
the pdu2tun test could not be converted to use the simpler malloc
process)

Replace with a block of shared memory and a defined format and access
pattern.
By running the alarm action inside the child, the child becomes self
contained.  If the parent dies or fails to trace correctly, the child
will manage its own exit.

This also constrains the information from to just getting data out of
the child, not sending data into the child.
With this, it is now possible to benchmark both TX and RX in either
direction.

Co-Authored-By: Hamish Coleman <hamish@zot.org>
Co-Authored-By: Hamish Coleman <hamish@zot.org>
@hamishcoleman hamishcoleman self-assigned this Apr 16, 2026
@hamishcoleman hamishcoleman merged commit 6fb29ea into n42n:main Apr 23, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants