diff options
Diffstat (limited to 'benchmark')
| -rw-r--r-- | benchmark/benchmark_test.go | 10 |
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} |
