File tree Expand file tree Collapse file tree 1 file changed +2
-20
lines changed Expand file tree Collapse file tree 1 file changed +2
-20
lines changed Original file line number Diff line number Diff line change @@ -251,11 +251,11 @@ func TestJTDInferWithDiscriminatorHints(t *testing.T) {
251251}
252252
253253func BenchmarkInferOneRowNoMissingHints (b * testing.B ) {
254- wors := generateRows (1 )
254+ rows := generateRows (1 )
255255 emptyHints := WithoutHints ()
256256
257257 for n := 0 ; n < b .N ; n ++ {
258- InferStrings (wors , emptyHints )
258+ InferStrings (rows , emptyHints )
259259 }
260260}
261261
@@ -268,24 +268,6 @@ func BenchmarkInferThousandRowsNoMissingHints(b *testing.B) {
268268 }
269269}
270270
271- func BenchmarkInferOneRowMissingHints (b * testing.B ) {
272- rows := generateRows (1 )
273- hints := Hints {}
274-
275- for n := 0 ; n < b .N ; n ++ {
276- InferStrings (rows , hints )
277- }
278- }
279-
280- func BenchmarkInferThousandRowsMissingHints (b * testing.B ) {
281- rows := generateRows (1000 )
282- hints := Hints {}
283-
284- for n := 0 ; n < b .N ; n ++ {
285- InferStrings (rows , hints )
286- }
287- }
288-
289271func generateRows (n int ) []string {
290272 row := `{"name":"bench", "speed":100.2}`
291273 rows := []string {}
You can’t perform that action at this time.
0 commit comments