world: publish decorated region batches

This commit is contained in:
Daniar Mannanov 2026-08-25 03:59:29 +03:00
parent d8b5d0f79b
commit c4be38acdd
10 changed files with 471 additions and 25 deletions

View file

@ -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)
}
}
}