Improved benchmark

This commit is contained in:
Eduard Urbach 2024-04-02 20:24:31 +02:00
parent 56e2a65ec1
commit 527dcac884
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0

View File

@ -29,9 +29,9 @@ func BenchmarkMedium(b *testing.B) {
}
func BenchmarkLarge(b *testing.B) {
small, err := os.ReadFile("testdata/large.md")
large, err := os.ReadFile("testdata/large.md")
assert.Nil(b, err)
input := string(small)
input := string(large)
for range b.N {
markdown.Render(input)