diff --git a/chiv_benchmark_test.go b/chiv_benchmark_test.go index a1ecc06..b9d3f0c 100644 --- a/chiv_benchmark_test.go +++ b/chiv_benchmark_test.go @@ -16,12 +16,22 @@ import ( func BenchmarkArchiver_Archive(b *testing.B) { var ( - bucket = "benchmark_bucket" - benchmarks = []int{1, 10, 100, 1_000, 5_000, 10_000} - rows = &benchmarkRows{columnTypes: make([]*sql.ColumnType, 8)} - uploader = &uploader{} - format = chiv.WithFormat(formatterFunc(&benchmarkFormatter{}, nil)) - ctx = context.Background() + benchmarks = []int{ + 1, + 10, + 100, + 1_000, + 5_000, + 10_000, + } + + ctx = context.Background() + rows = &benchmarkRows{ + columnTypes: make([]*sql.ColumnType, 8), + } + uploader = &uploader{} + bucket = "benchmark_bucket" + format = chiv.WithFormat(formatterFunc(&benchmarkFormatter{}, nil)) ) for _, count := range benchmarks {