From 7eb5e84fb1dd865e84e674f932ccd15125e051f5 Mon Sep 17 00:00:00 2001 From: Simon Sawert Date: Tue, 3 Oct 2023 21:16:20 +0200 Subject: [PATCH] Remove redundant benchmark test, fix typo --- inferrer_test.go | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/inferrer_test.go b/inferrer_test.go index 1a56281..91bde3b 100644 --- a/inferrer_test.go +++ b/inferrer_test.go @@ -251,11 +251,11 @@ func TestJTDInferWithDiscriminatorHints(t *testing.T) { } func BenchmarkInferOneRowNoMissingHints(b *testing.B) { - wors := generateRows(1) + rows := generateRows(1) emptyHints := WithoutHints() for n := 0; n < b.N; n++ { - InferStrings(wors, emptyHints) + InferStrings(rows, emptyHints) } } @@ -268,24 +268,6 @@ func BenchmarkInferThousandRowsNoMissingHints(b *testing.B) { } } -func BenchmarkInferOneRowMissingHints(b *testing.B) { - rows := generateRows(1) - hints := Hints{} - - for n := 0; n < b.N; n++ { - InferStrings(rows, hints) - } -} - -func BenchmarkInferThousandRowsMissingHints(b *testing.B) { - rows := generateRows(1000) - hints := Hints{} - - for n := 0; n < b.N; n++ { - InferStrings(rows, hints) - } -} - func generateRows(n int) []string { row := `{"name":"bench", "speed":100.2}` rows := []string{}