bobheadxi / gobenchdata

📉 Run Go benchmarks, publish results to an interactive web app, and check for performance regressions in your pull requests
https://gobenchdata.bobheadxi.dev
MIT License
142 stars 14 forks source link

feature: automatically generate image from RunHistory #32

Open hazcod opened 4 years ago

hazcod commented 4 years ago

Hi, I think it would be nice if we could generate an image from the JSON file to e.g. automatically display & replace the image on README.md on merge.

bobheadxi commented 4 years ago

Different export options from gobenchdata would be nice, but it might be a bit outside the scope of the project. Some options might be:

    b, err := ioutil.ReadFile(f)
    if err != nil {
        panic(err)
    }
    var runs []bench.Run
    if err := json.Unmarshal(b, &runs); err != nil {
        panic(err)
    }

I'm open to thoughts though!