From e178ee323712ec36b8c2acc63b387c90491d59ad Mon Sep 17 00:00:00 2001 From: surtur Date: Fri, 17 Jun 2022 23:24:41 +0200 Subject: [PATCH] go: add stats package --- stats/doc.go | 5 +++++ stats/stats.go | 17 +++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 stats/doc.go create mode 100644 stats/stats.go diff --git a/stats/doc.go b/stats/doc.go new file mode 100644 index 0000000..65d5c4c --- /dev/null +++ b/stats/doc.go @@ -0,0 +1,5 @@ +// Copyright 2022 wanderer +// SPDX-License-Identifier: GPL-3.0-or-later + +// Package stats provides functions for summarizing results. +package stats diff --git a/stats/stats.go b/stats/stats.go new file mode 100644 index 0000000..5217e5f --- /dev/null +++ b/stats/stats.go @@ -0,0 +1,17 @@ +// Copyright 2022 wanderer +// SPDX-License-Identifier: GPL-3.0-or-later + +package stats + +type FuncStats struct { + BenchName string + Results []float64 +} + +type Stats struct { + Algo string + Dimens int + BenchFuncStats []FuncStats + Iterations int + Generations int +}