<commit_before>package toml

import (
	"testing"
)

func BenchmarkUnmarshal(b *testing.B) {
	var v testStruct
	data := loadTestData("test.toml")
	b.ResetTimer()

	for i := 0; i < b.N; i++ {
		if err := Unmarshal(data, &v); err != nil {
			b.Fatal(err)
		}
	}
}<commit_msg>Report MB/s in decoder benchmark<commit_after>package toml

import (
	"testing"
)

func BenchmarkUnmarshal(b *testing.B) {
	var v testStruct
	data := loadTestData("test.toml")
	b.ResetTimer()
	b.SetBytes(int64(len(data)))

	for i := 0; i < b.N; i++ {
		if err := Unmarshal(data, &v); err != nil {
			b.Fatal(err)
		}
	}
}
{'fraction_non_alphanumeric': 0.17200674536256325, 'fraction_numerical': 0.006745362563237774, 'mean_word_length': 3.677165354330709, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1416589', 'n_tokens_mistral': 266, 'n_tokens_neox': 241, 'n_words': 57}