Beispiel #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)
	})
}
Beispiel #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)
	})
}
Beispiel #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)
	})
}
Beispiel #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)
	})
}
Beispiel #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)
	})
}