Skip to content

Instantly share code, notes, and snippets.

@TrinhTrungDung
Created March 20, 2020 16:06
Show Gist options
  • Save TrinhTrungDung/d250bc0c5a5692f70e5ea599cf550221 to your computer and use it in GitHub Desktop.
Save TrinhTrungDung/d250bc0c5a5692f70e5ea599cf550221 to your computer and use it in GitHub Desktop.
Test benchmark with different batch size
func BenchmarkBulkCreateSize1(b *testing.B) {
benchmarkBulkCreate(1, b)
}
func BenchmarkBulkCreateSize100(b *testing.B) {
benchmarkBulkCreate(100, b)
}
func BenchmarkBulkCreateSize500(b *testing.B) {
benchmarkBulkCreate(500, b)
}
func BenchmarkBulkCreateSize1000(b *testing.B) {
benchmarkBulkCreate(1000, b)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment