feature request: `glab ci statistics` to calculate historical stats about past jobs

Describe the feature or problem you'd like to solve

I'm looking for a way to measure improvements (or problems) in our pipelines. For example, if I make a change that speeds up a job by 50%, I want to be able to show how long the job typically took before and after the change.

I'm not sure whether the glab client is an appropriate way to gather such statistics. I'm interested to hear feedback on this idea. If there's already a way to gather these kinds of stats, I don't know it, so thanks in advance for any pointers.

Propose a Solution

I imagine glab ci statistics which could tally and summarize results of recent jobs and pipelines. So for example showing, for each job, number of failures and number of successes. Also execution times (fastest, slowest, average, whatever makes the most sense).

I'd like to be able to compare two branches and see which has more flaky tests, which pipelines complete more quickly, etc.

Additional context

I might be able to contribute code towards this. I'm relatively new to glab and gitlab, so would like some confirmation that this is even a good idea, before I pursue it further.