Skip to content

Commit

Permalink
formatting benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
gavincabbage committed Sep 23, 2019
1 parent c0a0258 commit 6e7d035
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions chiv_benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6e7d035

Please sign in to comment.