We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e944e1 commit e4bc3f6Copy full SHA for e4bc3f6
benchmark_test.go
@@ -490,14 +490,13 @@ func BenchmarkReceiveMetadata(b *testing.B) {
490
valuePtrs[j] = &values[j]
491
}
492
493
- b.ReportAllocs()
494
- b.ResetTimer()
495
-
496
// Prepare a SELECT query to retrieve metadata
497
stmt := tb.checkStmt(db.Prepare("SELECT * FROM large_integer_table LIMIT 1"))
498
defer stmt.Close()
499
500
// Benchmark metadata retrieval
+ b.ReportAllocs()
+ b.ResetTimer()
501
for range b.N {
502
rows := tb.checkRows(stmt.Query())
503
0 commit comments