diff --git a/ref_test.go b/ref_test.go index f361ae4..a9b63d9 100644 --- a/ref_test.go +++ b/ref_test.go @@ -80,7 +80,7 @@ func TestReference_EXTENSION_NO_EMPTY_LINE_BEFORE_BLOCK(t *testing.T) { var benchResultAnchor string func BenchmarkReference(b *testing.B) { - params := TestParams{Options: Options{Extensions: NoExtensions}} + params := TestParams{Options: Options{Extensions: CommonExtensions}} files := []string{ "Amps and angle encoding", "Auto links", @@ -115,6 +115,7 @@ func BenchmarkReference(b *testing.B) { } tests = append(tests, string(inputBytes)) } + b.ResetTimer() for n := 0; n < b.N; n++ { for _, test := range tests { benchResultAnchor = runMarkdown(test, params)