go(stats): add iteration field
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-06-18 00:05:12 +02:00
parent ed76cf865b
commit ef919cb269
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -14,6 +14,7 @@
type FuncStats struct {
BenchName string
Results []float64
Iteration int
}
type Stats struct {
@ -24,10 +25,11 @@ type Stats struct {
Generations int
}
func GetFuncStats(funcName string, results []float64) FuncStats {
func GetFuncStats(funcName string, results []float64, iteration int) FuncStats {
f := FuncStats{
BenchName: funcName,
Results: results,
Iteration: iteration,
}
return f