benchttp / engine

Benchttp library in Go to run performance tests on HTTP endpoints.
Other
4 stars 1 forks source link

feat: compute stats from requester result #35

Closed c1-ra closed 2 years ago

c1-ra commented 2 years ago

Issue: https://github.com/benchttp/engine/issues/10

Description

Add stats computation. Eventually, I did not use the stats lib we were using in the first iteration. It optimizes the number of loops and allows us to not have to convert from float64 to time.Duration and vice versa.

Just in case, since it is what I implemented first, I stored the first version I did with the stats lib in this branch: https://github.com/benchttp/engine/tree/feat/compute-stats-from-requester-results.

Changes

Aggregate struct has been implemented. There are tests for each of Aggregate fields, and error handling.

Notes

/