43 Grid frame({side, side}, Cell{1.0, 0.0});
45 const ca_size_t begin = side / 2 - patch / 2;
47 for (
ca_size_t c = begin; c < begin + patch; ++c)
48 frame.set({static_cast<ca_index_t>(r), static_cast<ca_index_t>(c)}, Cell{0.5, 0.25});
57 constexpr std::size_t
steps = 1'000;
58 const Grid
seed = make_seed(side);
59 const double processed_cells
60 =
static_cast<double>(side) *
static_cast<double>(side) *
static_cast<double>(
steps);
Shared harness for the cellular-automata performance-gate anchors.
Gray-Scott reaction-diffusion rule.
Lattice that adds boundary-aware access on top of a storage.
Moore (Chebyshev) neighborhood of radius R in N dimensions.
Synchronous double-buffered engine.
std::size_t resolve_repeats(const std::size_t fallback)
Resolve the number of timed repetitions for one anchor.
void emit_json(const Bench_Result &result, std::ostream &out=std::cout)
Print one benchmark result as a single structured JSON object.
Bench_Result measure(std::string name, const double processed_cells, std::size_t repeats, Work &&work)
Time a kernel with one warmup pass plus a median of timed passes.
std::size_t ca_size_t
Unsigned size component used for extents and counts.
Outcome of one measured anchor benchmark.
Zero-gradient (Neumann) boundary.
Two-field state for reaction-diffusion cellular automata.
Continuous and memory-bearing CA rules (Phase 9).
Synchronous double-buffered engine for cellular automata.
Cellular automata lattice with pluggable boundary policies.
Neighborhoods catalogue for Aleph::CA.
Dense, contiguous storage for cellular automata cells (1D/2D/3D).