I've been dropping in benchmarks in a single, top-level global for the package-benchmark system to pick them up and run them, basically something akin to:
let benchmarks = {
Benchmark("SeedHeightmap") { benchmark in
for _ in benchmark.scaledIterations {
blackHole(_ = Heightmap(width: 1025, height: 1025, seed: 437_347_632))
}
}
...
}
As I've been iterating, I've added new benchmarks - to the point where I've got quite a few and it's getting a little weird to have them all in a single, long file.
Is there a better pattern here for breaking these declarations up and adding them through multiple files? I didn't see an alternative example illustrated in the Writing Benchmarks article, and I'm feeling like I'm missing something obvious.