Skip to content

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