Skip to content

Adding some benchmarks #25

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

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Conversation

osunderdog
Copy link

Propose adding benchmark code along with a similar test.
Some example benchmarks for ping-pong, load balancer and storage.
Tests are use to confirm that the benchmark is testing something real.

to run use:

cargo bench

Example metrics from benchmark runs

test test_loadbalancer::loadbalancer_bench ... bench:         583.14 ns/iter (+/- 5.70)
test test_models::storage_bench ... bench:                    166.18 ns/iter (+/- 3.14)    
test testy::ping_pong_bench ... bench:                      2,321.04 ns/iter (+/- 22.68)

work alias: ParensAllTheWayDown

@osunderdog osunderdog marked this pull request as ready for review May 14, 2025 16:15
@osunderdog
Copy link
Author

Minimal change check

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.

1 participant