go(stats): add iteration field
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
ed76cf865b
commit
ef919cb269
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user