Skip to content

bench(pk-default): add diagnostic config variants and correct the P3 analysis - #386

Merged
MPCoreDeveloper merged 1 commit into
masterfrom
fix/pk-default-analyse
Sep 4, 2026
Merged

bench(pk-default): add diagnostic config variants and correct the P3 analysis#386
MPCoreDeveloper merged 1 commit into
masterfrom
fix/pk-default-analyse

Conversation

@MPCoreDeveloper

Copy link
Copy Markdown
Owner

Samenvatting

P3-vervolg: FullSync-hypothese gefalsificeerd + diagnostische variant-harness.

In plaats van blind een “FullSync commit-flush optimalisatie” te implementeren (die nergens op
bleek te slaan), heb ik eerst geïsoleerd met median/single runs via nieuwe
SHARPCOREDB_PK_DEFAULT_VARIANT-configs:

variant UPDATE conclusie
pure default ~84K (median) referentie
async (WalDurabilityMode) ~74K (single) FullSync-hypothese ontkracht — de mode wordt alleen door GroupCommitWAL gehonoreerd (default uit)
bufferedio / novalidate ~74-76K binnen ruis
tuned (zónder NoEncryptMode) ~109K (median) knob-set alleen verklaart de gap niet
plain (= tuned + NoEncryptMode=true) ~145K (median) NoEncryptMode ~1.3x effect

Machine-drift is groot (SQLite zelf varieerde 275-315K in hetzelfde venster); deltas <~1.3x zijn
buiten een interleaved A/B niet toewijsbaar.

Actie: docs/benchmarks/default-config-pk.md gecorrigeerd (de eerdere “FullSync domineert”-
claim stond er fout in) + harness-varianten toegevoegd als meetinstrument. Volgende stap is een
same-window interleaved A/B mode; pas daarna een optimalisatie op een gemeten knob.

…analysis

Single-knob isolation (SHARPCOREDB_PK_DEFAULT_VARIANT=async|bufferedio|novalidate|
noadaptive|hsinsert|plain|tuned) shows the earlier FullSync-dominance claim was
wrong: WalDurabilityMode is only honored by GroupCommitWAL (off by default) and
the async variant measures the same as default. NoEncryptMode moves default
UPDATE ~1.3x (plain ~145K vs tuned ~109K median) and machine drift spans
275-315K on SQLite itself across the same window.

docs/benchmarks/default-config-pk.md corrected: no blind 'FullSync commit-flush
optimization'; the next step is a same-window interleaved A/B harness mode so
default-vs-tuned deltas are attributable before any code change.
@sonarqubecloud

sonarqubecloud Bot commented Sep 4, 2026

Copy link
Copy Markdown

@MPCoreDeveloper
MPCoreDeveloper merged commit 9549fb5 into master Sep 4, 2026
17 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant