Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Limit file size of reports #66

Open
rhcarvalho opened this issue Nov 3, 2021 · 0 comments
Open

Limit file size of reports #66

rhcarvalho opened this issue Nov 3, 2021 · 0 comments

Comments

@rhcarvalho
Copy link
Contributor

Reports can get quite large for long runs because they include data about every request, and in fact we could be plotting latency with significantly fewer and a limited amount of points using the downsampler built into Vegeta's plotting capabilities.

Something like this:

diff --git a/report.go b/report.go
index 96d9ea5..c6bbd10 100644
--- a/report.go
+++ b/report.go
@@ -92,7 +92,7 @@ func report(results []*RunResult) {
                }
        }
 
-       p := plot.New()
+       p := plot.New(plot.Downsample(1600))
        for i, res := range results {
                folderPath := res.Path
                name := res.Name
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant