nakabonne / ali

Generate HTTP load and plot the results in real-time
MIT License
3.74k stars 143 forks source link

Plot more metrics in real-time #2

Closed nakabonne closed 4 years ago

nakabonne commented 4 years ago

It would be nice if it's able to press Ctrl-i to switch between charts.

brenol commented 4 years ago

What do you think about we clicking on each option and showing them (changing the current line chart?)?

I wish we had tabs on termdash, but it doesn't have tabs unfortunately :(

nakabonne commented 4 years ago

@brenol Sorry, I completely missed your message. termdash is capable of switching dynamically the layouts like this.

brenol commented 4 years ago

@nakabonne no problem. I started work on percentiles and I think I'll be able to open a PR this weekend :)

nakabonne commented 4 years ago

That would help. I'm wondering if we can do that with Histogram which is commented out now. https://github.com/nakabonne/ali/blob/ec2b6b4894b11507536cf56cf8ee3bf985482203/attacker/metrics.go#L14

brenol commented 4 years ago

I'll take a look at histogram. However, vegeta.Metrics calculating quantiles is actually okay (??).

This is how it looks (wip) [p50, p75, p90, p95 & p99]. My test server is running Sleep(rand.Intn(1000 * Millisecond)): image

I'm not done yet, as I want to show legend like in this issue https://github.com/mum4k/termdash/pull/188

Just didn't get the time, but I'll finish this one soon and I'll try to make it as reusable as possible so we can support bytes in/bytes out & status codes as well.

nakabonne commented 4 years ago

Closing because I opened each issue individually; label:new-chart