aboutsummaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2026-04-18 16:24:52 +0200
committerStefan Majewsky <majewsky@gmx.net>2026-04-18 16:24:52 +0200
commitcaa7af3fb549ebd4e449c17dffad8bdd6593ea58 (patch)
tree205ec35bdbfa3e8fc859997ff3e547ab525db1f9 /benchmark
parent0843d2cda294bb67d6e65d585c6fd63807d70619 (diff)
downloadgo-oblast-caa7af3fb549ebd4e449c17dffad8bdd6593ea58.tar.gz
write out a proper README
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/benchmark_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/benchmark/benchmark_test.go b/benchmark/benchmark_test.go
index c2d27b3..2b0545a 100644
--- a/benchmark/benchmark_test.go
+++ b/benchmark/benchmark_test.go
@@ -9,6 +9,7 @@ import (
"fmt"
"strconv"
"testing"
+ "time"
"github.com/go-gorp/gorp/v3"
_ "github.com/mattn/go-sqlite3"
@@ -19,6 +20,15 @@ import (
"gorm.io/gorm"
)
+// This is not a real benchmark (obviously).
+// Its purpose is to be the first line that is printed, while having one of the longest names,
+// so that all other results are aligned with it and the table looks nice.
+func BenchmarkHeadingHeadingHeadingHeadingHeadingHeading(b *testing.B) {
+ for b.Loop() {
+ time.Sleep(time.Microsecond)
+ }
+}
+
var (
totalRecordCountForSelect = 10000
batchSizesForSelect = []int{1, 10, 100, 1000}