INNER CODE UNIT · Go
BenchmarkAnalyzeLog
simagix/hatchet · benchmark_test.go:18
func BenchmarkAnalyzeLog(b *testing.B) {
b.ReportAllocs()
for i := 0; i < b.N; i++ {
AnalyzeLog(benchmarkLogStr)
}
}
// BenchmarkBsonUnmarshal benchmarks BSON unmarshalling
func BenchmarkBsonUnmarshal(b *testing.B) {
b.ReportAllocs()
for i := 0; i < b.N; i++ {
doc := Logv2Info{}
bson.UnmarshalExtJSON([]byte(benchmarkLogStr), false, &doc)
}
}
// BenchmarkBsonD2M benchmarks the optimized BsonD2M conversion
func BenchmarkBsonD2M(b *testing.B) {