performance

package
v0.35.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2026 License: Apache-2.0 Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func RunMatrix

func RunMatrix(cfg Config, w io.Writer, onResult func(backend string, verified int) error) error

RunMatrix runs the chapters for each selected backend and writes the report to w. ErrUnavailable is reported and skipped; onResult fires per completed backend.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL