@@ -205,8 +205,7 @@ func BenchmarkClientSerialSQL(b *testing.B) {
205
205
conn := test_helpers .ConnectWithValidation (b , server , opts )
206
206
defer conn .Close ()
207
207
208
- spaceNo := 519
209
- _ , err := conn .Replace (spaceNo , []interface {}{uint (1111 ), "hello" , "world" })
208
+ _ , err := conn .Replace ("SQL_TEST" , []interface {}{uint (1111 ), "hello" , "world" })
210
209
if err != nil {
211
210
b .Errorf ("Failed to replace: %s" , err )
212
211
}
@@ -227,8 +226,7 @@ func BenchmarkClientSerialSQLPrepared(b *testing.B) {
227
226
conn := test_helpers .ConnectWithValidation (b , server , opts )
228
227
defer conn .Close ()
229
228
230
- spaceNo := 519
231
- _ , err := conn .Replace (spaceNo , []interface {}{uint (1111 ), "hello" , "world" })
229
+ _ , err := conn .Replace ("SQL_TEST" , []interface {}{uint (1111 ), "hello" , "world" })
232
230
if err != nil {
233
231
b .Errorf ("Failed to replace: %s" , err )
234
232
}
@@ -601,7 +599,6 @@ func BenchmarkClientParallelMassiveUntyped(b *testing.B) {
601
599
func BenchmarkClientReplaceParallel (b * testing.B ) {
602
600
conn := test_helpers .ConnectWithValidation (b , server , opts )
603
601
defer conn .Close ()
604
- spaceNo = 520
605
602
606
603
rSpaceNo , _ , err := conn .Schema .ResolveSpaceIndex ("test_perf" , "secondary" )
607
604
if err != nil {
@@ -647,8 +644,7 @@ func BenchmarkClientParallelSQL(b *testing.B) {
647
644
conn := test_helpers .ConnectWithValidation (b , server , opts )
648
645
defer conn .Close ()
649
646
650
- spaceNo := 519
651
- _ , err := conn .Replace (spaceNo , []interface {}{uint (1111 ), "hello" , "world" })
647
+ _ , err := conn .Replace ("SQL_TEST" , []interface {}{uint (1111 ), "hello" , "world" })
652
648
if err != nil {
653
649
b .Errorf ("No connection available" )
654
650
}
@@ -671,8 +667,7 @@ func BenchmarkClientParallelSQLPrepared(b *testing.B) {
671
667
conn := test_helpers .ConnectWithValidation (b , server , opts )
672
668
defer conn .Close ()
673
669
674
- spaceNo := 519
675
- _ , err := conn .Replace (spaceNo , []interface {}{uint (1111 ), "hello" , "world" })
670
+ _ , err := conn .Replace ("SQL_TEST" , []interface {}{uint (1111 ), "hello" , "world" })
676
671
if err != nil {
677
672
b .Errorf ("No connection available" )
678
673
}
@@ -706,8 +701,7 @@ func BenchmarkSQLSerial(b *testing.B) {
706
701
conn := test_helpers .ConnectWithValidation (b , server , opts )
707
702
defer conn .Close ()
708
703
709
- spaceNo := 519
710
- _ , err := conn .Replace (spaceNo , []interface {}{uint (1111 ), "hello" , "world" })
704
+ _ , err := conn .Replace ("SQL_TEST" , []interface {}{uint (1111 ), "hello" , "world" })
711
705
if err != nil {
712
706
b .Errorf ("Failed to replace: %s" , err )
713
707
}
0 commit comments