diff options
| author | Stefan Majewsky <majewsky@gmx.net> | 2026-07-17 19:03:48 +0200 |
|---|---|---|
| committer | Stefan Majewsky <majewsky@gmx.net> | 2026-07-17 19:03:48 +0200 |
| commit | 356730208b8b909a9959272e99b1a79c0246cb63 (patch) | |
| tree | fd169f43cac9edc27b5a86037b2893487d5f736b /benchmark/postgres_test.go | |
| parent | 1078ea0c66ff4ee848e512768e793de885cf209d (diff) | |
| download | go-oblast-356730208b8b909a9959272e99b1a79c0246cb63.tar.gz | |
add type Selection
Diffstat (limited to 'benchmark/postgres_test.go')
| -rw-r--r-- | benchmark/postgres_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/postgres_test.go b/benchmark/postgres_test.go index 778671b..a5957f7 100644 --- a/benchmark/postgres_test.go +++ b/benchmark/postgres_test.go @@ -92,14 +92,14 @@ func BenchmarkPostgresSelect(b *testing.B) { b.Run("driver=pq/strategy=oblast", func(b *testing.B) { for b.Loop() { - records := must.Return(store.Select(noctx, pqDB, query))(b) + records := must.Return(store.Select(noctx, pqDB, query).Collect())(b) assert.Equal(b, len(records), batchSize) } }) b.Run("driver=pgx/strategy=oblast", func(b *testing.B) { for b.Loop() { - records := must.Return(store.Select(noctx, pgxConnH, query))(b) + records := must.Return(store.Select(noctx, pgxConnH, query).Collect())(b) assert.Equal(b, len(records), batchSize) } }) |
