Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (21 sloc) 403 Bytes
package main
import (
"encoding/json"
"io/ioutil"
"go.bobheadxi.dev/gobenchdata/bench"
)
func merge(files ...string) {
results := make([]bench.Run, 0)
for _, f := range files {
b, err := ioutil.ReadFile(f)
if err != nil {
panic(err)
}
var runs []bench.Run
if err := json.Unmarshal(b, &runs); err != nil {
panic(err)
}
results = append(results, runs...)
}
output(results)
}
You can’t perform that action at this time.