From caa7af3fb549ebd4e449c17dffad8bdd6593ea58 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Sat, 18 Apr 2026 16:24:52 +0200 Subject: write out a proper README --- benchmark/benchmark_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'benchmark') 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} -- cgit v1.2.3