예제 #1
0
func main() {
	for i := 0; i < iterations; i++ {
		quadTile.New(position.Random(), 16).IdAsString(16)
	}
}
예제 #2
0
func BenchmarkIdAsString(b *testing.B) {
	for n := 0; n < b.N; n++ {
		New(position.Random(), 16).IdAsString(16)
	}
}
예제 #3
0
func BenchmarkNew(b *testing.B) {
	for n := 0; n < b.N; n++ {
		New(position.Random(), 16)
	}
}