Skip to content

Commit 6d64256

Browse files
author
MPCoreDeveloper
committed
bench: keep legacy PK arm truly variable-length (AutoFixedWidthRecords opt-out)
DatabaseConfig.AutoFixedWidthRecords (default true, landed in perf/fixedwidth-default) makes new PK tables fixed-width; the --pk legacy arm now opts out so the comparison keeps measuring the legacy layout against the fixed-width arm.
1 parent d88138c commit 6d64256

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • tests/benchmarks/SharpCoreDB.Benchmarks.Comparative

‎tests/benchmarks/SharpCoreDB.Benchmarks.Comparative/Program.cs‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,10 @@ static DatabaseConfig BuildConfig(SharpCoreDB.Interfaces.StorageEngineType engin
353353
{
354354
NoEncryptMode = true,
355355
StorageEngineType = engineType,
356+
// The fair PK comparison intentionally isolates the record-layout variable: the legacy
357+
// arm opts out of the AutoFixedWidthRecords default so it measures true variable-length
358+
// records; the fixed-width arm forces FixedWidthRecordLayout.
359+
AutoFixedWidthRecords = !fixedWidth,
356360
FixedWidthRecordLayout = fixedWidth,
357361
UseGroupCommitWal = false,
358362
EnableAdaptiveWalBatching = false,

0 commit comments

Comments
 (0)