示例#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)
	})
}
示例#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)
	})
}
示例#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)
	})
}
示例#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)
	})
}
示例#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)
	})
}