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