Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
bench_hashlife_breeder.cc File Reference

Perf-gate anchor: Hashlife advanced 2^20 generations. More...

#include <cstddef>
#include <cstdint>
#include <random>
#include <benchmarks/ca/bench_support.H>
#include <tpl_ca_hashlife.H>
Include dependency graph for bench_hashlife_breeder.cc:

Go to the source code of this file.

Functions

int main ()
 

Detailed Description

Perf-gate anchor: Hashlife advanced 2^20 generations.

The roadmap calls for a quadratically growing "breeder" so that Hashlife's node table keeps expanding and cannot fully memoise the run, which is what makes the wall time large and stable enough to gate on. A periodic emitter such as a glider gun would compress almost perfectly and collapse to a sub-millisecond, jitter-dominated measurement.

To get the same effect with a pattern that is guaranteed valid and fully deterministic (no fragile hand-typed RLE), this anchor seeds a fixed-seed chaotic soup. Its long transient forces Hashlife to canonicalise a large, ever-changing set of nodes while a single exponential advance(20) jumps 2^20 generations, exercising the engine the way a true breeder would.

Definition in file bench_hashlife_breeder.cc.

Function Documentation

◆ main()