world: publish decorated region batches
This commit is contained in:
parent
d8b5d0f79b
commit
c4be38acdd
10 changed files with 471 additions and 25 deletions
|
|
@ -10,3 +10,14 @@ func BenchmarkGenerateVanilla(b *testing.B) {
|
|||
_ = g(int32(i), 0)
|
||||
}
|
||||
}
|
||||
|
||||
func BenchmarkGenerateVanillaRegionBatch(b *testing.B) {
|
||||
_, batch := NewVanillaRegionGenerators(12345)
|
||||
b.ResetTimer()
|
||||
b.ReportAllocs()
|
||||
for i := 0; i < b.N; i++ {
|
||||
if _, err := batch(int32(i*3), 0); err != nil {
|
||||
b.Fatal(err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue