Skip to content

Commit 832286e

Browse files
committed
Be pedantic about kB vs. KiB
1 parent cb4c41c commit 832286e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Diff for: bulk_test.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -541,13 +541,13 @@ func TestBulkContentType(t *testing.T) {
541541
}
542542

543543
func BenchmarkBulkAllocs(b *testing.B) {
544-
b.Run("1000 docs with 64b", func(b *testing.B) { benchmarkBulkAllocs(b, 64, 1000) })
545-
b.Run("1000 docs with 1kB", func(b *testing.B) { benchmarkBulkAllocs(b, 1024, 1000) })
546-
b.Run("1000 docs with 4kB", func(b *testing.B) { benchmarkBulkAllocs(b, 4096, 1000) })
547-
b.Run("1000 docs with 16kB", func(b *testing.B) { benchmarkBulkAllocs(b, 16*1024, 1000) })
548-
b.Run("1000 docs with 64kB", func(b *testing.B) { benchmarkBulkAllocs(b, 64*1024, 1000) })
549-
b.Run("1000 docs with 256kB", func(b *testing.B) { benchmarkBulkAllocs(b, 256*1024, 1000) })
550-
b.Run("1000 docs with 1MB", func(b *testing.B) { benchmarkBulkAllocs(b, 1024*1024, 1000) })
544+
b.Run("1000 docs with 64 byte", func(b *testing.B) { benchmarkBulkAllocs(b, 64, 1000) })
545+
b.Run("1000 docs with 1 KiB", func(b *testing.B) { benchmarkBulkAllocs(b, 1024, 1000) })
546+
b.Run("1000 docs with 4 KiB", func(b *testing.B) { benchmarkBulkAllocs(b, 4096, 1000) })
547+
b.Run("1000 docs with 16 KiB", func(b *testing.B) { benchmarkBulkAllocs(b, 16*1024, 1000) })
548+
b.Run("1000 docs with 64 KiB", func(b *testing.B) { benchmarkBulkAllocs(b, 64*1024, 1000) })
549+
b.Run("1000 docs with 256 KiB", func(b *testing.B) { benchmarkBulkAllocs(b, 256*1024, 1000) })
550+
b.Run("1000 docs with 1 MiB", func(b *testing.B) { benchmarkBulkAllocs(b, 1024*1024, 1000) })
551551
}
552552

553553
const (

0 commit comments

Comments
 (0)