Documentation
¶
Overview ¶
package: tests/performance / integration type: tool job: the reusable performance-matrix harness — generate a deterministic size-N archive into each backend and time the chapters (write / verify / random access), reporting per-step latency distributions limits: decoupled from the testing package so both the _test.go entrypoint and cmd/test can drive it; timing only — the backend rows come from tests/backends and correctness belongs to tests/matrix
package: tests/performance / integration type: test job: metered — a ranke.Universe decorator that records a latency sample per operation and reports exact distributions (avg/median/p90/p99/min/max), rolled up by read/write and broken down by operation limits: measures at the Universe interface, so it counts operations, not raw backend round-trips or write byte-sizes (those need adapter-internal instrumentation). Samples are kept raw and percentiles computed by sorting: exact, no dependency, fine at test scale (~50k samples at size 2000).
package: tests/performance / integration type: tool job: summarise the generated archive (totals, per-type histograms, content/shape stats) and print it once before the matrix — so the scale of a --size N run is legible (N is a scale knob, not a node count) limits: read-only over the reference (mem) graph; the matrix run + per-backend timing live in harness.go
package: tests/performance / integration type: test job: time the shared RQL corpus' timed subset on a backend — each query run repeatedly for a per-query latency distribution, with an optional per-query execution report limits: timing only; the queries come from tests/rql and whether a backend's ANSWERS are right is the conformance matrix's question (-> tests/matrix)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Size int // target claim count (SpecForNodes); a dimension, not exact
Seed int64 // generator seed — fixes every id
Access int // chapter-3 random accesses
Backends []string // backend names to run; empty = all
Progress bool // show an in-place per-chapter progress line (interactive CLI; off under go test)
QueryReps int // times each RQL query is timed in chapter 4; 0 = 10
Native bool // connect neo4j/redis/s3/azure to a host-native instance (localhost) instead of spawning podman pods
Step string // run only this step (e.g. "2-verify", "3.1", "4.5"); "" = all. setup+tag always run.
Report bool // print each query's full execution report in the queries section
}
Config parameterises a matrix run — the knobs cmd/test exposes as flags.