tag1consulting / goose

Load testing framework, inspired by Locust
https://tag1.com/goose
Apache License 2.0
799 stars 71 forks source link

Issue 429: Implement ItemsPerSecond #577

Closed alecsmrekar closed 8 months ago

alecsmrekar commented 9 months ago

Solves this issue: https://github.com/tag1consulting/goose/issues/429

This PR creates a new struct ItemsPerSecond and some accompanying methods that encapsulate the logic of the underlying hash map.

Note: I had to use #[allow(dead_code)] because for some reason the compiler would complain about dead code, even though the code is being used.

alecsmrekar commented 8 months ago

@LionsAd Thanks for the review, I pushed a new commit with the suggested fixes