From ef919cb26985dfef962be53f348b5258464a92e9 Mon Sep 17 00:00:00 2001 From: surtur Date: Sat, 18 Jun 2022 00:05:12 +0200 Subject: [PATCH] go(stats): add iteration field --- stats/stats.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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