Skip to content
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

New benchmark suite #97

Merged
merged 11 commits into from
Dec 11, 2023
Merged

New benchmark suite #97

merged 11 commits into from
Dec 11, 2023

Conversation

perbu
Copy link
Collaborator

@perbu perbu commented Dec 7, 2023

This is replacement for the current benchmark suite. The code is bit extensive but should serve as a good example on what a small networking system could look like.

It is easy to run the benchmark under the Go profiler, which should provide some guidance on performance, both CPU and memory.

It ads a new make target: make bench-profile which will invoke the benchmark under a profiler. This keeps the raw
benchmark unpolluted by the profiler.

anthdm and others added 11 commits December 6, 2023 16:46
The update introduces a benchmark actor that receives messages and increments a message counter. It also includes the creation of a new protobuf message. The main function is updated to incorporate this benchmark actor, while providing a detailed simulation of sending messages across multiple actors distributed across different engines.
The benchmark code is refactored for better error handling and message checks. 'benchmark' function is extracted from 'main' for further testing. A new Makefile target 'bench-profile' is added for profiling. A new test file 'main_test.go' is created for benchmark testing. Corresponding instructions are added in the newly created README.md file. Also, .gitignore is updated to exclude the created test, cpu, and memory profiles.
…d it out. Gonna revisit latency benchmarks later.
The benchmark command in the Makefile has been updated to run the whole package, not just main.go
@anthdm anthdm merged commit 4fe2643 into anthdm:master Dec 11, 2023
1 check 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.

3 participants