Skip to content

Performance benchmarks

Performance characteristics of the Native Content Relationships Integrity Engine at scale. Benchmarks use deterministic test datasets and SQL-native validation.

Test environment

  • Dataset size: 100,000 – 1,000,000 relationship rows
  • Storage engine: InnoDB
  • Indexing: Composite covering index (type_lookup)
  • WordPress: 6.x · PHP: 7.4+
  • Object cache: Disabled (baseline)
  • MySQL buffer pool: Warmed before final run

Latency metrics

Operation100k rows1.0M rows
Point lookup (mean)0.49 ms1.00 ms
Point lookup (P95)0.85 ms2.73 ms
Covering index mean0.22 ms0.61 ms
Covering index P951.25 ms3.42 ms
Full graph scan~7.2 s~64.2 s

Variation depends on buffer pool state and cache warm-up.

Resource efficiency

Memory

The Integrity Engine uses chunked processing with bounded iteration:

  • Peak memory delta (1.0M rows): ~2.21 MB
  • Max observed: < 5 MB
  • Scaling: Independent of dataset size

Suitable for shared hosting and restricted environments.

Database strategy

Covering index:

KEY type_lookup (type, from_id, to_id)

  • Index-only lookups for common queries
  • Avoids full table scans during integrity audits
  • Query time growth O(log n)

Under typical workloads, query latency stays sub-2ms at 1M rows.

Scaling

MetricComplexity
Point lookupsO(log n)
Constraint checksO(log n)
Integrity scanO(n) (chunked, bounded memory)

At 10M rows (projected):

  • Point lookups remain index-bound
  • Full graph scan ~10–12 minutes (linear)
  • Memory < 5 MB

Methodology

Benchmarks run via the benchmarks/performance-report.php utility:

  1. Deterministic relationship graph generation
  2. Buffer pool warming before measurement
  3. Mean latency over multiple iterations
  4. Peak memory via memory_get_peak_usage()

TIP

For high-availability setups, monitor P95 query latency during full integrity scans.

Schema stable from 1.x onward. Backward compatibility guaranteed.