mennanov / limiters

Golang rate limiters for distributed applications
https://godoc.org/github.com/mennanov/limiters
MIT License
411 stars 47 forks source link

add benchmarks #58

Closed leeym closed 3 months ago

leeym commented 3 months ago

Accidentally deleted the branch for https://github.com/mennanov/limiters/pull/57 so I just start over.

Add benchmarks so it will be easier to compare different implementations and evaluate future improvements.

Split Makefile targets to run test and benchmark separately, and update README accordingly.

This change will double the build time on GitHub if we want to cover both tests and benchmarks. We can run only tests on GitHub if needed.

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 80.05%. Comparing base (ed360c3) to head (f3deab7).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #58 +/- ## ======================================= Coverage 80.05% 80.05% ======================================= Files 12 12 Lines 1449 1449 ======================================= Hits 1160 1160 Misses 212 212 Partials 77 77 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.