Exemplo n.º 1
0
func BenchmarkContextPerson(b *testing.B) {
	newBench("person.proto", contextPerson).bench(b, func(r randyTest, easy bool) proto.Message {
		return main.NewPopulatedPerson(r, easy)
	})
}
Exemplo n.º 2
0
func BenchmarkOrNameTelephone(b *testing.B) {
	newBench("person.proto", orNameTelephone).bench(b, func(r randyTest, easy bool) proto.Message {
		return main.NewPopulatedPerson(r, easy)
	})
}
Exemplo n.º 3
0
func BenchmarkEmptyOrNil(b *testing.B) {
	newBench("person.proto", emptyOrNil).bench(b, func(r randyTest, easy bool) proto.Message {
		return main.NewPopulatedPerson(r, easy)
	})
}
Exemplo n.º 4
0
func BenchmarkIncorrectNotName(b *testing.B) {
	newBench("person.proto", incorrentNotName).bench(b, func(r randyTest, easy bool) proto.Message {
		return main.NewPopulatedPerson(r, easy)
	})
}
Exemplo n.º 5
0
func BenchmarkListIndexAddress(b *testing.B) {
	newBench("person.proto", listIndexAddress).bench(b, func(r randyTest, easy bool) proto.Message {
		return main.NewPopulatedPerson(r, easy)
	})
}