Skip to content

[Feature Request] Time series CSV / JSON output #542

@alshdavid

Description

@alshdavid

Hi, thank you for developing this software - it's fantastic.

Would it be possible to add in a time-series/output that counts the number of requests, grouped/counted at a specified unit of time and emits that as CSV?

This could be used to generate a line graph or histogram of requests per second over time.

Something like this:

$ oha --time-series 1s > output.csv
$ cat output.csv

time(s),count
0, 100
1, 120
2, 110
3, 100
4, 90
5, 100

This is helpful in demonstrating the consistency in the delivery of requests. Take for example this run:

Screencast.from.2024-07-25.17-10-04.mp4

The "average time" is not helpful in describing the service experience.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions