diff --git a/stats/stats.go b/stats/stats.go index d3a4d87..5e72a67 100644 --- a/stats/stats.go +++ b/stats/stats.go @@ -14,6 +14,7 @@ import ( 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