diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index 3fea793e..92f5b3e9 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -7,7 +7,7 @@ "commands": [ "dotnet-ef" ], - "rollForward": false + "rollForward": true } } } diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 2ad29731..783cbcff 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -77,7 +77,7 @@ body: attributes: label: Environment description: OS + .NET version. - placeholder: "Windows 11, .NET 10.0.x" + placeholder: "Windows 11, .NET 11.0.x" - type: checkboxes id: checks diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eb463b4a..cedc39fa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -171,6 +171,7 @@ jobs: -PreviousRef 2f141433298bcd3137e2bcaa2930c796c4222092 ` -CandidateRef $env:CANDIDATE_REF ` -OutputPath $env:COMPATIBILITY_OUTPUT ` + -UseHarnessSdk ` -BuildOnly - name: Upload compatibility evidence @@ -275,7 +276,7 @@ jobs: run: | $executableName = if ($IsWindows) { 'CSharpDB.Native.ArchiveSmoke.exe' } else { 'CSharpDB.Native.ArchiveSmoke' } $executable = Join-Path 'artifacts/native-archive-smoke/${{ matrix.rid }}' $executableName - $library = [IO.Path]::GetFullPath('src/CSharpDB.Native/bin/Release/net10.0/${{ matrix.rid }}/publish/${{ matrix.lib }}') + $library = [IO.Path]::GetFullPath('src/CSharpDB.Native/bin/Release/net11.0/${{ matrix.rid }}/publish/${{ matrix.lib }}') if (-not (Test-Path -LiteralPath $executable -PathType Leaf)) { throw "Archive smoke executable missing: $executable" } if (-not (Test-Path -LiteralPath $library -PathType Leaf)) { throw "Native library missing: $library" } & $executable $library @@ -304,11 +305,11 @@ jobs: - name: Verify exported symbols (Linux) if: runner.os == 'Linux' - run: nm -D src/CSharpDB.Native/bin/Release/net10.0/${{ matrix.rid }}/publish/${{ matrix.lib }} | grep -c csharpdb_ + run: nm -D src/CSharpDB.Native/bin/Release/net11.0/${{ matrix.rid }}/publish/${{ matrix.lib }} | grep -c csharpdb_ - name: Verify exported symbols (macOS) if: runner.os == 'macOS' - run: nm -gU src/CSharpDB.Native/bin/Release/net10.0/${{ matrix.rid }}/publish/${{ matrix.lib }} | grep -c csharpdb_ + run: nm -gU src/CSharpDB.Native/bin/Release/net11.0/${{ matrix.rid }}/publish/${{ matrix.lib }} | grep -c csharpdb_ - name: Verify exported symbols (Windows) if: runner.os == 'Windows' @@ -325,14 +326,14 @@ jobs: throw "Could not locate dumpbin.exe from the installed Visual Studio toolchain." } - & $dumpbin /exports src\CSharpDB.Native\bin\Release\net10.0\${{ matrix.rid }}\publish\${{ matrix.lib }} | + & $dumpbin /exports src\CSharpDB.Native\bin\Release\net11.0\${{ matrix.rid }}\publish\${{ matrix.lib }} | Select-String "csharpdb_" - name: Upload native library uses: actions/upload-artifact@v7 with: name: native-${{ matrix.rid }} - path: src/CSharpDB.Native/bin/Release/net10.0/${{ matrix.rid }}/publish/${{ matrix.lib }} + path: src/CSharpDB.Native/bin/Release/net11.0/${{ matrix.rid }}/publish/${{ matrix.lib }} if-no-files-found: error - name: Upload C header (once) diff --git a/.github/workflows/perf-guardrails.yml b/.github/workflows/perf-guardrails.yml index 985884e8..bb89601b 100644 --- a/.github/workflows/perf-guardrails.yml +++ b/.github/workflows/perf-guardrails.yml @@ -102,6 +102,7 @@ jobs: -BaseRoot .tmp/perf-guardrails/base ` -HeadRoot .tmp/perf-guardrails/head ` -OutputPath .tmp/perf-guardrails/evidence ` + -UseHarnessSdk ` -Configuration Release -Mode $mode -NoFailOnRegression:$reportOnly ` -MicroArguments @('--warmupCount', '2', '--iterationCount', '3', '--iterationTime', '100', '--buildTimeout', '600') diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4f4d0d87..73105f5f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -359,11 +359,11 @@ jobs: - name: Verify exported symbols (Linux) if: runner.os == 'Linux' - run: nm -D src/CSharpDB.Native/bin/Release/net10.0/${{ matrix.rid }}/publish/${{ matrix.lib }} | grep -c csharpdb_ + run: nm -D src/CSharpDB.Native/bin/Release/net11.0/${{ matrix.rid }}/publish/${{ matrix.lib }} | grep -c csharpdb_ - name: Verify exported symbols (macOS) if: runner.os == 'macOS' - run: nm -gU src/CSharpDB.Native/bin/Release/net10.0/${{ matrix.rid }}/publish/${{ matrix.lib }} | grep -c csharpdb_ + run: nm -gU src/CSharpDB.Native/bin/Release/net11.0/${{ matrix.rid }}/publish/${{ matrix.lib }} | grep -c csharpdb_ - name: Verify exported symbols (Windows) if: runner.os == 'Windows' @@ -380,14 +380,14 @@ jobs: throw "Could not locate dumpbin.exe from the installed Visual Studio toolchain." } - & $dumpbin /exports src\CSharpDB.Native\bin\Release\net10.0\${{ matrix.rid }}\publish\${{ matrix.lib }} | + & $dumpbin /exports src\CSharpDB.Native\bin\Release\net11.0\${{ matrix.rid }}\publish\${{ matrix.lib }} | Select-String "csharpdb_" - name: Upload native library uses: actions/upload-artifact@v7 with: name: native-${{ matrix.rid }} - path: src/CSharpDB.Native/bin/Release/net10.0/${{ matrix.rid }}/publish/${{ matrix.lib }} + path: src/CSharpDB.Native/bin/Release/net11.0/${{ matrix.rid }}/publish/${{ matrix.lib }} if-no-files-found: error - name: Upload C header (once) @@ -581,7 +581,7 @@ jobs: Exe - net10.0 + net11.0 enable enable diff --git a/.github/workflows/sql-release-qualification.yml b/.github/workflows/sql-release-qualification.yml index 585ac971..69affe73 100644 --- a/.github/workflows/sql-release-qualification.yml +++ b/.github/workflows/sql-release-qualification.yml @@ -129,6 +129,7 @@ jobs: -PreviousRef $env:PREVIOUS_RELEASE_REF ` -CandidateRef $env:CANDIDATE_REF ` -OutputPath $env:PERFORMANCE_OUTPUT ` + -UseHarnessSdk ` -QualificationPass 1 ` -Paired ` -SuiteName master-table-hosted-stable ` diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 0f403702..47040fa7 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -16,7 +16,7 @@ Thanks for your interest in contributing. ## Development Setup -Prerequisite: [.NET 10 SDK](https://dotnet.microsoft.com/download/dotnet/10.0) +Prerequisite: [.NET 11 SDK](https://dotnet.microsoft.com/download/dotnet/11.0) ```bash dotnet --version @@ -48,7 +48,7 @@ The `CSharpDB.Native` project produces a standalone C-compatible shared library ### Prerequisites -In addition to the .NET 10 SDK, you need a native linker: +In addition to the .NET 11 SDK, you need a native linker: | Platform | Requirement | |----------|-------------| @@ -69,7 +69,7 @@ dotnet publish src/CSharpDB.Native -c Release -r linux-x64 dotnet publish src/CSharpDB.Native -c Release -r osx-arm64 ``` -Output goes to `src/CSharpDB.Native/bin/Release/net10.0//publish/`: +Output goes to `src/CSharpDB.Native/bin/Release/net11.0//publish/`: - Windows: `CSharpDB.Native.dll` - Linux: `CSharpDB.Native.so` - macOS: `CSharpDB.Native.dylib` @@ -90,13 +90,13 @@ After publishing, verify the library exports the expected C symbols: ```bash # Linux -nm -D src/CSharpDB.Native/bin/Release/net10.0/linux-x64/publish/CSharpDB.Native.so | grep csharpdb_ +nm -D src/CSharpDB.Native/bin/Release/net11.0/linux-x64/publish/CSharpDB.Native.so | grep csharpdb_ # macOS -nm -gU src/CSharpDB.Native/bin/Release/net10.0/osx-arm64/publish/CSharpDB.Native.dylib | grep csharpdb_ +nm -gU src/CSharpDB.Native/bin/Release/net11.0/osx-arm64/publish/CSharpDB.Native.dylib | grep csharpdb_ # Windows (Developer Command Prompt or PowerShell) -dumpbin /exports src\CSharpDB.Native\bin\Release\net10.0\win-x64\publish\CSharpDB.Native.dll | Select-String "csharpdb_" +dumpbin /exports src\CSharpDB.Native\bin\Release\net11.0\win-x64\publish\CSharpDB.Native.dll | Select-String "csharpdb_" ``` You should see 20 exported functions prefixed with `csharpdb_`. diff --git a/README.md b/README.md index bf706cb4..ba6be0bd 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ NuGet downloads Perf Guardrails GitHub stars - .NET 10 + .NET 11 Platform: Windows, Linux, macOS License: MIT Release @@ -167,7 +167,7 @@ remains outside this slice, and INTEGER-tag values must be exactly representable within `±2^53`. The separate [`csharpdb-ef` migration analyzer](src/CSharpDB.EntityFrameworkCore.Tools/README.md) -can inspect a restored `net10.0` project's compiled migration chain through the +can inspect a restored `net11.0` project's compiled migration chain through the provider's real design-time services and SQL generator without adding EF Core design dependencies to the base CLI. Generation-only analysis remains the default. Its explicit `--scratch` tier applies every supported migration prefix diff --git a/clients/node/README.md b/clients/node/README.md index 5401fed3..5fb1590b 100644 --- a/clients/node/README.md +++ b/clients/node/README.md @@ -4,7 +4,7 @@ TypeScript/JavaScript client for [CSharpDB](https://github.com/MaxAkbar/CSharpDB ## Prerequisites -1. **Publish the native library** (requires .NET 10 SDK + C++ toolchain): +1. **Publish the native library** (requires .NET 11 SDK + C++ toolchain): ```bash # Windows diff --git a/clients/node/examples/basic.mjs b/clients/node/examples/basic.mjs index dbd6437d..2be74151 100644 --- a/clients/node/examples/basic.mjs +++ b/clients/node/examples/basic.mjs @@ -7,7 +7,7 @@ * * 2. Copy the library to ./native/: * mkdir -p native - * cp src/CSharpDB.Native/bin/Release/net10.0/win-x64/publish/CSharpDB.Native.dll native/ + * cp src/CSharpDB.Native/bin/Release/net11.0/win-x64/publish/CSharpDB.Native.dll native/ * * 3. npm install && npm run build && node examples/basic.mjs */ diff --git a/deploy/migration-tool/README.md b/deploy/migration-tool/README.md index 934a9749..59c94003 100644 --- a/deploy/migration-tool/README.md +++ b/deploy/migration-tool/README.md @@ -22,11 +22,11 @@ Access adapter. ## Runtime requirement This is a framework-dependent release, not a self-contained application. -Install the Microsoft .NET 10 runtime for this archive's operating system and +Install the Microsoft .NET 11 runtime for this archive's operating system and architecture before running the CLI: ```text -Microsoft.NETCore.App 10.x +Microsoft.NETCore.App 11.x ``` Packaging a runtime-specific app host does not establish runtime, diff --git a/deploy/migration-tool/posix/install-csharpdb-migration-tool.sh b/deploy/migration-tool/posix/install-csharpdb-migration-tool.sh index abe51885..5fd56755 100644 --- a/deploy/migration-tool/posix/install-csharpdb-migration-tool.sh +++ b/deploy/migration-tool/posix/install-csharpdb-migration-tool.sh @@ -9,7 +9,7 @@ Usage: --install-dir [--source-dir ] [--force] Copies an extracted, framework-dependent CSharpDB migration CLI release to a -caller-selected directory. The Microsoft .NET 10 runtime must already be +caller-selected directory. The Microsoft .NET 11 runtime must already be installed. The script does not require root, create a service, or change PATH. The destination must be absent or empty. --force permits colliding files in a @@ -148,10 +148,10 @@ if [ -e "$INSTALL_DIR" ] || [ -L "$INSTALL_DIR" ]; then fi command -v dotnet >/dev/null 2>&1 || - fail 'The framework-dependent migration CLI requires the Microsoft .NET 10 runtime.' + fail 'The framework-dependent migration CLI requires the Microsoft .NET 11 runtime.' dotnet --list-runtimes | - grep -Eq '^Microsoft\.NETCore\.App 10\.' || - fail 'Install the Microsoft .NET 10 runtime before installing the migration CLI.' + grep -Eq '^Microsoft\.NETCore\.App 11\.' || + fail 'Install the Microsoft .NET 11 runtime before installing the migration CLI.' mkdir -p -- "$INSTALL_DIR" # The source and destination trees are link-free, so cp cannot redirect a diff --git a/deploy/migration-tool/windows/install-csharpdb-migration-tool.ps1 b/deploy/migration-tool/windows/install-csharpdb-migration-tool.ps1 index 59cc641a..d7b30f76 100644 --- a/deploy/migration-tool/windows/install-csharpdb-migration-tool.ps1 +++ b/deploy/migration-tool/windows/install-csharpdb-migration-tool.ps1 @@ -10,7 +10,7 @@ requesting elevation, or changing PATH. The destination must be absent or empty unless -Force is supplied. -Force overwrites colliding files but does not delete unrelated destination files. -The .NET 10 runtime must already be installed. +The .NET 11 runtime must already be installed. .PARAMETER InstallDirectory Existing empty directory or one new leaf directory beneath an existing, @@ -276,7 +276,7 @@ $dotnet = Get-Command ` -CommandType Application ` -ErrorAction SilentlyContinue if ($null -eq $dotnet) { - throw 'The framework-dependent migration CLI requires the .NET 10 runtime, but dotnet was not found.' + throw 'The framework-dependent migration CLI requires the .NET 11 runtime, but dotnet was not found.' } $installedRuntimes = @( & $dotnet.Source --list-runtimes 2>$null) @@ -284,10 +284,10 @@ if ($LASTEXITCODE -ne 0 -or -not ( $installedRuntimes | Where-Object { - $_ -match '^Microsoft\.NETCore\.App 10\.' + $_ -match '^Microsoft\.NETCore\.App 11\.' })) { - throw 'Install the Microsoft .NET 10 runtime before installing the migration CLI.' + throw 'Install the Microsoft .NET 11 runtime before installing the migration CLI.' } if (-not $PSCmdlet.ShouldProcess( diff --git a/docs/design/benchmarks/dotnet11-2026-11-14/all-results.csv b/docs/design/benchmarks/dotnet11-2026-11-14/all-results.csv new file mode 100644 index 00000000..6e36fb57 --- /dev/null +++ b/docs/design/benchmarks/dotnet11-2026-11-14/all-results.csv @@ -0,0 +1,43 @@ +"Pair","Target","Name","Rate","Bytes","Cpu","P95" +"1","net10.0","Parse SELECT","468927.93552240886","5968.159845434694","2.1241933729698377","186.3" +"1","net10.0","Cached PK lookup (10K rows)","1760136.117989791","631.9201942463261","0.5636992590772447","1" +"1","net10.0","Full scan materialized (10K rows)","658.1569197046559","2889040.628820961","1492.1919498765901","2536.6" +"1","net10.0","ORDER BY materialized (10K rows)","317.3733417242895","2898528.6805829066","3138.538794801103","4423.5" +"1","net10.0","In-memory single INSERT","269246.55479624774","1938.6918282207678","3.706811224276616","4.4" +"1","net10.0","Durable single INSERT","279.3676142186991","3393.675167785235","223.71364653243847","3810.4" +"1","net10.0","Durable prepared batch (100 rows)","26532.56129537188","131.0308054639661","3.6063353744700897","3934.1" +"1","net11.0","Parse SELECT","482277.4077589333","5968.15983246247","2.069434508998922","181.2" +"1","net11.0","Cached PK lookup (10K rows)","1850495.1018688113","631.9202056800879","0.5382849900779934","0.9" +"1","net11.0","Full scan materialized (10K rows)","698.1566041002866","2889040.5929108486","1423.7602935911207","2319" +"1","net11.0","ORDER BY materialized (10K rows)","319.9408869218801","2898521.29375","3100.5859375","4364" +"1","net11.0","In-memory single INSERT","272642.0841036874","1879.4795595141434","3.646320703376267","4.5" +"1","net11.0","Durable single INSERT","293.2905323266899","3333.1878994461013","372.8163613123136","3606.2" +"1","net11.0","Durable prepared batch (100 rows)","27702.337397525716","130.41937753721245","3.1010374379792514","3778.8" +"2","net10.0","Parse SELECT","457287.8488440943","5968.159870193485","2.186767432909975","188.6" +"2","net10.0","Cached PK lookup (10K rows)","1765606.3087897634","631.9202138132289","0.5641652432298224","1" +"2","net10.0","Full scan materialized (10K rows)","668.6986940926957","2889040.6190654207","1489.4859813084113","2489.2" +"2","net10.0","ORDER BY materialized (10K rows)","321.5692720451546","2898528.8021764476","3109.2110376991836","4274.6" +"2","net10.0","In-memory single INSERT","273753.77918617724","1934.9692346820661","3.65291632858165","4.4" +"2","net10.0","Durable single INSERT","283.80456325495715","3387.0788199031263","275.2091589608102","3771.4" +"2","net10.0","Durable prepared batch (100 rows)","26762.133358772986","130.9431854273704","4.670714619336758","3902.8" +"2","net11.0","Parse SELECT","440219.69134977093","5968.159836810351","2.262697513084248","196.3" +"2","net11.0","Cached PK lookup (10K rows)","1892737.4964525008","631.9201717247826","0.5273032722505223","0.9" +"2","net11.0","Full scan materialized (10K rows)","686.0491315416656","2889040.6033885954","1454.6137730005466","2330.3" +"2","net11.0","ORDER BY materialized (10K rows)","322.43467473489875","2898521.041860465","3100.7751937984494","4314.7" +"2","net11.0","In-memory single INSERT","283395.31832093635","1871.4648465946207","3.514855350056436","4.2" +"2","net11.0","Durable single INSERT","273.023950423149","3334.3963386727687","471.96796338672766","4265.5" +"2","net11.0","Durable prepared batch (100 rows)","27213.37716661214","130.51955922865014","5.021808999081727","3837.1" +"3","net10.0","Parse SELECT","449476.0389924064","5968.159846934235","2.2117571972056598","191" +"3","net10.0","Cached PK lookup (10K rows)","1716290.1641854919","631.9201737584887","0.5621681705643903","1" +"3","net10.0","Full scan materialized (10K rows)","657.158507106848","2889040.629897299","1482.859452263218","2513" +"3","net10.0","ORDER BY materialized (10K rows)","302.644229624799","2898528.7134599504","3303.0553261767136","4556.9" +"3","net10.0","In-memory single INSERT","268367.5042346231","1939.302913307818","3.7043984906897767","4.5" +"3","net10.0","Durable single INSERT","288.7064197659363","3392.737662337662","223.21428571428572","3658.7" +"3","net10.0","Durable prepared batch (100 rows)","28146.09543291107","131.0459325044405","4.093583481349911","3708.1" +"3","net11.0","Parse SELECT","487557.13560182834","5968.159881860694","2.0510296168676674","180.5" +"3","net11.0","Cached PK lookup (10K rows)","1885908.4057045798","631.9201896592544","0.5292127772900965","0.9" +"3","net11.0","Full scan materialized (10K rows)","663.3486982241154","2889040.624081402","1504.4987752025627","2472.4" +"3","net11.0","ORDER BY materialized (10K rows)","319.2957348338275","2898521.033268102","3039.3835616438355","4206.2" +"3","net11.0","In-memory single INSERT","277568.52447557385","1875.7402301231677","3.602711040057643","4.3" +"3","net11.0","Durable single INSERT","272.0387909071615","3333.016077170418","258.3830960036748","5044.4" +"3","net11.0","Durable prepared batch (100 rows)","26813.55563928371","130.19157502329915","5.315121155638397","4017.7" diff --git a/docs/design/benchmarks/dotnet11-2026-11-14/analyze-focused.py.txt b/docs/design/benchmarks/dotnet11-2026-11-14/analyze-focused.py.txt new file mode 100644 index 00000000..bf0fcbe3 --- /dev/null +++ b/docs/design/benchmarks/dotnet11-2026-11-14/analyze-focused.py.txt @@ -0,0 +1,39 @@ +import csv +import json +import statistics +from pathlib import Path + +root = Path(__file__).resolve().parent +runs = {(pair, tfm): json.loads((root / 'focused' / f'pair-{pair}-{tfm}.json').read_text(encoding='utf-8-sig')) + for pair in range(1, 4) for tfm in ('net10.0', 'net11.0')} +assert all(r['CorrectnessPassed'] and len(r['Results']) == 1 for r in runs.values()) +assert all(all(x['RetainedSamples'] >= 100 and x['ElapsedSeconds'] >= 20 for x in r['Results']) for r in runs.values()) +summary = [] +for index, first in enumerate(runs[1, 'net10.0']['Results']): + old = [runs[p, 'net10.0']['Results'][index] for p in range(1, 4)] + new = [runs[p, 'net11.0']['Results'][index] for p in range(1, 4)] + assert all(x['Name'] == first['Name'] for x in old + new) + a = [x['UnitsPerSecond'] for x in old] + b = [x['UnitsPerSecond'] for x in new] + paired = [(y / x - 1) * 100 for x, y in zip(a, b)] + def median(items, key): return statistics.median(x[key] for x in items) + record = dict(Name=first['Name'], Net10MedianRate=statistics.median(a), Net11MedianRate=statistics.median(b), + MedianRateChangePct=(statistics.median(b) / statistics.median(a) - 1) * 100, + PairedChangesPct=paired, Net10RsdPct=statistics.stdev(a) / statistics.mean(a) * 100, + Net11RsdPct=statistics.stdev(b) / statistics.mean(b) * 100, + Net10Rates=a, Net11Rates=b, Net10Bytes=median(old, 'BytesPerUnit'), Net11Bytes=median(new, 'BytesPerUnit'), + AllocChangePct=(median(new, 'BytesPerUnit') / median(old, 'BytesPerUnit') - 1) * 100, + Net10CpuUs=median(old, 'CpuUsPerUnit'), Net11CpuUs=median(new, 'CpuUsPerUnit'), + Net10P95OperationUs=median(old, 'P95OperationUs'), Net11P95OperationUs=median(new, 'P95OperationUs')) + summary.append(record) +(root / 'focused-summary.json').write_text(json.dumps(summary, indent=2), encoding='utf-8') +with (root / 'focused-summary.csv').open('w', newline='', encoding='utf-8') as f: + writer = csv.DictWriter(f, fieldnames=summary[0].keys()) + writer.writeheader() + writer.writerows(summary) +for row in summary: + print(f"{row['Name']}: {row['Net10MedianRate']:,.1f} -> {row['Net11MedianRate']:,.1f} ({row['MedianRateChangePct']:+.2f}%), " + f"pairs={[round(x, 2) for x in row['PairedChangesPct']]}, RSD={row['Net10RsdPct']:.2f}/{row['Net11RsdPct']:.2f}%, " + f"bytes={row['Net10Bytes']:.1f}/{row['Net11Bytes']:.1f}, alloc={row['AllocChangePct']:+.2f}%, " + f"CPU us={row['Net10CpuUs']:.3f}/{row['Net11CpuUs']:.3f}") +print('Validated: six complete runs; 6 measurements; 100+ latency samples and 20+ measured seconds each.') diff --git a/docs/design/benchmarks/dotnet11-2026-11-14/analyze.py.txt b/docs/design/benchmarks/dotnet11-2026-11-14/analyze.py.txt new file mode 100644 index 00000000..50763744 --- /dev/null +++ b/docs/design/benchmarks/dotnet11-2026-11-14/analyze.py.txt @@ -0,0 +1,39 @@ +import csv +import json +import statistics +from pathlib import Path + +root = Path(__file__).resolve().parent +runs = {(pair, tfm): json.loads((root / 'measured' / f'pair-{pair}-{tfm}.json').read_text(encoding='utf-8-sig')) + for pair in range(1, 4) for tfm in ('net10.0', 'net11.0')} +assert all(r['CorrectnessPassed'] and len(r['Results']) == 7 for r in runs.values()) +assert all(all(x['RetainedSamples'] >= 100 and x['ElapsedSeconds'] >= 8 for x in r['Results']) for r in runs.values()) +summary = [] +for index, first in enumerate(runs[1, 'net10.0']['Results']): + old = [runs[p, 'net10.0']['Results'][index] for p in range(1, 4)] + new = [runs[p, 'net11.0']['Results'][index] for p in range(1, 4)] + assert all(x['Name'] == first['Name'] for x in old + new) + a = [x['UnitsPerSecond'] for x in old] + b = [x['UnitsPerSecond'] for x in new] + paired = [(y / x - 1) * 100 for x, y in zip(a, b)] + def median(items, key): return statistics.median(x[key] for x in items) + record = dict(Name=first['Name'], Net10MedianRate=statistics.median(a), Net11MedianRate=statistics.median(b), + MedianRateChangePct=(statistics.median(b) / statistics.median(a) - 1) * 100, + PairedChangesPct=paired, Net10RsdPct=statistics.stdev(a) / statistics.mean(a) * 100, + Net11RsdPct=statistics.stdev(b) / statistics.mean(b) * 100, + Net10Rates=a, Net11Rates=b, Net10Bytes=median(old, 'BytesPerUnit'), Net11Bytes=median(new, 'BytesPerUnit'), + AllocChangePct=(median(new, 'BytesPerUnit') / median(old, 'BytesPerUnit') - 1) * 100, + Net10CpuUs=median(old, 'CpuUsPerUnit'), Net11CpuUs=median(new, 'CpuUsPerUnit'), + Net10P95OperationUs=median(old, 'P95OperationUs'), Net11P95OperationUs=median(new, 'P95OperationUs')) + summary.append(record) +(root / 'summary.json').write_text(json.dumps(summary, indent=2), encoding='utf-8') +with (root / 'summary.csv').open('w', newline='', encoding='utf-8') as f: + writer = csv.DictWriter(f, fieldnames=summary[0].keys()) + writer.writeheader() + writer.writerows(summary) +for row in summary: + print(f"{row['Name']}: {row['Net10MedianRate']:,.1f} -> {row['Net11MedianRate']:,.1f} ({row['MedianRateChangePct']:+.2f}%), " + f"pairs={[round(x, 2) for x in row['PairedChangesPct']]}, RSD={row['Net10RsdPct']:.2f}/{row['Net11RsdPct']:.2f}%, " + f"bytes={row['Net10Bytes']:.1f}/{row['Net11Bytes']:.1f}, alloc={row['AllocChangePct']:+.2f}%, " + f"CPU us={row['Net10CpuUs']:.3f}/{row['Net11CpuUs']:.3f}") +print('Validated: six complete runs; 42 measurements; 100+ latency samples and 8+ measured seconds each.') diff --git a/docs/design/benchmarks/dotnet11-2026-11-14/base-commit.txt b/docs/design/benchmarks/dotnet11-2026-11-14/base-commit.txt new file mode 100644 index 00000000..420542b3 --- /dev/null +++ b/docs/design/benchmarks/dotnet11-2026-11-14/base-commit.txt @@ -0,0 +1 @@ +0f44dd8c959e831154ac9d687db98ee78bc78312 diff --git a/docs/design/benchmarks/dotnet11-2026-11-14/durable-harness-program.cs.txt b/docs/design/benchmarks/dotnet11-2026-11-14/durable-harness-program.cs.txt new file mode 100644 index 00000000..c8e325cb --- /dev/null +++ b/docs/design/benchmarks/dotnet11-2026-11-14/durable-harness-program.cs.txt @@ -0,0 +1,141 @@ +using System.Diagnostics; +using System.Reflection; +using System.Runtime.InteropServices; +using System.Security.Cryptography; +using System.Text.Json; +using CSharpDB.Benchmarks.Infrastructure; +using CSharpDB.Engine; +using CSharpDB.Primitives; +using CSharpDB.Sql; + +if (args.Length != 3) + throw new ArgumentException("Usage: output.json warmupSeconds measuredSeconds"); +string output = Path.GetFullPath(args[0]); +if (File.Exists(output)) throw new IOException("Evidence output must be new."); +double warmupSeconds = double.Parse(args[1], System.Globalization.CultureInfo.InvariantCulture); +double measuredSeconds = double.Parse(args[2], System.Globalization.CultureInfo.InvariantCulture); +BenchmarkProcessTuner.ConfigureIfRequested(true, 8); +Environment.SetEnvironmentVariable("CSHARPDB_BENCH_DURABILITY", "Durable"); +var rows = new List(); +var checks = new List(); +var started = DateTimeOffset.UtcNow; +long sink = 0; + +foreach (var workload in new[] { (Name: "In-memory single INSERT", Memory: true, Batch: 1), (Name: "Durable single INSERT", Memory: false, Batch: 1), (Name: "Durable prepared batch (100 rows)", Memory: false, Batch: 100) }) +{ + if (workload.Memory || workload.Batch != 1) continue; + string file = Path.Combine(Path.GetDirectoryName(output)!, $"{Path.GetFileNameWithoutExtension(output)}-{workload.Batch}-{workload.Memory}.db"); + Database db = workload.Memory ? await Database.OpenInMemoryAsync() : await Database.OpenAsync(file, BenchmarkDurability.Apply()); + try + { + await using (var created = await db.ExecuteAsync("CREATE TABLE bench (id INTEGER PRIMARY KEY, value INTEGER, text_col TEXT, category TEXT)")) { } + int nextId = 0; + InsertBatch? batch = workload.Batch == 100 ? db.PrepareInsertBatch("bench", 100) : null; + var values = new DbValue[4]; + values[2] = DbValue.FromText("runtime-comparison-50-character-payload-for-inserts!"); + values[3] = DbValue.FromText("Alpha"); + await Measure(workload.Name, async () => + { + if (batch is null) + { + int id = ++nextId; + await using var result = await db.ExecuteAsync($"INSERT INTO bench VALUES ({id}, {id * 10L}, 'runtime-comparison-50-character-payload-for-inserts!', 'Alpha')"); + if (result.RowsAffected != 1) throw new InvalidOperationException("Insert affected-row mismatch."); + } + else + { + batch.Clear(); + await db.BeginTransactionAsync(); + for (int i = 0; i < 100; i++) + { + int id = ++nextId; + values[0] = DbValue.FromInteger(id); + values[1] = DbValue.FromInteger(id * 10L); + batch.AddRow(values); + } + if (await batch.ExecuteAsync() != 100) throw new InvalidOperationException("Batch affected-row mismatch."); + await db.CommitAsync(); + } + }, unitsPerOperation: workload.Batch, sampleEvery: workload.Memory ? 8 : 1); + await Verify(db, nextId); + if (!workload.Memory) + { + await db.DisposeAsync(); + db = await Database.OpenAsync(file, BenchmarkDurability.Apply()); + await Verify(db, nextId); + } + checks.Add(new { workload.Name, ExpectedRows = nextId, ExpectedSum = checked((long)nextId * (nextId + 1) / 2 * 10), ReopenVerified = !workload.Memory }); + } + finally { await db.DisposeAsync(); } +} + +var assemblies = new[] { typeof(Database).Assembly, typeof(Parser).Assembly, typeof(DbValue).Assembly, Assembly.GetExecutingAssembly() } + .Select(assembly => new { Name = assembly.GetName().Name, Sha256 = Convert.ToHexString(SHA256.HashData(File.ReadAllBytes(assembly.Location))).ToLowerInvariant() }).ToArray(); +var report = new +{ + SchemaVersion = 1, StartedUtc = started, CompletedUtc = DateTimeOffset.UtcNow, + Runtime = RuntimeInformation.FrameworkDescription, RuntimeVersion = Environment.Version.ToString(), + Framework = AppContext.TargetFrameworkName, Architecture = RuntimeInformation.ProcessArchitecture.ToString(), + OS = RuntimeInformation.OSDescription, ProcessorCount = Environment.ProcessorCount, + WarmupSeconds = warmupSeconds, MeasuredSeconds = measuredSeconds, Durability = "Durable", + RuntimeAsyncOptIn = false, CorrectnessPassed = true, Sink = sink, Assemblies = assemblies, Results = rows, Checks = checks +}; +Directory.CreateDirectory(Path.GetDirectoryName(output)!); +await File.WriteAllTextAsync(output, JsonSerializer.Serialize(report, new JsonSerializerOptions { WriteIndented = true })); +Console.WriteLine($"Correctness and durable reopen checks passed. {output}"); + +async Task Measure(string name, Func operation, int unitsPerOperation = 1, int sampleEvery = 8) +{ + var warmup = Stopwatch.StartNew(); + while (warmup.Elapsed.TotalSeconds < warmupSeconds) await operation(); + double[] samples = new double[1_000_000]; + GC.Collect(); GC.WaitForPendingFinalizers(); GC.Collect(); + using var process = Process.GetCurrentProcess(); + long startAllocated = GC.GetTotalAllocatedBytes(precise: true); + int gen0 = GC.CollectionCount(0), gen1 = GC.CollectionCount(1), gen2 = GC.CollectionCount(2); + TimeSpan startCpu = process.TotalProcessorTime; + long began = Stopwatch.GetTimestamp(); + long operations = 0; + int retained = 0; + double durationTicks = measuredSeconds * Stopwatch.Frequency; + while (Stopwatch.GetTimestamp() - began < durationTicks) + { + if (operations % sampleEvery == 0) + { + long before = Stopwatch.GetTimestamp(); + await operation(); + long after = Stopwatch.GetTimestamp(); + if (retained == samples.Length) throw new InvalidOperationException("Latency evidence capacity exceeded."); + samples[retained++] = (after - before) * 1_000_000d / Stopwatch.Frequency; + } + else await operation(); + operations++; + } + long elapsedTicks = Stopwatch.GetTimestamp() - began; + double cpuMs = (process.TotalProcessorTime - startCpu).TotalMilliseconds; + long allocated = GC.GetTotalAllocatedBytes(precise: true) - startAllocated; + int collected0 = GC.CollectionCount(0) - gen0, collected1 = GC.CollectionCount(1) - gen1, collected2 = GC.CollectionCount(2) - gen2; + Array.Sort(samples, 0, retained); + if (operations <= 0 || retained < 100) throw new InvalidOperationException("Insufficient retained measurements."); + double elapsed = elapsedTicks / (double)Stopwatch.Frequency; + long units = operations * unitsPerOperation; + double Percentile(double p) => samples[Math.Clamp((int)Math.Ceiling(retained * p) - 1, 0, retained - 1)]; + rows.Add(new + { + Name = name, Operations = operations, Units = units, UnitsPerOperation = unitsPerOperation, + ElapsedSeconds = elapsed, OperationsPerSecond = operations / elapsed, UnitsPerSecond = units / elapsed, + MeanUsPerUnit = elapsed * 1_000_000 / units, P50OperationUs = Percentile(.5), P95OperationUs = Percentile(.95), P99OperationUs = Percentile(.99), + RetainedSamples = retained, SampleEvery = sampleEvery, AllocatedBytes = allocated, BytesPerUnit = allocated / (double)units, + CpuMs = cpuMs, CpuUsPerUnit = cpuMs * 1000 / units, Gen0 = collected0, Gen1 = collected1, Gen2 = collected2 + }); + Console.WriteLine($"{name}: {units / elapsed:N0} units/s; {elapsed * 1_000_000 / units:F3} us/unit; {allocated / (double)units:F0} B/unit; samples={retained}"); +} + +static async Task Verify(Database db, int expectedRows) +{ + await using var result = await db.ExecuteAsync("SELECT COUNT(*), SUM(value) FROM bench"); + var found = await result.ToListAsync(); + long expectedSum = checked((long)expectedRows * (expectedRows + 1) / 2 * 10); + if (found.Count != 1 || found[0][0].AsInteger != expectedRows || found[0][1].AsInteger != expectedSum) + throw new InvalidOperationException("Row count/checksum/reopen verification failed."); +} diff --git a/docs/design/benchmarks/dotnet11-2026-11-14/focused-manifest.json b/docs/design/benchmarks/dotnet11-2026-11-14/focused-manifest.json new file mode 100644 index 00000000..b2d40dd3 --- /dev/null +++ b/docs/design/benchmarks/dotnet11-2026-11-14/focused-manifest.json @@ -0,0 +1,128 @@ +{ + "Date": "2026-11-14", + "Sdk": "11.0.100", + "CPU": { + "Name": "11th Gen Intel(R) Core(TM) i9-11900K @ 3.50GHz", + "NumberOfCores": 8, + "NumberOfLogicalProcessors": 16 + }, + "OS": { + "Caption": "Microsoft Windows 11 Pro", + "Version": "10.0.26300", + "TotalVisibleMemorySize": 100464544, + "FreePhysicalMemory": 71416324 + }, + "WarmupSeconds": 4, + "MeasuredSeconds": 20, + "Pairs": 3, + "Order": [ + "net10.0", + "net11.0", + "net11.0", + "net10.0", + "net10.0", + "net11.0" + ], + "Switches": { + "DOTNET_gcServer": null, + "COMPlus_gcServer": null, + "DOTNET_ROLL_FORWARD": null, + "DOTNET_ReadyToRun": null, + "COMPlus_TieredPGO": null, + "COMPlus_TieredCompilation": null, + "DOTNET_TieredCompilation": null, + "DOTNET_GCHeapHardLimit": null, + "DOTNET_TieredPGO": null, + "COMPlus_ReadyToRun": null + }, + "Artifacts": [ + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\durable-runner\\bin\\Release\\net10.0\\CSharpDB.Benchmarks.deps.json", + "Sha256": "4a4296d6530681fe76fec8c5e4fe5309821fbd18ab151744c5a8c6cc809e5416" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\durable-runner\\bin\\Release\\net10.0\\CSharpDB.Benchmarks.dll", + "Sha256": "37a7a47cc4b5a606bb886fb7fe56d7f776083b7d8bceb70629820791ba0c7c3a" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\durable-runner\\bin\\Release\\net10.0\\CSharpDB.Benchmarks.runtimeconfig.json", + "Sha256": "c230a317a54dd960bcbeb5f347f52e18dc665a26f7efda2159fced9a5ac7e097" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\durable-runner\\bin\\Release\\net10.0\\CSharpDB.Engine.dll", + "Sha256": "fd512e73b141b50190a449627f9ff886b2140b2b18bee561d8ab0db6d0dd0536" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\durable-runner\\bin\\Release\\net10.0\\CSharpDB.Execution.dll", + "Sha256": "ba86fb62bc23a03b8efdc06ebad82f47cb7074866d84786cd892f3b4365277b9" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\durable-runner\\bin\\Release\\net10.0\\CSharpDB.ImportExport.dll", + "Sha256": "74e0f60e4fd741f5961d5bba710699de72079d834e99eb92944f9cf434365aa5" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\durable-runner\\bin\\Release\\net10.0\\CSharpDB.Observability.dll", + "Sha256": "f7084364caedfc1252bfa7125aa774761b1dd4dbeda5d725b56bfd3b84ce7658" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\durable-runner\\bin\\Release\\net10.0\\CSharpDB.Primitives.dll", + "Sha256": "1a608a276c65e4b34350899bdcb95c5b8724a477ffc087d99dc87f0e85a71fee" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\durable-runner\\bin\\Release\\net10.0\\CSharpDB.Sql.dll", + "Sha256": "4677dbf762f2db544e160f23c9388236d3547e1a2262f39cdcca94cff1acca9d" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\durable-runner\\bin\\Release\\net10.0\\CSharpDB.Storage.Diagnostics.dll", + "Sha256": "b9b667ad990673bb1b47ff2e8a750eae3341efe6e027a98cebfcb60b54eb5f0c" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\durable-runner\\bin\\Release\\net10.0\\CSharpDB.Storage.dll", + "Sha256": "2f140a6a07f8c9f527548e1ed3a778625de7b9076b491c946726e2db2cad0109" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\durable-runner\\bin\\Release\\net11.0\\CSharpDB.Benchmarks.deps.json", + "Sha256": "efd36b0fac37cc9fed451abdcd3cc142d9de421c5a59e9bb051bd0552821ce64" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\durable-runner\\bin\\Release\\net11.0\\CSharpDB.Benchmarks.dll", + "Sha256": "f7534082cb0dfb5b29df9a7955aaac9c18c609f71a10659b71fc18fb5aafd4dd" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\durable-runner\\bin\\Release\\net11.0\\CSharpDB.Benchmarks.runtimeconfig.json", + "Sha256": "7baaa10dc21f2a7cf009e76de09f1a2f706cdfb2139af15629791d7d2cb7fd4f" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\durable-runner\\bin\\Release\\net11.0\\CSharpDB.Engine.dll", + "Sha256": "506141fdf29ba9835f3966a9be1416b740ab9aad3d805e1c9a4183d299add310" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\durable-runner\\bin\\Release\\net11.0\\CSharpDB.Execution.dll", + "Sha256": "7d476a979a928907450805cd3108206479b5af672dcc678b44f7ca525900bf4f" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\durable-runner\\bin\\Release\\net11.0\\CSharpDB.ImportExport.dll", + "Sha256": "6691b7cd9cc5c08341076284a911bcbcf56d8801137ec34a70befa8f584c3370" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\durable-runner\\bin\\Release\\net11.0\\CSharpDB.Observability.dll", + "Sha256": "5597d443bf373b113e9d28787f685390007652aa2f13668fefc37c0686b26bfe" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\durable-runner\\bin\\Release\\net11.0\\CSharpDB.Primitives.dll", + "Sha256": "6745cb9abf8771eec302a7b78738c7434808dc1a3ae788d1fe2d77184a77c64b" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\durable-runner\\bin\\Release\\net11.0\\CSharpDB.Sql.dll", + "Sha256": "8226dc5014fcd4362311e9281a1de5c099a03c54d4dc7e902e94794235ecdcd8" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\durable-runner\\bin\\Release\\net11.0\\CSharpDB.Storage.Diagnostics.dll", + "Sha256": "21462004c55fa56d8947d3b81f485659f31acad6837a35cb3e0e976e6bc8527f" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\durable-runner\\bin\\Release\\net11.0\\CSharpDB.Storage.dll", + "Sha256": "228bf9bba17eec6de14c30acbd7b850f0577d1929caa30f3b164548d2067bbe5" + } + ] +} diff --git a/docs/design/benchmarks/dotnet11-2026-11-14/focused-summary.csv b/docs/design/benchmarks/dotnet11-2026-11-14/focused-summary.csv new file mode 100644 index 00000000..f9b0b675 --- /dev/null +++ b/docs/design/benchmarks/dotnet11-2026-11-14/focused-summary.csv @@ -0,0 +1,2 @@ +Name,Net10MedianRate,Net11MedianRate,MedianRateChangePct,PairedChangesPct,Net10RsdPct,Net11RsdPct,Net10Rates,Net11Rates,Net10Bytes,Net11Bytes,AllocChangePct,Net10CpuUs,Net11CpuUs,Net10P95OperationUs,Net11P95OperationUs +Durable single INSERT,283.6228587105357,290.8251199109916,2.539379665376873,"[0.22460980599565694, -1.254007351617492, 5.349346985279313]",2.445966899971098,2.1898972888687718,"[290.17336208536057, 283.6228587105357, 276.3178683766758]","[290.8251199109916, 280.06620721143787, 291.09906993847153]",3389.377049180328,3334.098248024734,-1.6309428061113018,275.42746342323284,254.95963586396428,3738.2,3621.1 diff --git a/docs/design/benchmarks/dotnet11-2026-11-14/focused-summary.json b/docs/design/benchmarks/dotnet11-2026-11-14/focused-summary.json new file mode 100644 index 00000000..3f4bcf34 --- /dev/null +++ b/docs/design/benchmarks/dotnet11-2026-11-14/focused-summary.json @@ -0,0 +1,32 @@ +[ + { + "Name": "Durable single INSERT", + "Net10MedianRate": 283.6228587105357, + "Net11MedianRate": 290.8251199109916, + "MedianRateChangePct": 2.539379665376873, + "PairedChangesPct": [ + 0.22460980599565694, + -1.254007351617492, + 5.349346985279313 + ], + "Net10RsdPct": 2.445966899971098, + "Net11RsdPct": 2.1898972888687718, + "Net10Rates": [ + 290.17336208536057, + 283.6228587105357, + 276.3178683766758 + ], + "Net11Rates": [ + 290.8251199109916, + 280.06620721143787, + 291.09906993847153 + ], + "Net10Bytes": 3389.377049180328, + "Net11Bytes": 3334.098248024734, + "AllocChangePct": -1.6309428061113018, + "Net10CpuUs": 275.42746342323284, + "Net11CpuUs": 254.95963586396428, + "Net10P95OperationUs": 3738.2, + "Net11P95OperationUs": 3621.1 + } +] \ No newline at end of file diff --git a/docs/design/benchmarks/dotnet11-2026-11-14/focused/pair-1-net10.0.json b/docs/design/benchmarks/dotnet11-2026-11-14/focused/pair-1-net10.0.json new file mode 100644 index 00000000..301269ba --- /dev/null +++ b/docs/design/benchmarks/dotnet11-2026-11-14/focused/pair-1-net10.0.json @@ -0,0 +1,67 @@ +{ + "SchemaVersion": 1, + "StartedUtc": "2026-11-14T08:59:52.5461133+00:00", + "CompletedUtc": "2026-11-14T09:00:16.8901043+00:00", + "Runtime": ".NET 10.0.15", + "RuntimeVersion": "10.0.15", + "Framework": ".NETCoreApp,Version=v10.0", + "Architecture": "X64", + "OS": "Microsoft Windows 10.0.26300", + "ProcessorCount": 16, + "WarmupSeconds": 4, + "MeasuredSeconds": 20, + "Durability": "Durable", + "RuntimeAsyncOptIn": false, + "CorrectnessPassed": true, + "Sink": 0, + "Assemblies": [ + { + "Name": "CSharpDB.Engine", + "Sha256": "fd512e73b141b50190a449627f9ff886b2140b2b18bee561d8ab0db6d0dd0536" + }, + { + "Name": "CSharpDB.Sql", + "Sha256": "4677dbf762f2db544e160f23c9388236d3547e1a2262f39cdcca94cff1acca9d" + }, + { + "Name": "CSharpDB.Primitives", + "Sha256": "1a608a276c65e4b34350899bdcb95c5b8724a477ffc087d99dc87f0e85a71fee" + }, + { + "Name": "CSharpDB.Benchmarks", + "Sha256": "37a7a47cc4b5a606bb886fb7fe56d7f776083b7d8bceb70629820791ba0c7c3a" + } + ], + "Results": [ + { + "Name": "Durable single INSERT", + "Operations": 5804, + "Units": 5804, + "UnitsPerOperation": 1, + "ElapsedSeconds": 20.001836, + "OperationsPerSecond": 290.17336208536057, + "UnitsPerSecond": 290.17336208536057, + "MeanUsPerUnit": 3446.2157133011715, + "P50OperationUs": 3382.1, + "P95OperationUs": 3673.8, + "P99OperationUs": 4493.6, + "RetainedSamples": 5804, + "SampleEvery": 1, + "AllocatedBytes": 19670664, + "BytesPerUnit": 3389.15644383184, + "CpuMs": 1562.5, + "CpuUsPerUnit": 269.21088904204, + "Gen0": 2, + "Gen1": 0, + "Gen2": 0 + } + ], + "Checks": [ + { + "Name": "Durable single INSERT", + "ExpectedRows": 6888, + "ExpectedSum": 237257160, + "ReopenVerified": true + } + ] +} \ No newline at end of file diff --git a/docs/design/benchmarks/dotnet11-2026-11-14/focused/pair-1-net11.0.json b/docs/design/benchmarks/dotnet11-2026-11-14/focused/pair-1-net11.0.json new file mode 100644 index 00000000..96acd088 --- /dev/null +++ b/docs/design/benchmarks/dotnet11-2026-11-14/focused/pair-1-net11.0.json @@ -0,0 +1,67 @@ +{ + "SchemaVersion": 1, + "StartedUtc": "2026-11-14T09:00:17.0015479+00:00", + "CompletedUtc": "2026-11-14T09:00:41.3215775+00:00", + "Runtime": ".NET 11.0.0", + "RuntimeVersion": "11.0.0", + "Framework": ".NETCoreApp,Version=v11.0", + "Architecture": "X64", + "OS": "Microsoft Windows 10.0.26300", + "ProcessorCount": 16, + "WarmupSeconds": 4, + "MeasuredSeconds": 20, + "Durability": "Durable", + "RuntimeAsyncOptIn": false, + "CorrectnessPassed": true, + "Sink": 0, + "Assemblies": [ + { + "Name": "CSharpDB.Engine", + "Sha256": "506141fdf29ba9835f3966a9be1416b740ab9aad3d805e1c9a4183d299add310" + }, + { + "Name": "CSharpDB.Sql", + "Sha256": "8226dc5014fcd4362311e9281a1de5c099a03c54d4dc7e902e94794235ecdcd8" + }, + { + "Name": "CSharpDB.Primitives", + "Sha256": "6745cb9abf8771eec302a7b78738c7434808dc1a3ae788d1fe2d77184a77c64b" + }, + { + "Name": "CSharpDB.Benchmarks", + "Sha256": "f7534082cb0dfb5b29df9a7955aaac9c18c609f71a10659b71fc18fb5aafd4dd" + } + ], + "Results": [ + { + "Name": "Durable single INSERT", + "Operations": 5817, + "Units": 5817, + "UnitsPerOperation": 1, + "ElapsedSeconds": 20.001711, + "OperationsPerSecond": 290.8251199109916, + "UnitsPerSecond": 290.8251199109916, + "MeanUsPerUnit": 3438.4925219185147, + "P50OperationUs": 3383.9, + "P95OperationUs": 3621.1, + "P99OperationUs": 4346.7, + "RetainedSamples": 5817, + "SampleEvery": 1, + "AllocatedBytes": 19397488, + "BytesPerUnit": 3334.62059480832, + "CpuMs": 1687.5, + "CpuUsPerUnit": 290.0979886539453, + "Gen0": 2, + "Gen1": 0, + "Gen2": 0 + } + ], + "Checks": [ + { + "Name": "Durable single INSERT", + "ExpectedRows": 6959, + "ExpectedSum": 242173200, + "ReopenVerified": true + } + ] +} \ No newline at end of file diff --git a/docs/design/benchmarks/dotnet11-2026-11-14/focused/pair-2-net10.0.json b/docs/design/benchmarks/dotnet11-2026-11-14/focused/pair-2-net10.0.json new file mode 100644 index 00000000..ad3e4a5c --- /dev/null +++ b/docs/design/benchmarks/dotnet11-2026-11-14/focused/pair-2-net10.0.json @@ -0,0 +1,67 @@ +{ + "SchemaVersion": 1, + "StartedUtc": "2026-11-14T09:01:05.8565404+00:00", + "CompletedUtc": "2026-11-14T09:01:30.1861027+00:00", + "Runtime": ".NET 10.0.15", + "RuntimeVersion": "10.0.15", + "Framework": ".NETCoreApp,Version=v10.0", + "Architecture": "X64", + "OS": "Microsoft Windows 10.0.26300", + "ProcessorCount": 16, + "WarmupSeconds": 4, + "MeasuredSeconds": 20, + "Durability": "Durable", + "RuntimeAsyncOptIn": false, + "CorrectnessPassed": true, + "Sink": 0, + "Assemblies": [ + { + "Name": "CSharpDB.Engine", + "Sha256": "fd512e73b141b50190a449627f9ff886b2140b2b18bee561d8ab0db6d0dd0536" + }, + { + "Name": "CSharpDB.Sql", + "Sha256": "4677dbf762f2db544e160f23c9388236d3547e1a2262f39cdcca94cff1acca9d" + }, + { + "Name": "CSharpDB.Primitives", + "Sha256": "1a608a276c65e4b34350899bdcb95c5b8724a477ffc087d99dc87f0e85a71fee" + }, + { + "Name": "CSharpDB.Benchmarks", + "Sha256": "37a7a47cc4b5a606bb886fb7fe56d7f776083b7d8bceb70629820791ba0c7c3a" + } + ], + "Results": [ + { + "Name": "Durable single INSERT", + "Operations": 5673, + "Units": 5673, + "UnitsPerOperation": 1, + "ElapsedSeconds": 20.0019139, + "OperationsPerSecond": 283.6228587105357, + "UnitsPerSecond": 283.6228587105357, + "MeanUsPerUnit": 3525.8089018156184, + "P50OperationUs": 3443.7, + "P95OperationUs": 3738.2, + "P99OperationUs": 5172.2, + "RetainedSamples": 5673, + "SampleEvery": 1, + "AllocatedBytes": 19227936, + "BytesPerUnit": 3389.377049180328, + "CpuMs": 1562.5, + "CpuUsPerUnit": 275.42746342323284, + "Gen0": 2, + "Gen1": 0, + "Gen2": 0 + } + ], + "Checks": [ + { + "Name": "Durable single INSERT", + "ExpectedRows": 6786, + "ExpectedSum": 230282910, + "ReopenVerified": true + } + ] +} \ No newline at end of file diff --git a/docs/design/benchmarks/dotnet11-2026-11-14/focused/pair-2-net11.0.json b/docs/design/benchmarks/dotnet11-2026-11-14/focused/pair-2-net11.0.json new file mode 100644 index 00000000..68989ca4 --- /dev/null +++ b/docs/design/benchmarks/dotnet11-2026-11-14/focused/pair-2-net11.0.json @@ -0,0 +1,67 @@ +{ + "SchemaVersion": 1, + "StartedUtc": "2026-11-14T09:00:41.4216314+00:00", + "CompletedUtc": "2026-11-14T09:01:05.738125+00:00", + "Runtime": ".NET 11.0.0", + "RuntimeVersion": "11.0.0", + "Framework": ".NETCoreApp,Version=v11.0", + "Architecture": "X64", + "OS": "Microsoft Windows 10.0.26300", + "ProcessorCount": 16, + "WarmupSeconds": 4, + "MeasuredSeconds": 20, + "Durability": "Durable", + "RuntimeAsyncOptIn": false, + "CorrectnessPassed": true, + "Sink": 0, + "Assemblies": [ + { + "Name": "CSharpDB.Engine", + "Sha256": "506141fdf29ba9835f3966a9be1416b740ab9aad3d805e1c9a4183d299add310" + }, + { + "Name": "CSharpDB.Sql", + "Sha256": "8226dc5014fcd4362311e9281a1de5c099a03c54d4dc7e902e94794235ecdcd8" + }, + { + "Name": "CSharpDB.Primitives", + "Sha256": "6745cb9abf8771eec302a7b78738c7434808dc1a3ae788d1fe2d77184a77c64b" + }, + { + "Name": "CSharpDB.Benchmarks", + "Sha256": "f7534082cb0dfb5b29df9a7955aaac9c18c609f71a10659b71fc18fb5aafd4dd" + } + ], + "Results": [ + { + "Name": "Durable single INSERT", + "Operations": 5602, + "Units": 5602, + "UnitsPerOperation": 1, + "ElapsedSeconds": 20.0024132, + "OperationsPerSecond": 280.06620721143787, + "UnitsPerSecond": 280.06620721143787, + "MeanUsPerUnit": 3570.584291324527, + "P50OperationUs": 3494.5, + "P95OperationUs": 3843.3, + "P99OperationUs": 8432.8, + "RetainedSamples": 5602, + "SampleEvery": 1, + "AllocatedBytes": 18669304, + "BytesPerUnit": 3332.6140664048553, + "CpuMs": 1359.375, + "CpuUsPerUnit": 242.65887183148877, + "Gen0": 2, + "Gen1": 0, + "Gen2": 0 + } + ], + "Checks": [ + { + "Name": "Durable single INSERT", + "ExpectedRows": 6726, + "ExpectedSum": 226229010, + "ReopenVerified": true + } + ] +} \ No newline at end of file diff --git a/docs/design/benchmarks/dotnet11-2026-11-14/focused/pair-3-net10.0.json b/docs/design/benchmarks/dotnet11-2026-11-14/focused/pair-3-net10.0.json new file mode 100644 index 00000000..4fdae54b --- /dev/null +++ b/docs/design/benchmarks/dotnet11-2026-11-14/focused/pair-3-net10.0.json @@ -0,0 +1,67 @@ +{ + "SchemaVersion": 1, + "StartedUtc": "2026-11-14T09:01:30.3003211+00:00", + "CompletedUtc": "2026-11-14T09:01:54.6258277+00:00", + "Runtime": ".NET 10.0.15", + "RuntimeVersion": "10.0.15", + "Framework": ".NETCoreApp,Version=v10.0", + "Architecture": "X64", + "OS": "Microsoft Windows 10.0.26300", + "ProcessorCount": 16, + "WarmupSeconds": 4, + "MeasuredSeconds": 20, + "Durability": "Durable", + "RuntimeAsyncOptIn": false, + "CorrectnessPassed": true, + "Sink": 0, + "Assemblies": [ + { + "Name": "CSharpDB.Engine", + "Sha256": "fd512e73b141b50190a449627f9ff886b2140b2b18bee561d8ab0db6d0dd0536" + }, + { + "Name": "CSharpDB.Sql", + "Sha256": "4677dbf762f2db544e160f23c9388236d3547e1a2262f39cdcca94cff1acca9d" + }, + { + "Name": "CSharpDB.Primitives", + "Sha256": "1a608a276c65e4b34350899bdcb95c5b8724a477ffc087d99dc87f0e85a71fee" + }, + { + "Name": "CSharpDB.Benchmarks", + "Sha256": "37a7a47cc4b5a606bb886fb7fe56d7f776083b7d8bceb70629820791ba0c7c3a" + } + ], + "Results": [ + { + "Name": "Durable single INSERT", + "Operations": 5527, + "Units": 5527, + "UnitsPerOperation": 1, + "ElapsedSeconds": 20.0023257, + "OperationsPerSecond": 276.3178683766758, + "UnitsPerSecond": 276.3178683766758, + "MeanUsPerUnit": 3619.020390808757, + "P50OperationUs": 3534, + "P95OperationUs": 3820.3, + "P99OperationUs": 5681.4, + "RetainedSamples": 5527, + "SampleEvery": 1, + "AllocatedBytes": 18737072, + "BytesPerUnit": 3390.098064049213, + "CpuMs": 1593.75, + "CpuUsPerUnit": 288.35715578071284, + "Gen0": 2, + "Gen1": 0, + "Gen2": 0 + } + ], + "Checks": [ + { + "Name": "Durable single INSERT", + "ExpectedRows": 6630, + "ExpectedSum": 219817650, + "ReopenVerified": true + } + ] +} \ No newline at end of file diff --git a/docs/design/benchmarks/dotnet11-2026-11-14/focused/pair-3-net11.0.json b/docs/design/benchmarks/dotnet11-2026-11-14/focused/pair-3-net11.0.json new file mode 100644 index 00000000..990e96cc --- /dev/null +++ b/docs/design/benchmarks/dotnet11-2026-11-14/focused/pair-3-net11.0.json @@ -0,0 +1,67 @@ +{ + "SchemaVersion": 1, + "StartedUtc": "2026-11-14T09:01:54.7343939+00:00", + "CompletedUtc": "2026-11-14T09:02:19.0447504+00:00", + "Runtime": ".NET 11.0.0", + "RuntimeVersion": "11.0.0", + "Framework": ".NETCoreApp,Version=v11.0", + "Architecture": "X64", + "OS": "Microsoft Windows 10.0.26300", + "ProcessorCount": 16, + "WarmupSeconds": 4, + "MeasuredSeconds": 20, + "Durability": "Durable", + "RuntimeAsyncOptIn": false, + "CorrectnessPassed": true, + "Sink": 0, + "Assemblies": [ + { + "Name": "CSharpDB.Engine", + "Sha256": "506141fdf29ba9835f3966a9be1416b740ab9aad3d805e1c9a4183d299add310" + }, + { + "Name": "CSharpDB.Sql", + "Sha256": "8226dc5014fcd4362311e9281a1de5c099a03c54d4dc7e902e94794235ecdcd8" + }, + { + "Name": "CSharpDB.Primitives", + "Sha256": "6745cb9abf8771eec302a7b78738c7434808dc1a3ae788d1fe2d77184a77c64b" + }, + { + "Name": "CSharpDB.Benchmarks", + "Sha256": "f7534082cb0dfb5b29df9a7955aaac9c18c609f71a10659b71fc18fb5aafd4dd" + } + ], + "Results": [ + { + "Name": "Durable single INSERT", + "Operations": 5822, + "Units": 5822, + "UnitsPerOperation": 1, + "ElapsedSeconds": 20.0000639, + "OperationsPerSecond": 291.09906993847153, + "UnitsPerSecond": 291.09906993847153, + "MeanUsPerUnit": 3435.2565956715907, + "P50OperationUs": 3379, + "P95OperationUs": 3615.8, + "P99OperationUs": 4672.3, + "RetainedSamples": 5822, + "SampleEvery": 1, + "AllocatedBytes": 19411120, + "BytesPerUnit": 3334.098248024734, + "CpuMs": 1484.375, + "CpuUsPerUnit": 254.95963586396428, + "Gen0": 2, + "Gen1": 0, + "Gen2": 0 + } + ], + "Checks": [ + { + "Name": "Durable single INSERT", + "ExpectedRows": 6962, + "ExpectedSum": 242382030, + "ReopenVerified": true + } + ] +} \ No newline at end of file diff --git a/docs/design/benchmarks/dotnet11-2026-11-14/harness-program.cs.txt b/docs/design/benchmarks/dotnet11-2026-11-14/harness-program.cs.txt new file mode 100644 index 00000000..4e0b70ac --- /dev/null +++ b/docs/design/benchmarks/dotnet11-2026-11-14/harness-program.cs.txt @@ -0,0 +1,182 @@ +using System.Diagnostics; +using System.Reflection; +using System.Runtime.InteropServices; +using System.Security.Cryptography; +using System.Text.Json; +using CSharpDB.Benchmarks.Infrastructure; +using CSharpDB.Engine; +using CSharpDB.Primitives; +using CSharpDB.Sql; + +if (args.Length != 3) + throw new ArgumentException("Usage: output.json warmupSeconds measuredSeconds"); +string output = Path.GetFullPath(args[0]); +if (File.Exists(output)) throw new IOException("Evidence output must be new."); +double warmupSeconds = double.Parse(args[1], System.Globalization.CultureInfo.InvariantCulture); +double measuredSeconds = double.Parse(args[2], System.Globalization.CultureInfo.InvariantCulture); +BenchmarkProcessTuner.ConfigureIfRequested(true, 8); +Environment.SetEnvironmentVariable("CSHARPDB_BENCH_DURABILITY", "Durable"); +var rows = new List(); +var checks = new List(); +var started = DateTimeOffset.UtcNow; +long sink = 0; + +const string sql = "SELECT p.name, o.qty, p.price * o.qty AS total FROM products p INNER JOIN orders o ON p.id = o.product_id WHERE p.price > 10.0 AND o.qty >= 5 ORDER BY total DESC LIMIT 50"; +await Measure("Parse SELECT", () => +{ + for (int i = 0; i < 64; i++) + sink += Parser.Parse(sql).GetType().Name.Length; + return ValueTask.CompletedTask; +}, unitsPerOperation: 64); + +await using (BenchmarkDatabase bench = await BenchmarkDatabase.CreateAsync(10_000)) +{ + var random = new Random(42); + await Measure("Cached PK lookup (10K rows)", async () => + { + int id = random.Next(10_000); + await using var result = await bench.Db.ExecuteAsync($"SELECT * FROM bench WHERE id = {id}"); + var found = await result.ToListAsync(); + if (found.Count != 1 || found[0][0].AsInteger != id) throw new InvalidOperationException("Point lookup mismatch."); + sink += found.Count; + }, sampleEvery: 64); + await Measure("Full scan materialized (10K rows)", async () => + { + await using var result = await bench.Db.ExecuteAsync("SELECT * FROM bench"); + var found = await result.ToListAsync(); + if (found.Count != 10_000) throw new InvalidOperationException("Scan row count mismatch."); + sink += found.Count; + }, sampleEvery: 1); + await using (var proof = await bench.Db.ExecuteAsync("SELECT * FROM bench ORDER BY value ASC")) + { + var found = await proof.ToListAsync(); + if (found.Count != 10_000) throw new InvalidOperationException("Sort row count mismatch."); + for (int i = 1; i < found.Count; i++) + if (found[i - 1][1].AsInteger > found[i][1].AsInteger) throw new InvalidOperationException("Sort order mismatch."); + } + await Measure("ORDER BY materialized (10K rows)", async () => + { + await using var result = await bench.Db.ExecuteAsync("SELECT * FROM bench ORDER BY value ASC"); + var found = await result.ToListAsync(); + if (found.Count != 10_000) throw new InvalidOperationException("Sort row count mismatch."); + sink += found.Count; + }, sampleEvery: 1); +} + +foreach (var workload in new[] { (Name: "In-memory single INSERT", Memory: true, Batch: 1), (Name: "Durable single INSERT", Memory: false, Batch: 1), (Name: "Durable prepared batch (100 rows)", Memory: false, Batch: 100) }) +{ + string file = Path.Combine(Path.GetDirectoryName(output)!, $"{Path.GetFileNameWithoutExtension(output)}-{workload.Batch}-{workload.Memory}.db"); + Database db = workload.Memory ? await Database.OpenInMemoryAsync() : await Database.OpenAsync(file, BenchmarkDurability.Apply()); + try + { + await using (var created = await db.ExecuteAsync("CREATE TABLE bench (id INTEGER PRIMARY KEY, value INTEGER, text_col TEXT, category TEXT)")) { } + int nextId = 0; + InsertBatch? batch = workload.Batch == 100 ? db.PrepareInsertBatch("bench", 100) : null; + var values = new DbValue[4]; + values[2] = DbValue.FromText("runtime-comparison-50-character-payload-for-inserts!"); + values[3] = DbValue.FromText("Alpha"); + await Measure(workload.Name, async () => + { + if (batch is null) + { + int id = ++nextId; + await using var result = await db.ExecuteAsync($"INSERT INTO bench VALUES ({id}, {id * 10L}, 'runtime-comparison-50-character-payload-for-inserts!', 'Alpha')"); + if (result.RowsAffected != 1) throw new InvalidOperationException("Insert affected-row mismatch."); + } + else + { + batch.Clear(); + await db.BeginTransactionAsync(); + for (int i = 0; i < 100; i++) + { + int id = ++nextId; + values[0] = DbValue.FromInteger(id); + values[1] = DbValue.FromInteger(id * 10L); + batch.AddRow(values); + } + if (await batch.ExecuteAsync() != 100) throw new InvalidOperationException("Batch affected-row mismatch."); + await db.CommitAsync(); + } + }, unitsPerOperation: workload.Batch, sampleEvery: workload.Memory ? 8 : 1); + await Verify(db, nextId); + if (!workload.Memory) + { + await db.DisposeAsync(); + db = await Database.OpenAsync(file, BenchmarkDurability.Apply()); + await Verify(db, nextId); + } + checks.Add(new { workload.Name, ExpectedRows = nextId, ExpectedSum = checked((long)nextId * (nextId + 1) / 2 * 10), ReopenVerified = !workload.Memory }); + } + finally { await db.DisposeAsync(); } +} + +var assemblies = new[] { typeof(Database).Assembly, typeof(Parser).Assembly, typeof(DbValue).Assembly, Assembly.GetExecutingAssembly() } + .Select(assembly => new { Name = assembly.GetName().Name, Sha256 = Convert.ToHexString(SHA256.HashData(File.ReadAllBytes(assembly.Location))).ToLowerInvariant() }).ToArray(); +var report = new +{ + SchemaVersion = 1, StartedUtc = started, CompletedUtc = DateTimeOffset.UtcNow, + Runtime = RuntimeInformation.FrameworkDescription, RuntimeVersion = Environment.Version.ToString(), + Framework = AppContext.TargetFrameworkName, Architecture = RuntimeInformation.ProcessArchitecture.ToString(), + OS = RuntimeInformation.OSDescription, ProcessorCount = Environment.ProcessorCount, + WarmupSeconds = warmupSeconds, MeasuredSeconds = measuredSeconds, Durability = "Durable", + RuntimeAsyncOptIn = false, CorrectnessPassed = true, Sink = sink, Assemblies = assemblies, Results = rows, Checks = checks +}; +Directory.CreateDirectory(Path.GetDirectoryName(output)!); +await File.WriteAllTextAsync(output, JsonSerializer.Serialize(report, new JsonSerializerOptions { WriteIndented = true })); +Console.WriteLine($"Correctness and durable reopen checks passed. {output}"); + +async Task Measure(string name, Func operation, int unitsPerOperation = 1, int sampleEvery = 8) +{ + var warmup = Stopwatch.StartNew(); + while (warmup.Elapsed.TotalSeconds < warmupSeconds) await operation(); + double[] samples = new double[1_000_000]; + GC.Collect(); GC.WaitForPendingFinalizers(); GC.Collect(); + using var process = Process.GetCurrentProcess(); + long startAllocated = GC.GetTotalAllocatedBytes(precise: true); + int gen0 = GC.CollectionCount(0), gen1 = GC.CollectionCount(1), gen2 = GC.CollectionCount(2); + TimeSpan startCpu = process.TotalProcessorTime; + long began = Stopwatch.GetTimestamp(); + long operations = 0; + int retained = 0; + double durationTicks = measuredSeconds * Stopwatch.Frequency; + while (Stopwatch.GetTimestamp() - began < durationTicks) + { + if (operations % sampleEvery == 0) + { + long before = Stopwatch.GetTimestamp(); + await operation(); + long after = Stopwatch.GetTimestamp(); + if (retained == samples.Length) throw new InvalidOperationException("Latency evidence capacity exceeded."); + samples[retained++] = (after - before) * 1_000_000d / Stopwatch.Frequency; + } + else await operation(); + operations++; + } + long elapsedTicks = Stopwatch.GetTimestamp() - began; + double cpuMs = (process.TotalProcessorTime - startCpu).TotalMilliseconds; + long allocated = GC.GetTotalAllocatedBytes(precise: true) - startAllocated; + int collected0 = GC.CollectionCount(0) - gen0, collected1 = GC.CollectionCount(1) - gen1, collected2 = GC.CollectionCount(2) - gen2; + Array.Sort(samples, 0, retained); + if (operations <= 0 || retained < 100) throw new InvalidOperationException("Insufficient retained measurements."); + double elapsed = elapsedTicks / (double)Stopwatch.Frequency; + long units = operations * unitsPerOperation; + double Percentile(double p) => samples[Math.Clamp((int)Math.Ceiling(retained * p) - 1, 0, retained - 1)]; + rows.Add(new + { + Name = name, Operations = operations, Units = units, UnitsPerOperation = unitsPerOperation, + ElapsedSeconds = elapsed, OperationsPerSecond = operations / elapsed, UnitsPerSecond = units / elapsed, + MeanUsPerUnit = elapsed * 1_000_000 / units, P50OperationUs = Percentile(.5), P95OperationUs = Percentile(.95), P99OperationUs = Percentile(.99), + RetainedSamples = retained, SampleEvery = sampleEvery, AllocatedBytes = allocated, BytesPerUnit = allocated / (double)units, + CpuMs = cpuMs, CpuUsPerUnit = cpuMs * 1000 / units, Gen0 = collected0, Gen1 = collected1, Gen2 = collected2 + }); + Console.WriteLine($"{name}: {units / elapsed:N0} units/s; {elapsed * 1_000_000 / units:F3} us/unit; {allocated / (double)units:F0} B/unit; samples={retained}"); +} + +static async Task Verify(Database db, int expectedRows) +{ + await using var result = await db.ExecuteAsync("SELECT COUNT(*), SUM(value) FROM bench"); + var found = await result.ToListAsync(); + long expectedSum = checked((long)expectedRows * (expectedRows + 1) / 2 * 10); + if (found.Count != 1 || found[0][0].AsInteger != expectedRows || found[0][1].AsInteger != expectedSum) + throw new InvalidOperationException("Row count/checksum/reopen verification failed."); +} diff --git a/docs/design/benchmarks/dotnet11-2026-11-14/measured/pair-1-net10.0.json b/docs/design/benchmarks/dotnet11-2026-11-14/measured/pair-1-net10.0.json new file mode 100644 index 00000000..9dae0f4c --- /dev/null +++ b/docs/design/benchmarks/dotnet11-2026-11-14/measured/pair-1-net10.0.json @@ -0,0 +1,211 @@ +{ + "SchemaVersion": 1, + "StartedUtc": "2026-11-14T08:47:39.3235124+00:00", + "CompletedUtc": "2026-11-14T08:48:50.4272281+00:00", + "Runtime": ".NET 10.0.15", + "RuntimeVersion": "10.0.15", + "Framework": ".NETCoreApp,Version=v10.0", + "Architecture": "X64", + "OS": "Microsoft Windows 10.0.26300", + "ProcessorCount": 16, + "WarmupSeconds": 2, + "MeasuredSeconds": 8, + "Durability": "Durable", + "RuntimeAsyncOptIn": false, + "CorrectnessPassed": true, + "Sink": 181376393, + "Assemblies": [ + { + "Name": "CSharpDB.Engine", + "Sha256": "fd512e73b141b50190a449627f9ff886b2140b2b18bee561d8ab0db6d0dd0536" + }, + { + "Name": "CSharpDB.Sql", + "Sha256": "4677dbf762f2db544e160f23c9388236d3547e1a2262f39cdcca94cff1acca9d" + }, + { + "Name": "CSharpDB.Primitives", + "Sha256": "1a608a276c65e4b34350899bdcb95c5b8724a477ffc087d99dc87f0e85a71fee" + }, + { + "Name": "CSharpDB.Benchmarks", + "Sha256": "7120fb4009139cb9d2d0c1f707525aa1ce41a583c640ee435e1b1ed8cef5899f" + } + ], + "Results": [ + { + "Name": "Parse SELECT", + "Operations": 58616, + "Units": 3751424, + "UnitsPerOperation": 64, + "ElapsedSeconds": 8.0000011, + "OperationsPerSecond": 7326.9989925376385, + "UnitsPerSecond": 468927.93552240886, + "MeanUsPerUnit": 2.132523836281903, + "P50OperationUs": 126.5, + "P95OperationUs": 186.3, + "P99OperationUs": 235.4, + "RetainedSamples": 7327, + "SampleEvery": 8, + "AllocatedBytes": 22389098080, + "BytesPerUnit": 5968.159845434694, + "CpuMs": 7968.75, + "CpuUsPerUnit": 2.1241933729698377, + "Gen0": 2676, + "Gen1": 29, + "Gen2": 0 + }, + { + "Name": "Cached PK lookup (10K rows)", + "Operations": 14081090, + "Units": 14081090, + "UnitsPerOperation": 1, + "ElapsedSeconds": 8.0000006, + "OperationsPerSecond": 1760136.117989791, + "UnitsPerSecond": 1760136.117989791, + "MeanUsPerUnit": 0.5681378785307103, + "P50OperationUs": 0.5, + "P95OperationUs": 1, + "P99OperationUs": 1.3, + "RetainedSamples": 220018, + "SampleEvery": 64, + "AllocatedBytes": 8898125128, + "BytesPerUnit": 631.9201942463261, + "CpuMs": 7937.5, + "CpuUsPerUnit": 0.5636992590772447, + "Gen0": 1063, + "Gen1": 0, + "Gen2": 0 + }, + { + "Name": "Full scan materialized (10K rows)", + "Operations": 5267, + "Units": 5267, + "UnitsPerOperation": 1, + "ElapsedSeconds": 8.0026508, + "OperationsPerSecond": 658.1569197046559, + "UnitsPerSecond": 658.1569197046559, + "MeanUsPerUnit": 1519.3944940193658, + "P50OperationUs": 1336, + "P95OperationUs": 2536.6, + "P99OperationUs": 3667.9, + "RetainedSamples": 5267, + "SampleEvery": 1, + "AllocatedBytes": 15216576992, + "BytesPerUnit": 2889040.628820961, + "CpuMs": 7859.375, + "CpuUsPerUnit": 1492.1919498765901, + "Gen0": 1819, + "Gen1": 1519, + "Gen2": 0 + }, + { + "Name": "ORDER BY materialized (10K rows)", + "Operations": 2539, + "Units": 2539, + "UnitsPerOperation": 1, + "ElapsedSeconds": 8.0000418, + "OperationsPerSecond": 317.3733417242895, + "UnitsPerSecond": 317.3733417242895, + "MeanUsPerUnit": 3150.8632532493107, + "P50OperationUs": 2910, + "P95OperationUs": 4423.5, + "P99OperationUs": 5501.4, + "RetainedSamples": 2539, + "SampleEvery": 1, + "AllocatedBytes": 7359364320, + "BytesPerUnit": 2898528.6805829066, + "CpuMs": 7968.75, + "CpuUsPerUnit": 3138.538794801103, + "Gen0": 879, + "Gen1": 728, + "Gen2": 0 + }, + { + "Name": "In-memory single INSERT", + "Operations": 2153974, + "Units": 2153974, + "UnitsPerOperation": 1, + "ElapsedSeconds": 8.0000058, + "OperationsPerSecond": 269246.55479624774, + "UnitsPerSecond": 269246.55479624774, + "MeanUsPerUnit": 3.7140679506809273, + "P50OperationUs": 3, + "P95OperationUs": 4.4, + "P99OperationUs": 16.8, + "RetainedSamples": 269247, + "SampleEvery": 8, + "AllocatedBytes": 4175891792, + "BytesPerUnit": 1938.6918282207678, + "CpuMs": 7984.375, + "CpuUsPerUnit": 3.706811224276616, + "Gen0": 446, + "Gen1": 63, + "Gen2": 4 + }, + { + "Name": "Durable single INSERT", + "Operations": 2235, + "Units": 2235, + "UnitsPerOperation": 1, + "ElapsedSeconds": 8.0002115, + "OperationsPerSecond": 279.3676142186991, + "UnitsPerSecond": 279.3676142186991, + "MeanUsPerUnit": 3579.5129753914994, + "P50OperationUs": 3506.8, + "P95OperationUs": 3810.4, + "P99OperationUs": 5147.5, + "RetainedSamples": 2235, + "SampleEvery": 1, + "AllocatedBytes": 7584864, + "BytesPerUnit": 3393.675167785235, + "CpuMs": 500, + "CpuUsPerUnit": 223.71364653243847, + "Gen0": 0, + "Gen1": 0, + "Gen2": 0 + }, + { + "Name": "Durable prepared batch (100 rows)", + "Operations": 2123, + "Units": 212300, + "UnitsPerOperation": 100, + "ElapsedSeconds": 8.0014891, + "OperationsPerSecond": 265.3256129537188, + "UnitsPerSecond": 26532.56129537188, + "MeanUsPerUnit": 37.68953886010363, + "P50OperationUs": 3622.6, + "P95OperationUs": 3934.1, + "P99OperationUs": 8278.6, + "RetainedSamples": 2123, + "SampleEvery": 1, + "AllocatedBytes": 27817840, + "BytesPerUnit": 131.0308054639661, + "CpuMs": 765.625, + "CpuUsPerUnit": 3.6063353744700897, + "Gen0": 3, + "Gen1": 1, + "Gen2": 0 + } + ], + "Checks": [ + { + "Name": "In-memory single INSERT", + "ExpectedRows": 2494224, + "ExpectedSum": 31105779282000, + "ReopenVerified": false + }, + { + "Name": "Durable single INSERT", + "ExpectedRows": 2788, + "ExpectedSum": 38878660, + "ReopenVerified": true + }, + { + "Name": "Durable prepared batch (100 rows)", + "ExpectedRows": 265000, + "ExpectedSum": 351126325000, + "ReopenVerified": true + } + ] +} \ No newline at end of file diff --git a/docs/design/benchmarks/dotnet11-2026-11-14/measured/pair-1-net11.0.json b/docs/design/benchmarks/dotnet11-2026-11-14/measured/pair-1-net11.0.json new file mode 100644 index 00000000..e89a4acd --- /dev/null +++ b/docs/design/benchmarks/dotnet11-2026-11-14/measured/pair-1-net11.0.json @@ -0,0 +1,211 @@ +{ + "SchemaVersion": 1, + "StartedUtc": "2026-11-14T08:48:50.5655975+00:00", + "CompletedUtc": "2026-11-14T08:50:01.6734707+00:00", + "Runtime": ".NET 11.0.0", + "RuntimeVersion": "11.0.0", + "Framework": ".NETCoreApp,Version=v11.0", + "Architecture": "X64", + "OS": "Microsoft Windows 10.0.26300", + "ProcessorCount": 16, + "WarmupSeconds": 2, + "MeasuredSeconds": 8, + "Durability": "Durable", + "RuntimeAsyncOptIn": false, + "CorrectnessPassed": true, + "Sink": 187469395, + "Assemblies": [ + { + "Name": "CSharpDB.Engine", + "Sha256": "506141fdf29ba9835f3966a9be1416b740ab9aad3d805e1c9a4183d299add310" + }, + { + "Name": "CSharpDB.Sql", + "Sha256": "8226dc5014fcd4362311e9281a1de5c099a03c54d4dc7e902e94794235ecdcd8" + }, + { + "Name": "CSharpDB.Primitives", + "Sha256": "6745cb9abf8771eec302a7b78738c7434808dc1a3ae788d1fe2d77184a77c64b" + }, + { + "Name": "CSharpDB.Benchmarks", + "Sha256": "35a8d5e989e0aacc86c062209644fb40a34895d26d7006a5a27779cc73c9e9d1" + } + ], + "Results": [ + { + "Name": "Parse SELECT", + "Operations": 60285, + "Units": 3858240, + "UnitsPerOperation": 64, + "ElapsedSeconds": 8.000043, + "OperationsPerSecond": 7535.584496233333, + "UnitsPerSecond": 482277.4077589333, + "MeanUsPerUnit": 2.073495427967156, + "P50OperationUs": 122, + "P95OperationUs": 181.2, + "P99OperationUs": 232.8, + "RetainedSamples": 7536, + "SampleEvery": 8, + "AllocatedBytes": 23026592992, + "BytesPerUnit": 5968.15983246247, + "CpuMs": 7984.375, + "CpuUsPerUnit": 2.069434508998922, + "Gen0": 2752, + "Gen1": 29, + "Gen2": 0 + }, + { + "Name": "Cached PK lookup (10K rows)", + "Operations": 14803961, + "Units": 14803961, + "UnitsPerOperation": 1, + "ElapsedSeconds": 8.0000001, + "OperationsPerSecond": 1850495.1018688113, + "UnitsPerSecond": 1850495.1018688113, + "MeanUsPerUnit": 0.5403959183626598, + "P50OperationUs": 0.5, + "P95OperationUs": 0.9, + "P99OperationUs": 1.3, + "RetainedSamples": 231312, + "SampleEvery": 64, + "AllocatedBytes": 9354922080, + "BytesPerUnit": 631.9202056800879, + "CpuMs": 7968.75, + "CpuUsPerUnit": 0.5382849900779934, + "Gen0": 1118, + "Gen1": 0, + "Gen2": 0 + }, + { + "Name": "Full scan materialized (10K rows)", + "Operations": 5586, + "Units": 5586, + "UnitsPerOperation": 1, + "ElapsedSeconds": 8.0010702, + "OperationsPerSecond": 698.1566041002866, + "UnitsPerSecond": 698.1566041002866, + "MeanUsPerUnit": 1432.343394199785, + "P50OperationUs": 1246.7, + "P95OperationUs": 2319, + "P99OperationUs": 3336.2, + "RetainedSamples": 5586, + "SampleEvery": 1, + "AllocatedBytes": 16138180752, + "BytesPerUnit": 2889040.5929108486, + "CpuMs": 7953.125, + "CpuUsPerUnit": 1423.7602935911207, + "Gen0": 1929, + "Gen1": 1612, + "Gen2": 0 + }, + { + "Name": "ORDER BY materialized (10K rows)", + "Operations": 2560, + "Units": 2560, + "UnitsPerOperation": 1, + "ElapsedSeconds": 8.0014781, + "OperationsPerSecond": 319.9408869218801, + "UnitsPerSecond": 319.9408869218801, + "MeanUsPerUnit": 3125.5773828124998, + "P50OperationUs": 2877.9, + "P95OperationUs": 4364, + "P99OperationUs": 5544.1, + "RetainedSamples": 2560, + "SampleEvery": 1, + "AllocatedBytes": 7420214512, + "BytesPerUnit": 2898521.29375, + "CpuMs": 7937.5, + "CpuUsPerUnit": 3100.5859375, + "Gen0": 887, + "Gen1": 735, + "Gen2": 0 + }, + { + "Name": "In-memory single INSERT", + "Operations": 2181137, + "Units": 2181137, + "UnitsPerOperation": 1, + "ElapsedSeconds": 8.0000012, + "OperationsPerSecond": 272642.0841036874, + "UnitsPerSecond": 272642.0841036874, + "MeanUsPerUnit": 3.667812338243769, + "P50OperationUs": 2.9, + "P95OperationUs": 4.5, + "P99OperationUs": 17, + "RetainedSamples": 272643, + "SampleEvery": 8, + "AllocatedBytes": 4099402408, + "BytesPerUnit": 1879.4795595141434, + "CpuMs": 7953.125, + "CpuUsPerUnit": 3.646320703376267, + "Gen0": 437, + "Gen1": 73, + "Gen2": 4 + }, + { + "Name": "Durable single INSERT", + "Operations": 2347, + "Units": 2347, + "UnitsPerOperation": 1, + "ElapsedSeconds": 8.002304, + "OperationsPerSecond": 293.2905323266899, + "UnitsPerSecond": 293.2905323266899, + "MeanUsPerUnit": 3409.5884107371116, + "P50OperationUs": 3360.4, + "P95OperationUs": 3606.2, + "P99OperationUs": 3867.3, + "RetainedSamples": 2347, + "SampleEvery": 1, + "AllocatedBytes": 7822992, + "BytesPerUnit": 3333.1878994461013, + "CpuMs": 875, + "CpuUsPerUnit": 372.8163613123136, + "Gen0": 0, + "Gen1": 0, + "Gen2": 0 + }, + { + "Name": "Durable prepared batch (100 rows)", + "Operations": 2217, + "Units": 221700, + "UnitsPerOperation": 100, + "ElapsedSeconds": 8.0029348, + "OperationsPerSecond": 277.0233739752572, + "UnitsPerSecond": 27702.337397525716, + "MeanUsPerUnit": 36.09803698691926, + "P50OperationUs": 3478.7, + "P95OperationUs": 3778.8, + "P99OperationUs": 6920.9, + "RetainedSamples": 2217, + "SampleEvery": 1, + "AllocatedBytes": 28913976, + "BytesPerUnit": 130.41937753721245, + "CpuMs": 687.5, + "CpuUsPerUnit": 3.1010374379792514, + "Gen0": 3, + "Gen1": 1, + "Gen2": 0 + } + ], + "Checks": [ + { + "Name": "In-memory single INSERT", + "ExpectedRows": 2530343, + "ExpectedSum": 32013191139960, + "ReopenVerified": false + }, + { + "Name": "Durable single INSERT", + "ExpectedRows": 2933, + "ExpectedSum": 43027110, + "ReopenVerified": true + }, + { + "Name": "Durable prepared batch (100 rows)", + "ExpectedRows": 277700, + "ExpectedSum": 385587838500, + "ReopenVerified": true + } + ] +} \ No newline at end of file diff --git a/docs/design/benchmarks/dotnet11-2026-11-14/measured/pair-2-net10.0.json b/docs/design/benchmarks/dotnet11-2026-11-14/measured/pair-2-net10.0.json new file mode 100644 index 00000000..74a77f19 --- /dev/null +++ b/docs/design/benchmarks/dotnet11-2026-11-14/measured/pair-2-net10.0.json @@ -0,0 +1,211 @@ +{ + "SchemaVersion": 1, + "StartedUtc": "2026-11-14T08:51:13.0124622+00:00", + "CompletedUtc": "2026-11-14T08:52:24.1394813+00:00", + "Runtime": ".NET 10.0.15", + "RuntimeVersion": "10.0.15", + "Framework": ".NETCoreApp,Version=v10.0", + "Architecture": "X64", + "OS": "Microsoft Windows 10.0.26300", + "ProcessorCount": 16, + "WarmupSeconds": 2, + "MeasuredSeconds": 8, + "Durability": "Durable", + "RuntimeAsyncOptIn": false, + "CorrectnessPassed": true, + "Sink": 181613934, + "Assemblies": [ + { + "Name": "CSharpDB.Engine", + "Sha256": "fd512e73b141b50190a449627f9ff886b2140b2b18bee561d8ab0db6d0dd0536" + }, + { + "Name": "CSharpDB.Sql", + "Sha256": "4677dbf762f2db544e160f23c9388236d3547e1a2262f39cdcca94cff1acca9d" + }, + { + "Name": "CSharpDB.Primitives", + "Sha256": "1a608a276c65e4b34350899bdcb95c5b8724a477ffc087d99dc87f0e85a71fee" + }, + { + "Name": "CSharpDB.Benchmarks", + "Sha256": "7120fb4009139cb9d2d0c1f707525aa1ce41a583c640ee435e1b1ed8cef5899f" + } + ], + "Results": [ + { + "Name": "Parse SELECT", + "Operations": 57162, + "Units": 3658368, + "UnitsPerOperation": 64, + "ElapsedSeconds": 8.0001426, + "OperationsPerSecond": 7145.122638188974, + "UnitsPerSecond": 457287.8488440943, + "MeanUsPerUnit": 2.186806412039467, + "P50OperationUs": 130.3, + "P95OperationUs": 188.6, + "P99OperationUs": 232.5, + "RetainedSamples": 7146, + "SampleEvery": 8, + "AllocatedBytes": 21833725088, + "BytesPerUnit": 5968.159870193485, + "CpuMs": 8000, + "CpuUsPerUnit": 2.186767432909975, + "Gen0": 2610, + "Gen1": 28, + "Gen2": 0 + }, + { + "Name": "Cached PK lookup (10K rows)", + "Operations": 14124851, + "Units": 14124851, + "UnitsPerOperation": 1, + "ElapsedSeconds": 8.0000003, + "OperationsPerSecond": 1765606.3087897634, + "UnitsPerSecond": 1765606.3087897634, + "MeanUsPerUnit": 0.5663776771875328, + "P50OperationUs": 0.5, + "P95OperationUs": 1, + "P99OperationUs": 1.4, + "RetainedSamples": 220701, + "SampleEvery": 64, + "AllocatedBytes": 8925778864, + "BytesPerUnit": 631.9202138132289, + "CpuMs": 7968.75, + "CpuUsPerUnit": 0.5641652432298224, + "Gen0": 1067, + "Gen1": 1, + "Gen2": 0 + }, + { + "Name": "Full scan materialized (10K rows)", + "Operations": 5350, + "Units": 5350, + "UnitsPerOperation": 1, + "ElapsedSeconds": 8.0006138, + "OperationsPerSecond": 668.6986940926957, + "UnitsPerSecond": 668.6986940926957, + "MeanUsPerUnit": 1495.4418317757008, + "P50OperationUs": 1295.3, + "P95OperationUs": 2489.2, + "P99OperationUs": 3741, + "RetainedSamples": 5350, + "SampleEvery": 1, + "AllocatedBytes": 15456367312, + "BytesPerUnit": 2889040.6190654207, + "CpuMs": 7968.75, + "CpuUsPerUnit": 1489.4859813084113, + "Gen0": 1847, + "Gen1": 1543, + "Gen2": 0 + }, + { + "Name": "ORDER BY materialized (10K rows)", + "Operations": 2573, + "Units": 2573, + "UnitsPerOperation": 1, + "ElapsedSeconds": 8.0013864, + "OperationsPerSecond": 321.5692720451546, + "UnitsPerSecond": 321.5692720451546, + "MeanUsPerUnit": 3109.749863972017, + "P50OperationUs": 2867.4, + "P95OperationUs": 4274.6, + "P99OperationUs": 5273.1, + "RetainedSamples": 2573, + "SampleEvery": 1, + "AllocatedBytes": 7457914608, + "BytesPerUnit": 2898528.8021764476, + "CpuMs": 8000, + "CpuUsPerUnit": 3109.2110376991836, + "Gen0": 891, + "Gen1": 739, + "Gen2": 0 + }, + { + "Name": "In-memory single INSERT", + "Operations": 2190031, + "Units": 2190031, + "UnitsPerOperation": 1, + "ElapsedSeconds": 8.0000028, + "OperationsPerSecond": 273753.77918617724, + "UnitsPerSecond": 273753.77918617724, + "MeanUsPerUnit": 3.6529176071023657, + "P50OperationUs": 3, + "P95OperationUs": 4.4, + "P99OperationUs": 17, + "RetainedSamples": 273754, + "SampleEvery": 8, + "AllocatedBytes": 4237642608, + "BytesPerUnit": 1934.9692346820661, + "CpuMs": 8000, + "CpuUsPerUnit": 3.65291632858165, + "Gen0": 454, + "Gen1": 63, + "Gen2": 4 + }, + { + "Name": "Durable single INSERT", + "Operations": 2271, + "Units": 2271, + "UnitsPerOperation": 1, + "ElapsedSeconds": 8.0019855, + "OperationsPerSecond": 283.80456325495715, + "UnitsPerSecond": 283.80456325495715, + "MeanUsPerUnit": 3523.5515191545574, + "P50OperationUs": 3450.8, + "P95OperationUs": 3771.4, + "P99OperationUs": 5073.6, + "RetainedSamples": 2271, + "SampleEvery": 1, + "AllocatedBytes": 7692056, + "BytesPerUnit": 3387.0788199031263, + "CpuMs": 625, + "CpuUsPerUnit": 275.2091589608102, + "Gen0": 0, + "Gen1": 0, + "Gen2": 0 + }, + { + "Name": "Durable prepared batch (100 rows)", + "Operations": 2141, + "Units": 214100, + "UnitsPerOperation": 100, + "ElapsedSeconds": 8.0001096, + "OperationsPerSecond": 267.62133358772985, + "UnitsPerSecond": 26762.133358772986, + "MeanUsPerUnit": 37.366228865016346, + "P50OperationUs": 3599.5, + "P95OperationUs": 3902.8, + "P99OperationUs": 6026.4, + "RetainedSamples": 2141, + "SampleEvery": 1, + "AllocatedBytes": 28034936, + "BytesPerUnit": 130.9431854273704, + "CpuMs": 1000, + "CpuUsPerUnit": 4.670714619336758, + "Gen0": 3, + "Gen1": 1, + "Gen2": 0 + } + ], + "Checks": [ + { + "Name": "In-memory single INSERT", + "ExpectedRows": 2534329, + "ExpectedSum": 32114130072850, + "ReopenVerified": false + }, + { + "Name": "Durable single INSERT", + "ExpectedRows": 2846, + "ExpectedSum": 40512810, + "ReopenVerified": true + }, + { + "Name": "Durable prepared batch (100 rows)", + "ExpectedRows": 267300, + "ExpectedSum": 357247786500, + "ReopenVerified": true + } + ] +} \ No newline at end of file diff --git a/docs/design/benchmarks/dotnet11-2026-11-14/measured/pair-2-net11.0.json b/docs/design/benchmarks/dotnet11-2026-11-14/measured/pair-2-net11.0.json new file mode 100644 index 00000000..704d4802 --- /dev/null +++ b/docs/design/benchmarks/dotnet11-2026-11-14/measured/pair-2-net11.0.json @@ -0,0 +1,211 @@ +{ + "SchemaVersion": 1, + "StartedUtc": "2026-11-14T08:50:01.7990672+00:00", + "CompletedUtc": "2026-11-14T08:51:12.8761814+00:00", + "Runtime": ".NET 11.0.0", + "RuntimeVersion": "11.0.0", + "Framework": ".NETCoreApp,Version=v11.0", + "Architecture": "X64", + "OS": "Microsoft Windows 10.0.26300", + "ProcessorCount": 16, + "WarmupSeconds": 2, + "MeasuredSeconds": 8, + "Durability": "Durable", + "RuntimeAsyncOptIn": false, + "CorrectnessPassed": true, + "Sink": 180766565, + "Assemblies": [ + { + "Name": "CSharpDB.Engine", + "Sha256": "506141fdf29ba9835f3966a9be1416b740ab9aad3d805e1c9a4183d299add310" + }, + { + "Name": "CSharpDB.Sql", + "Sha256": "8226dc5014fcd4362311e9281a1de5c099a03c54d4dc7e902e94794235ecdcd8" + }, + { + "Name": "CSharpDB.Primitives", + "Sha256": "6745cb9abf8771eec302a7b78738c7434808dc1a3ae788d1fe2d77184a77c64b" + }, + { + "Name": "CSharpDB.Benchmarks", + "Sha256": "35a8d5e989e0aacc86c062209644fb40a34895d26d7006a5a27779cc73c9e9d1" + } + ], + "Results": [ + { + "Name": "Parse SELECT", + "Operations": 55028, + "Units": 3521792, + "UnitsPerOperation": 64, + "ElapsedSeconds": 8.0000783, + "OperationsPerSecond": 6878.432677340171, + "UnitsPerSecond": 440219.69134977093, + "MeanUsPerUnit": 2.2715930696645343, + "P50OperationUs": 134.8, + "P95OperationUs": 196.3, + "P99OperationUs": 249.9, + "RetainedSamples": 6879, + "SampleEvery": 8, + "AllocatedBytes": 21018617568, + "BytesPerUnit": 5968.159836810351, + "CpuMs": 7968.75, + "CpuUsPerUnit": 2.262697513084248, + "Gen0": 2512, + "Gen1": 27, + "Gen2": 0 + }, + { + "Name": "Cached PK lookup (10K rows)", + "Operations": 15141903, + "Units": 15141903, + "UnitsPerOperation": 1, + "ElapsedSeconds": 8.0000016, + "OperationsPerSecond": 1892737.4964525008, + "UnitsPerSecond": 1892737.4964525008, + "MeanUsPerUnit": 0.5283352825599265, + "P50OperationUs": 0.4, + "P95OperationUs": 0.9, + "P99OperationUs": 1.3, + "RetainedSamples": 236593, + "SampleEvery": 64, + "AllocatedBytes": 9568473944, + "BytesPerUnit": 631.9201717247826, + "CpuMs": 7984.375, + "CpuUsPerUnit": 0.5273032722505223, + "Gen0": 1144, + "Gen1": 0, + "Gen2": 0 + }, + { + "Name": "Full scan materialized (10K rows)", + "Operations": 5489, + "Units": 5489, + "UnitsPerOperation": 1, + "ElapsedSeconds": 8.0008847, + "OperationsPerSecond": 686.0491315416656, + "UnitsPerSecond": 686.0491315416656, + "MeanUsPerUnit": 1457.6215521952997, + "P50OperationUs": 1280.6, + "P95OperationUs": 2330.3, + "P99OperationUs": 3404.4, + "RetainedSamples": 5489, + "SampleEvery": 1, + "AllocatedBytes": 15857943872, + "BytesPerUnit": 2889040.6033885954, + "CpuMs": 7984.375, + "CpuUsPerUnit": 1454.6137730005466, + "Gen0": 1895, + "Gen1": 1583, + "Gen2": 0 + }, + { + "Name": "ORDER BY materialized (10K rows)", + "Operations": 2580, + "Units": 2580, + "UnitsPerOperation": 1, + "ElapsedSeconds": 8.0016208, + "OperationsPerSecond": 322.43467473489875, + "UnitsPerSecond": 322.43467473489875, + "MeanUsPerUnit": 3101.403410852713, + "P50OperationUs": 2857.3, + "P95OperationUs": 4314.7, + "P99OperationUs": 5600.6, + "RetainedSamples": 2580, + "SampleEvery": 1, + "AllocatedBytes": 7478184288, + "BytesPerUnit": 2898521.041860465, + "CpuMs": 8000, + "CpuUsPerUnit": 3100.7751937984494, + "Gen0": 894, + "Gen1": 740, + "Gen2": 0 + }, + { + "Name": "In-memory single INSERT", + "Operations": 2267163, + "Units": 2267163, + "UnitsPerOperation": 1, + "ElapsedSeconds": 8.0000016, + "OperationsPerSecond": 283395.31832093635, + "UnitsPerSecond": 283395.31832093635, + "MeanUsPerUnit": 3.5286398022550642, + "P50OperationUs": 2.8, + "P95OperationUs": 4.2, + "P99OperationUs": 16.4, + "RetainedSamples": 283396, + "SampleEvery": 8, + "AllocatedBytes": 4242915856, + "BytesPerUnit": 1871.4648465946207, + "CpuMs": 7968.75, + "CpuUsPerUnit": 3.514855350056436, + "Gen0": 454, + "Gen1": 76, + "Gen2": 4 + }, + { + "Name": "Durable single INSERT", + "Operations": 2185, + "Units": 2185, + "UnitsPerOperation": 1, + "ElapsedSeconds": 8.0029609, + "OperationsPerSecond": 273.023950423149, + "UnitsPerSecond": 273.023950423149, + "MeanUsPerUnit": 3662.6823340961096, + "P50OperationUs": 3543.1, + "P95OperationUs": 4265.5, + "P99OperationUs": 5496.3, + "RetainedSamples": 2185, + "SampleEvery": 1, + "AllocatedBytes": 7285656, + "BytesPerUnit": 3334.3963386727687, + "CpuMs": 1031.25, + "CpuUsPerUnit": 471.96796338672766, + "Gen0": 0, + "Gen1": 0, + "Gen2": 0 + }, + { + "Name": "Durable prepared batch (100 rows)", + "Operations": 2178, + "Units": 217800, + "UnitsPerOperation": 100, + "ElapsedSeconds": 8.0034168, + "OperationsPerSecond": 272.1337716661214, + "UnitsPerSecond": 27213.37716661214, + "MeanUsPerUnit": 36.74663360881543, + "P50OperationUs": 3531.4, + "P95OperationUs": 3837.1, + "P99OperationUs": 5522.7, + "RetainedSamples": 2178, + "SampleEvery": 1, + "AllocatedBytes": 28427160, + "BytesPerUnit": 130.51955922865014, + "CpuMs": 1093.75, + "CpuUsPerUnit": 5.021808999081727, + "Gen0": 3, + "Gen1": 1, + "Gen2": 0 + } + ], + "Checks": [ + { + "Name": "In-memory single INSERT", + "ExpectedRows": 2620594, + "ExpectedSum": 34337577667150, + "ReopenVerified": false + }, + { + "Name": "Durable single INSERT", + "ExpectedRows": 2757, + "ExpectedSum": 38019030, + "ReopenVerified": true + }, + { + "Name": "Durable prepared batch (100 rows)", + "ExpectedRows": 271800, + "ExpectedSum": 369377559000, + "ReopenVerified": true + } + ] +} \ No newline at end of file diff --git a/docs/design/benchmarks/dotnet11-2026-11-14/measured/pair-3-net10.0.json b/docs/design/benchmarks/dotnet11-2026-11-14/measured/pair-3-net10.0.json new file mode 100644 index 00000000..8bc26476 --- /dev/null +++ b/docs/design/benchmarks/dotnet11-2026-11-14/measured/pair-3-net10.0.json @@ -0,0 +1,211 @@ +{ + "SchemaVersion": 1, + "StartedUtc": "2026-11-14T08:52:24.2873931+00:00", + "CompletedUtc": "2026-11-14T08:53:35.413977+00:00", + "Runtime": ".NET 10.0.15", + "RuntimeVersion": "10.0.15", + "Framework": ".NETCoreApp,Version=v10.0", + "Architecture": "X64", + "OS": "Microsoft Windows 10.0.26300", + "ProcessorCount": 16, + "WarmupSeconds": 2, + "MeasuredSeconds": 8, + "Durability": "Durable", + "RuntimeAsyncOptIn": false, + "CorrectnessPassed": true, + "Sink": 177269025, + "Assemblies": [ + { + "Name": "CSharpDB.Engine", + "Sha256": "fd512e73b141b50190a449627f9ff886b2140b2b18bee561d8ab0db6d0dd0536" + }, + { + "Name": "CSharpDB.Sql", + "Sha256": "4677dbf762f2db544e160f23c9388236d3547e1a2262f39cdcca94cff1acca9d" + }, + { + "Name": "CSharpDB.Primitives", + "Sha256": "1a608a276c65e4b34350899bdcb95c5b8724a477ffc087d99dc87f0e85a71fee" + }, + { + "Name": "CSharpDB.Benchmarks", + "Sha256": "7120fb4009139cb9d2d0c1f707525aa1ce41a583c640ee435e1b1ed8cef5899f" + } + ], + "Results": [ + { + "Name": "Parse SELECT", + "Operations": 56185, + "Units": 3595840, + "UnitsPerOperation": 64, + "ElapsedSeconds": 8.0000705, + "OperationsPerSecond": 7023.06310925635, + "UnitsPerSecond": 449476.0389924064, + "MeanUsPerUnit": 2.2248127002313787, + "P50OperationUs": 133.3, + "P95OperationUs": 191, + "P99OperationUs": 229.9, + "RetainedSamples": 7024, + "SampleEvery": 8, + "AllocatedBytes": 21460547904, + "BytesPerUnit": 5968.159846934235, + "CpuMs": 7953.125, + "CpuUsPerUnit": 2.2117571972056598, + "Gen0": 2565, + "Gen1": 27, + "Gen2": 0 + }, + { + "Name": "Cached PK lookup (10K rows)", + "Operations": 13730322, + "Units": 13730322, + "UnitsPerOperation": 1, + "ElapsedSeconds": 8.0000004, + "OperationsPerSecond": 1716290.1641854919, + "UnitsPerSecond": 1716290.1641854919, + "MeanUsPerUnit": 0.5826520601629007, + "P50OperationUs": 0.5, + "P95OperationUs": 1, + "P99OperationUs": 1.4, + "RetainedSamples": 214537, + "SampleEvery": 64, + "AllocatedBytes": 8676467464, + "BytesPerUnit": 631.9201737584887, + "CpuMs": 7718.75, + "CpuUsPerUnit": 0.5621681705643903, + "Gen0": 1037, + "Gen1": 0, + "Gen2": 0 + }, + { + "Name": "Full scan materialized (10K rows)", + "Operations": 5258, + "Units": 5258, + "UnitsPerOperation": 1, + "ElapsedSeconds": 8.0011138, + "OperationsPerSecond": 657.158507106848, + "UnitsPerSecond": 657.158507106848, + "MeanUsPerUnit": 1521.7028908330165, + "P50OperationUs": 1341.8, + "P95OperationUs": 2513, + "P99OperationUs": 3712.1, + "RetainedSamples": 5258, + "SampleEvery": 1, + "AllocatedBytes": 15190575632, + "BytesPerUnit": 2889040.629897299, + "CpuMs": 7796.875, + "CpuUsPerUnit": 1482.859452263218, + "Gen0": 1815, + "Gen1": 1517, + "Gen2": 0 + }, + { + "Name": "ORDER BY materialized (10K rows)", + "Operations": 2422, + "Units": 2422, + "UnitsPerOperation": 1, + "ElapsedSeconds": 8.0027959, + "OperationsPerSecond": 302.644229624799, + "UnitsPerSecond": 302.644229624799, + "MeanUsPerUnit": 3304.2097027250206, + "P50OperationUs": 3044.5, + "P95OperationUs": 4556.9, + "P99OperationUs": 5403.2, + "RetainedSamples": 2422, + "SampleEvery": 1, + "AllocatedBytes": 7020236544, + "BytesPerUnit": 2898528.7134599504, + "CpuMs": 8000, + "CpuUsPerUnit": 3303.0553261767136, + "Gen0": 839, + "Gen1": 695, + "Gen2": 0 + }, + { + "Name": "In-memory single INSERT", + "Operations": 2146941, + "Units": 2146941, + "UnitsPerOperation": 1, + "ElapsedSeconds": 8.0000036, + "OperationsPerSecond": 268367.5042346231, + "UnitsPerSecond": 268367.5042346231, + "MeanUsPerUnit": 3.726233557419603, + "P50OperationUs": 3, + "P95OperationUs": 4.5, + "P99OperationUs": 17.1, + "RetainedSamples": 268368, + "SampleEvery": 8, + "AllocatedBytes": 4163568936, + "BytesPerUnit": 1939.302913307818, + "CpuMs": 7953.125, + "CpuUsPerUnit": 3.7043984906897767, + "Gen0": 445, + "Gen1": 63, + "Gen2": 4 + }, + { + "Name": "Durable single INSERT", + "Operations": 2310, + "Units": 2310, + "UnitsPerOperation": 1, + "ElapsedSeconds": 8.0012076, + "OperationsPerSecond": 288.7064197659363, + "UnitsPerSecond": 288.7064197659363, + "MeanUsPerUnit": 3463.726233766234, + "P50OperationUs": 3398.1, + "P95OperationUs": 3658.7, + "P99OperationUs": 4827.3, + "RetainedSamples": 2310, + "SampleEvery": 1, + "AllocatedBytes": 7837224, + "BytesPerUnit": 3392.737662337662, + "CpuMs": 515.625, + "CpuUsPerUnit": 223.21428571428572, + "Gen0": 0, + "Gen1": 0, + "Gen2": 0 + }, + { + "Name": "Durable prepared batch (100 rows)", + "Operations": 2252, + "Units": 225200, + "UnitsPerOperation": 100, + "ElapsedSeconds": 8.0011098, + "OperationsPerSecond": 281.4609543291107, + "UnitsPerSecond": 28146.09543291107, + "MeanUsPerUnit": 35.52890674955595, + "P50OperationUs": 3420, + "P95OperationUs": 3708.1, + "P99OperationUs": 6492.6, + "RetainedSamples": 2252, + "SampleEvery": 1, + "AllocatedBytes": 29511544, + "BytesPerUnit": 131.0459325044405, + "CpuMs": 921.875, + "CpuUsPerUnit": 4.093583481349911, + "Gen0": 3, + "Gen1": 1, + "Gen2": 0 + } + ], + "Checks": [ + { + "Name": "In-memory single INSERT", + "ExpectedRows": 2487236, + "ExpectedSum": 30931727034660, + "ReopenVerified": false + }, + { + "Name": "Durable single INSERT", + "ExpectedRows": 2875, + "ExpectedSum": 41342500, + "ReopenVerified": true + }, + { + "Name": "Durable prepared batch (100 rows)", + "ExpectedRows": 281300, + "ExpectedSum": 395649856500, + "ReopenVerified": true + } + ] +} \ No newline at end of file diff --git a/docs/design/benchmarks/dotnet11-2026-11-14/measured/pair-3-net11.0.json b/docs/design/benchmarks/dotnet11-2026-11-14/measured/pair-3-net11.0.json new file mode 100644 index 00000000..e9292d0f --- /dev/null +++ b/docs/design/benchmarks/dotnet11-2026-11-14/measured/pair-3-net11.0.json @@ -0,0 +1,211 @@ +{ + "SchemaVersion": 1, + "StartedUtc": "2026-11-14T08:53:35.5488089+00:00", + "CompletedUtc": "2026-11-14T08:54:46.6340331+00:00", + "Runtime": ".NET 11.0.0", + "RuntimeVersion": "11.0.0", + "Framework": ".NETCoreApp,Version=v11.0", + "Architecture": "X64", + "OS": "Microsoft Windows 10.0.26300", + "ProcessorCount": 16, + "WarmupSeconds": 2, + "MeasuredSeconds": 8, + "Durability": "Durable", + "RuntimeAsyncOptIn": false, + "CorrectnessPassed": true, + "Sink": 184983517, + "Assemblies": [ + { + "Name": "CSharpDB.Engine", + "Sha256": "506141fdf29ba9835f3966a9be1416b740ab9aad3d805e1c9a4183d299add310" + }, + { + "Name": "CSharpDB.Sql", + "Sha256": "8226dc5014fcd4362311e9281a1de5c099a03c54d4dc7e902e94794235ecdcd8" + }, + { + "Name": "CSharpDB.Primitives", + "Sha256": "6745cb9abf8771eec302a7b78738c7434808dc1a3ae788d1fe2d77184a77c64b" + }, + { + "Name": "CSharpDB.Benchmarks", + "Sha256": "35a8d5e989e0aacc86c062209644fb40a34895d26d7006a5a27779cc73c9e9d1" + } + ], + "Results": [ + { + "Name": "Parse SELECT", + "Operations": 60945, + "Units": 3900480, + "UnitsPerOperation": 64, + "ElapsedSeconds": 8.000047, + "OperationsPerSecond": 7618.080243778568, + "UnitsPerSecond": 487557.13560182834, + "MeanUsPerUnit": 2.051041666666667, + "P50OperationUs": 121.3, + "P95OperationUs": 180.5, + "P99OperationUs": 228.5, + "RetainedSamples": 7619, + "SampleEvery": 8, + "AllocatedBytes": 23278688256, + "BytesPerUnit": 5968.159881860694, + "CpuMs": 8000, + "CpuUsPerUnit": 2.0510296168676674, + "Gen0": 2783, + "Gen1": 30, + "Gen2": 0 + }, + { + "Name": "Cached PK lookup (10K rows)", + "Operations": 15087268, + "Units": 15087268, + "UnitsPerOperation": 1, + "ElapsedSeconds": 8.0000004, + "OperationsPerSecond": 1885908.4057045798, + "UnitsPerSecond": 1885908.4057045798, + "MeanUsPerUnit": 0.5302484452453552, + "P50OperationUs": 0.4, + "P95OperationUs": 0.9, + "P99OperationUs": 1.3, + "RetainedSamples": 235739, + "SampleEvery": 64, + "AllocatedBytes": 9533949256, + "BytesPerUnit": 631.9201896592544, + "CpuMs": 7984.375, + "CpuUsPerUnit": 0.5292127772900965, + "Gen0": 1139, + "Gen1": 1, + "Gen2": 0 + }, + { + "Name": "Full scan materialized (10K rows)", + "Operations": 5307, + "Units": 5307, + "UnitsPerOperation": 1, + "ElapsedSeconds": 8.0003172, + "OperationsPerSecond": 663.3486982241154, + "UnitsPerSecond": 663.3486982241154, + "MeanUsPerUnit": 1507.502769926512, + "P50OperationUs": 1318.3, + "P95OperationUs": 2472.4, + "P99OperationUs": 3487.7, + "RetainedSamples": 5307, + "SampleEvery": 1, + "AllocatedBytes": 15332138592, + "BytesPerUnit": 2889040.624081402, + "CpuMs": 7984.375, + "CpuUsPerUnit": 1504.4987752025627, + "Gen0": 1832, + "Gen1": 1530, + "Gen2": 0 + }, + { + "Name": "ORDER BY materialized (10K rows)", + "Operations": 2555, + "Units": 2555, + "UnitsPerOperation": 1, + "ElapsedSeconds": 8.001986, + "OperationsPerSecond": 319.2957348338275, + "UnitsPerSecond": 319.2957348338275, + "MeanUsPerUnit": 3131.892759295499, + "P50OperationUs": 2910.5, + "P95OperationUs": 4206.2, + "P99OperationUs": 5235.2, + "RetainedSamples": 2555, + "SampleEvery": 1, + "AllocatedBytes": 7405721240, + "BytesPerUnit": 2898521.033268102, + "CpuMs": 7765.625, + "CpuUsPerUnit": 3039.3835616438355, + "Gen0": 885, + "Gen1": 733, + "Gen2": 0 + }, + { + "Name": "In-memory single INSERT", + "Operations": 2220550, + "Units": 2220550, + "UnitsPerOperation": 1, + "ElapsedSeconds": 8.0000065, + "OperationsPerSecond": 277568.52447557385, + "UnitsPerSecond": 277568.52447557385, + "MeanUsPerUnit": 3.6027139672603634, + "P50OperationUs": 2.9, + "P95OperationUs": 4.3, + "P99OperationUs": 15.8, + "RetainedSamples": 277569, + "SampleEvery": 8, + "AllocatedBytes": 4165174968, + "BytesPerUnit": 1875.7402301231677, + "CpuMs": 8000, + "CpuUsPerUnit": 3.602711040057643, + "Gen0": 445, + "Gen1": 70, + "Gen2": 4 + }, + { + "Name": "Durable single INSERT", + "Operations": 2177, + "Units": 2177, + "UnitsPerOperation": 1, + "ElapsedSeconds": 8.0025352, + "OperationsPerSecond": 272.0387909071615, + "UnitsPerSecond": 272.0387909071615, + "MeanUsPerUnit": 3675.9463481855764, + "P50OperationUs": 3439.8, + "P95OperationUs": 5044.4, + "P99OperationUs": 8248.4, + "RetainedSamples": 2177, + "SampleEvery": 1, + "AllocatedBytes": 7255976, + "BytesPerUnit": 3333.016077170418, + "CpuMs": 562.5, + "CpuUsPerUnit": 258.3830960036748, + "Gen0": 0, + "Gen1": 0, + "Gen2": 0 + }, + { + "Name": "Durable prepared batch (100 rows)", + "Operations": 2146, + "Units": 214600, + "UnitsPerOperation": 100, + "ElapsedSeconds": 8.0034145, + "OperationsPerSecond": 268.1355563928371, + "UnitsPerSecond": 26813.55563928371, + "MeanUsPerUnit": 37.29456896551724, + "P50OperationUs": 3611.1, + "P95OperationUs": 4017.7, + "P99OperationUs": 10180.3, + "RetainedSamples": 2146, + "SampleEvery": 1, + "AllocatedBytes": 27939112, + "BytesPerUnit": 130.19157502329915, + "CpuMs": 1140.625, + "CpuUsPerUnit": 5.315121155638397, + "Gen0": 3, + "Gen1": 1, + "Gen2": 0 + } + ], + "Checks": [ + { + "Name": "In-memory single INSERT", + "ExpectedRows": 2576459, + "ExpectedSum": 33190717775700, + "ReopenVerified": false + }, + { + "Name": "Durable single INSERT", + "ExpectedRows": 2755, + "ExpectedSum": 37963900, + "ReopenVerified": true + }, + { + "Name": "Durable prepared batch (100 rows)", + "ExpectedRows": 268500, + "ExpectedSum": 360462592500, + "ReopenVerified": true + } + ] +} \ No newline at end of file diff --git a/docs/design/benchmarks/dotnet11-2026-11-14/migration-source.patch b/docs/design/benchmarks/dotnet11-2026-11-14/migration-source.patch new file mode 100644 index 00000000..abe9d415 --- /dev/null +++ b/docs/design/benchmarks/dotnet11-2026-11-14/migration-source.patch @@ -0,0 +1,1304 @@ +diff --git a/src/CSharpDB.Admin.Desktop/AdminHostProcess.cs b/src/CSharpDB.Admin.Desktop/AdminHostProcess.cs +index 0a7d777e..7414caab 100644 +--- a/src/CSharpDB.Admin.Desktop/AdminHostProcess.cs ++++ b/src/CSharpDB.Admin.Desktop/AdminHostProcess.cs +@@ -12,7 +12,7 @@ internal sealed class AdminHostProcess : IAsyncDisposable + private const string AdminExecutableName = "CSharpDB.Admin.exe"; + private const string AdminExecutableEnvironmentVariable = "CSHARPDB_ADMIN_EXE"; + private const string DesktopShellTokenHeaderName = "X-CSharpDB-Desktop-Shell-Token"; +- private const string AdminTargetFramework = "net10.0"; ++ private const string AdminTargetFramework = "net11.0"; + + #if DEBUG + private const string BuildConfiguration = "Debug"; +diff --git a/src/CSharpDB.Admin.Desktop/CSharpDB.Admin.Desktop.csproj b/src/CSharpDB.Admin.Desktop/CSharpDB.Admin.Desktop.csproj +index 0767a8fb..705fbf1d 100644 +--- a/src/CSharpDB.Admin.Desktop/CSharpDB.Admin.Desktop.csproj ++++ b/src/CSharpDB.Admin.Desktop/CSharpDB.Admin.Desktop.csproj +@@ -2,7 +2,7 @@ + + + WinExe +- net10.0-windows10.0.19041.0 ++ net11.0-windows10.0.19041.0 + true + enable + enable +diff --git a/src/CSharpDB.Admin.Forms.Web/CSharpDB.Admin.Forms.Web.csproj b/src/CSharpDB.Admin.Forms.Web/CSharpDB.Admin.Forms.Web.csproj +index 43dc2a3f..1e4ada29 100644 +--- a/src/CSharpDB.Admin.Forms.Web/CSharpDB.Admin.Forms.Web.csproj ++++ b/src/CSharpDB.Admin.Forms.Web/CSharpDB.Admin.Forms.Web.csproj +@@ -1,7 +1,7 @@ + + + +- net10.0 ++ net11.0 + enable + enable + CSharpDB.Admin.Forms.Web +diff --git a/src/CSharpDB.Admin.Forms.Web/README.md b/src/CSharpDB.Admin.Forms.Web/README.md +index 4265062b..d98c9580 100644 +--- a/src/CSharpDB.Admin.Forms.Web/README.md ++++ b/src/CSharpDB.Admin.Forms.Web/README.md +@@ -45,7 +45,7 @@ The host does not create forms. The target database must already contain them. + For example, the Fulfillment Hub sample seeds forms into: + + ```text +-samples/fulfillment-hub/bin/Debug/net10.0/fulfillment-hub-demo.db ++samples/fulfillment-hub/bin/Debug/net11.0/fulfillment-hub-demo.db + ``` + + ## Configuration +@@ -93,7 +93,7 @@ dotnet run --project src/CSharpDB.Admin.Forms.Web/CSharpDB.Admin.Forms.Web.cspro + Run against the Fulfillment Hub sample database on an explicit local URL: + + ```powershell +-dotnet run --project src/CSharpDB.Admin.Forms.Web/CSharpDB.Admin.Forms.Web.csproj -- --urls http://127.0.0.1:5095 --CSharpDB:DataSource=./samples/fulfillment-hub/bin/Debug/net10.0/fulfillment-hub-demo.db ++dotnet run --project src/CSharpDB.Admin.Forms.Web/CSharpDB.Admin.Forms.Web.csproj -- --urls http://127.0.0.1:5095 --CSharpDB:DataSource=./samples/fulfillment-hub/bin/Debug/net11.0/fulfillment-hub-demo.db + ``` + + After startup: +diff --git a/src/CSharpDB.Admin.Forms/CSharpDB.Admin.Forms.csproj b/src/CSharpDB.Admin.Forms/CSharpDB.Admin.Forms.csproj +index c9e88ff8..8d027f71 100644 +--- a/src/CSharpDB.Admin.Forms/CSharpDB.Admin.Forms.csproj ++++ b/src/CSharpDB.Admin.Forms/CSharpDB.Admin.Forms.csproj +@@ -1,7 +1,7 @@ + + + +- net10.0 ++ net11.0 + enable + enable + CSharpDB.Admin.Forms +diff --git a/src/CSharpDB.Admin.Forms/Evaluation/FormulaEvaluator.cs b/src/CSharpDB.Admin.Forms/Evaluation/FormulaEvaluator.cs +index 75c1100d..f38d1ebb 100644 +--- a/src/CSharpDB.Admin.Forms/Evaluation/FormulaEvaluator.cs ++++ b/src/CSharpDB.Admin.Forms/Evaluation/FormulaEvaluator.cs +@@ -1034,7 +1034,12 @@ public static class FormulaEvaluator + digits = (int)parsedDigits; + } + +- return Math.Round(value, digits, MidpointRounding.ToEven); ++ // Access-style Round retains the scale/round/unscale behavior used ++ // before .NET 11 corrected Math.Round(double, digits). ++ if (Math.Abs(value) >= 1e16) ++ return value; ++ double factor = Math.Pow(10, digits); ++ return Math.Round(value * factor, MidpointRounding.ToEven) / factor; + } + + private static object? EvaluateDomainFunction( +diff --git a/src/CSharpDB.Admin.Forms/Models/FormControlValueConverter.cs b/src/CSharpDB.Admin.Forms/Models/FormControlValueConverter.cs +index 15f711e2..f0cce624 100644 +--- a/src/CSharpDB.Admin.Forms/Models/FormControlValueConverter.cs ++++ b/src/CSharpDB.Admin.Forms/Models/FormControlValueConverter.cs +@@ -130,8 +130,11 @@ public static class FormControlValueConverter + case sbyte or byte or short or ushort or int or uint or long or ulong: + result = Convert.ToDecimal(value, CultureInfo.InvariantCulture); + return true; +- case float or double: +- result = Convert.ToDecimal(value, CultureInfo.InvariantCulture); ++ case double real: ++ result = CSharpDB.Primitives.CSharpDbDecimalCodec.FromDouble(real); ++ return true; ++ case float real: ++ result = CSharpDB.Primitives.CSharpDbDecimalCodec.FromSingle(real); + return true; + case string text: + return TryConvertTextToDecimal(text, out result); +diff --git a/src/CSharpDB.Admin.ImportExport/CSharpDB.Admin.ImportExport.csproj b/src/CSharpDB.Admin.ImportExport/CSharpDB.Admin.ImportExport.csproj +index c1de8e64..422fea03 100644 +--- a/src/CSharpDB.Admin.ImportExport/CSharpDB.Admin.ImportExport.csproj ++++ b/src/CSharpDB.Admin.ImportExport/CSharpDB.Admin.ImportExport.csproj +@@ -1,7 +1,7 @@ + + + +- net10.0 ++ net11.0 + enable + enable + CSharpDB.Admin.ImportExport +diff --git a/src/CSharpDB.Admin.ImportExport/Services/TableImportExportService.cs b/src/CSharpDB.Admin.ImportExport/Services/TableImportExportService.cs +index 7c1f64c2..1f869edb 100644 +--- a/src/CSharpDB.Admin.ImportExport/Services/TableImportExportService.cs ++++ b/src/CSharpDB.Admin.ImportExport/Services/TableImportExportService.cs +@@ -946,7 +946,12 @@ public sealed class TableImportExportService( + { + PrimitiveDbType.Integer => PrimitiveDbValue.FromInteger(Convert.ToInt64(value, CultureInfo.InvariantCulture)), + PrimitiveDbType.Real => PrimitiveDbValue.FromReal(Convert.ToDouble(value, CultureInfo.InvariantCulture)), +- PrimitiveDbType.Decimal => PrimitiveDbValue.FromDecimal(Convert.ToDecimal(value, CultureInfo.InvariantCulture)), ++ PrimitiveDbType.Decimal => PrimitiveDbValue.FromDecimal(value switch ++ { ++ double real => CSharpDB.Primitives.CSharpDbDecimalCodec.FromDouble(real), ++ float real => CSharpDB.Primitives.CSharpDbDecimalCodec.FromSingle(real), ++ _ => Convert.ToDecimal(value, CultureInfo.InvariantCulture), ++ }), + PrimitiveDbType.Text => PrimitiveDbValue.FromText(Convert.ToString(value, CultureInfo.InvariantCulture) ?? string.Empty), + PrimitiveDbType.Blob => PrimitiveDbValue.FromBlob(ConvertToBytes(value)), + _ => throw new InvalidOperationException($"Unsupported column type '{columnType}'."), +diff --git a/src/CSharpDB.Admin.Reports/CSharpDB.Admin.Reports.csproj b/src/CSharpDB.Admin.Reports/CSharpDB.Admin.Reports.csproj +index 56136941..23b1af23 100644 +--- a/src/CSharpDB.Admin.Reports/CSharpDB.Admin.Reports.csproj ++++ b/src/CSharpDB.Admin.Reports/CSharpDB.Admin.Reports.csproj +@@ -1,7 +1,7 @@ + + + +- net10.0 ++ net11.0 + enable + enable + CSharpDB.Admin.Reports +diff --git a/src/CSharpDB.Admin/CSharpDB.Admin.csproj b/src/CSharpDB.Admin/CSharpDB.Admin.csproj +index 88825955..a787dc4a 100644 +--- a/src/CSharpDB.Admin/CSharpDB.Admin.csproj ++++ b/src/CSharpDB.Admin/CSharpDB.Admin.csproj +@@ -1,7 +1,7 @@ + + + +- net10.0 ++ net11.0 + enable + enable + CSharpDB.Admin +diff --git a/src/CSharpDB.Api/CSharpDB.Api.csproj b/src/CSharpDB.Api/CSharpDB.Api.csproj +index 60245967..84183337 100644 +--- a/src/CSharpDB.Api/CSharpDB.Api.csproj ++++ b/src/CSharpDB.Api/CSharpDB.Api.csproj +@@ -1,7 +1,7 @@ + + + +- net10.0 ++ net11.0 + enable + enable + CSharpDB.Api +@@ -9,9 +9,9 @@ + + + +- +- +- ++ ++ ++ + + + +diff --git a/src/CSharpDB.Cli/CSharpDB.Cli.csproj b/src/CSharpDB.Cli/CSharpDB.Cli.csproj +index dc2d365f..b622da91 100644 +--- a/src/CSharpDB.Cli/CSharpDB.Cli.csproj ++++ b/src/CSharpDB.Cli/CSharpDB.Cli.csproj +@@ -2,7 +2,7 @@ + + + Exe +- net10.0 ++ net11.0 + enable + enable + CSharpDB.Cli +diff --git a/src/CSharpDB.Client/CSharpDB.Client.csproj b/src/CSharpDB.Client/CSharpDB.Client.csproj +index 5db7f3e3..a229e7fd 100644 +--- a/src/CSharpDB.Client/CSharpDB.Client.csproj ++++ b/src/CSharpDB.Client/CSharpDB.Client.csproj +@@ -1,7 +1,7 @@ + + + +- net10.0 ++ net11.0 + enable + enable + CSharpDB.Client +@@ -33,8 +33,6 @@ + all + runtime; build; native; contentfiles; analyzers; buildtransitive + +- +- + + + +diff --git a/src/CSharpDB.Client/Internal/EngineTransportClient.ProcedureHelpers.cs b/src/CSharpDB.Client/Internal/EngineTransportClient.ProcedureHelpers.cs +index 709016db..4a0799e0 100644 +--- a/src/CSharpDB.Client/Internal/EngineTransportClient.ProcedureHelpers.cs ++++ b/src/CSharpDB.Client/Internal/EngineTransportClient.ProcedureHelpers.cs +@@ -409,8 +409,8 @@ internal sealed partial class EngineTransportClient + case decimal number: result = number; return true; + case long integer: result = integer; return true; + case int integer: result = integer; return true; +- case double real when double.IsFinite(real): result = checked((decimal)real); return true; +- case float real when float.IsFinite(real): result = checked((decimal)real); return true; ++ case double real when double.IsFinite(real): result = CSharpDB.Primitives.CSharpDbDecimalCodec.FromDouble(real); return true; ++ case float real when float.IsFinite(real): result = CSharpDB.Primitives.CSharpDbDecimalCodec.FromSingle(real); return true; + case string text when decimal.TryParse( + text, + NumberStyles.Number, +diff --git a/src/CSharpDB.Client/Pipelines/CSharpDbPipelineComponents.cs b/src/CSharpDB.Client/Pipelines/CSharpDbPipelineComponents.cs +index d8904cd7..ffe98262 100644 +--- a/src/CSharpDB.Client/Pipelines/CSharpDbPipelineComponents.cs ++++ b/src/CSharpDB.Client/Pipelines/CSharpDbPipelineComponents.cs +@@ -377,6 +377,8 @@ internal sealed class CSharpDbTablePipelineDestination : IPipelineDestination + DbType.Decimal => value switch + { + decimal decimalValue => decimalValue, ++ double real => CSharpDB.Primitives.CSharpDbDecimalCodec.FromDouble(real), ++ float real => CSharpDB.Primitives.CSharpDbDecimalCodec.FromSingle(real), + _ => Convert.ToDecimal(value, CultureInfo.InvariantCulture), + }, + DbType.Text => value switch +diff --git a/src/CSharpDB.CodeModules/CSharpDB.CodeModules.csproj b/src/CSharpDB.CodeModules/CSharpDB.CodeModules.csproj +index 8949805d..b6782dc3 100644 +--- a/src/CSharpDB.CodeModules/CSharpDB.CodeModules.csproj ++++ b/src/CSharpDB.CodeModules/CSharpDB.CodeModules.csproj +@@ -1,7 +1,7 @@ + + + +- net10.0 ++ net11.0 + enable + enable + CSharpDB.CodeModules +@@ -16,7 +16,6 @@ + + + +- + + + +diff --git a/src/CSharpDB.Daemon/CSharpDB.Daemon.csproj b/src/CSharpDB.Daemon/CSharpDB.Daemon.csproj +index 5a963d74..f6e3a1f9 100644 +--- a/src/CSharpDB.Daemon/CSharpDB.Daemon.csproj ++++ b/src/CSharpDB.Daemon/CSharpDB.Daemon.csproj +@@ -1,7 +1,7 @@ + + + +- net10.0 ++ net11.0 + enable + enable + CSharpDB.Daemon +@@ -12,8 +12,8 @@ + + + +- +- ++ ++ + + + +diff --git a/src/CSharpDB.Daemon/README.md b/src/CSharpDB.Daemon/README.md +index ab663013..022c94e6 100644 +--- a/src/CSharpDB.Daemon/README.md ++++ b/src/CSharpDB.Daemon/README.md +@@ -165,7 +165,7 @@ For best remote performance: + + ## Requirements + +-- .NET SDK 10.0 or newer to build from source ++- .NET SDK 11.0 or newer to build from source + - no .NET SDK requirement when using the self-contained release archives + - a filesystem location where the daemon can create and update: + - `*.db` +diff --git a/src/CSharpDB.Data/CSharpDB.Data.csproj b/src/CSharpDB.Data/CSharpDB.Data.csproj +index 1ecc92bb..918317fe 100644 +--- a/src/CSharpDB.Data/CSharpDB.Data.csproj ++++ b/src/CSharpDB.Data/CSharpDB.Data.csproj +@@ -1,7 +1,7 @@ + + + +- net10.0 ++ net11.0 + enable + enable + ADO.NET provider for CSharpDB. Standard DbConnection, DbCommand, and DbDataReader with parameterized queries and transactions. +diff --git a/src/CSharpDB.Data/README.md b/src/CSharpDB.Data/README.md +index 319de07b..cb7b469c 100644 +--- a/src/CSharpDB.Data/README.md ++++ b/src/CSharpDB.Data/README.md +@@ -3,7 +3,7 @@ + ADO.NET provider for the [CSharpDB](https://github.com/MaxAkbar/CSharpDB) embedded database engine. Standard `DbConnection`, `DbCommand`, and `DbDataReader` with parameterized queries and transactions. + + [![NuGet](https://img.shields.io/nuget/v/CSharpDB.Data)](https://www.nuget.org/packages/CSharpDB.Data) +-[![.NET 10](https://img.shields.io/badge/.NET-10-512bd4)](https://dotnet.microsoft.com/download/dotnet/10.0) ++[![.NET 11](https://img.shields.io/badge/.NET-11-512bd4)](https://dotnet.microsoft.com/download/dotnet/11.0) + [![Release](https://img.shields.io/github/v/release/MaxAkbar/CSharpDB?display_name=tag&label=Release)](https://github.com/MaxAkbar/CSharpDB/releases/latest) + [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/MaxAkbar/CSharpDB/blob/main/LICENSE) + +diff --git a/src/CSharpDB.Data/SqlParameterBinder.cs b/src/CSharpDB.Data/SqlParameterBinder.cs +index 841bdd65..bf699af2 100644 +--- a/src/CSharpDB.Data/SqlParameterBinder.cs ++++ b/src/CSharpDB.Data/SqlParameterBinder.cs +@@ -94,9 +94,13 @@ internal static class SqlParameterBinder + decimal decimalValue; + try + { +- decimalValue = value is decimal exact +- ? exact +- : Convert.ToDecimal(value, CultureInfo.InvariantCulture); ++ decimalValue = value switch ++ { ++ decimal exact => exact, ++ double real => CSharpDbDecimalCodec.FromDouble(real), ++ float real => CSharpDbDecimalCodec.FromSingle(real), ++ _ => Convert.ToDecimal(value, CultureInfo.InvariantCulture), ++ }; + } + catch (Exception ex) when (ex is FormatException or InvalidCastException or OverflowException) + { +diff --git a/src/CSharpDB.Data/TypeMapper.cs b/src/CSharpDB.Data/TypeMapper.cs +index a257f2bb..a8ed659d 100644 +--- a/src/CSharpDB.Data/TypeMapper.cs ++++ b/src/CSharpDB.Data/TypeMapper.cs +@@ -162,7 +162,7 @@ internal static class TypeMapper + { + CoreDbType.Decimal => value.AsDecimal, + CoreDbType.Integer => value.AsInteger, +- CoreDbType.Real => checked((decimal)value.AsReal), ++ CoreDbType.Real => CSharpDbDecimalCodec.FromDouble(value.AsReal), + _ => throw new InvalidOperationException($"Cannot read {value.Type} as Decimal."), + }; + +diff --git a/src/CSharpDB.DataGeneration/CSharpDB.DataGeneration.csproj b/src/CSharpDB.DataGeneration/CSharpDB.DataGeneration.csproj +index 9766f89c..e842b3c3 100644 +--- a/src/CSharpDB.DataGeneration/CSharpDB.DataGeneration.csproj ++++ b/src/CSharpDB.DataGeneration/CSharpDB.DataGeneration.csproj +@@ -1,6 +1,6 @@ + + +- net10.0 ++ net11.0 + enable + enable + false +diff --git a/src/CSharpDB.DataGeneration/GeneratorCatalog.cs b/src/CSharpDB.DataGeneration/GeneratorCatalog.cs +index e846d512..ec74fd72 100644 +--- a/src/CSharpDB.DataGeneration/GeneratorCatalog.cs ++++ b/src/CSharpDB.DataGeneration/GeneratorCatalog.cs +@@ -147,7 +147,7 @@ public static class GeneratorCatalog + else if (column.Type == DbType.Integer) + return random.NextInclusive(checked((long)decimal.Ceiling(rule.Minimum)), checked((long)decimal.Floor(rule.Maximum))); + else if (column.Type == DbType.Decimal) +- return decimal.Round(rule.Minimum + (decimal)random.NextDouble() * (rule.Maximum - rule.Minimum), column.EffectiveType.Scale ?? 2); ++ return decimal.Round(rule.Minimum + CSharpDbDecimalCodec.FromDouble(random.NextDouble()) * (rule.Maximum - rule.Minimum), column.EffectiveType.Scale ?? 2); + else expression = new { op = "double", min = rule.Minimum, max = rule.Maximum, digits = 2 }; + } + else if (rule.Generator == FieldGenerator.ValueList) +@@ -193,7 +193,7 @@ public static class GeneratorCatalog + var table = new SqlTableSpec { GeneratorKey = tableId, Name = schema.TableName, + Columns = [new SqlColumnSpec { Name = columnId, Generator = JsonSerializer.SerializeToElement(expression) }] }; + object? result = SpecDataGenerator.GenerateRow(new GenerationOptions { Seed = profile.Seed, ReferenceUtc = profile.ReferenceUtc, Locale = profile.Locale }, table, ordinal)[columnId]; +- if (column.Type == DbType.Decimal && result is double real) return decimal.Round((decimal)real, column.EffectiveType.Scale ?? 2); ++ if (column.Type == DbType.Decimal && result is double real) return decimal.Round(CSharpDbDecimalCodec.FromDouble(real), column.EffectiveType.Scale ?? 2); + if (column.Type == DbType.Integer && result is double integer) return checked((long)Math.Round(integer)); + // Text generation is explicitly sized; typed constants and lists are validated without truncation. + if (rule.Generator == FieldGenerator.Email && result is string email) +diff --git a/src/CSharpDB.DataGeneration/README.md b/src/CSharpDB.DataGeneration/README.md +index 7dfaca1e..e54b1afe 100644 +--- a/src/CSharpDB.DataGeneration/README.md ++++ b/src/CSharpDB.DataGeneration/README.md +@@ -3,7 +3,7 @@ + Repeatable test-data generation and relationship-aware schema planning for the + [CSharpDB](https://github.com/MaxAkbar/CSharpDB) embedded database engine. + +-[![.NET 10](https://img.shields.io/badge/.NET-10-512bd4)](https://dotnet.microsoft.com/download/dotnet/10.0) ++[![.NET 11](https://img.shields.io/badge/.NET-11-512bd4)](https://dotnet.microsoft.com/download/dotnet/11.0) + [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/MaxAkbar/CSharpDB/blob/main/LICENSE) + + ## Overview +diff --git a/src/CSharpDB.DataPrivacy/CSharpDB.DataPrivacy.csproj b/src/CSharpDB.DataPrivacy/CSharpDB.DataPrivacy.csproj +index b0761c5b..c263dd97 100644 +--- a/src/CSharpDB.DataPrivacy/CSharpDB.DataPrivacy.csproj ++++ b/src/CSharpDB.DataPrivacy/CSharpDB.DataPrivacy.csproj +@@ -1,6 +1,6 @@ + + +- net10.0 ++ net11.0 + enable + enable + false +diff --git a/src/CSharpDB.DevOps/CSharpDB.DevOps.csproj b/src/CSharpDB.DevOps/CSharpDB.DevOps.csproj +index aff9c790..56045ba1 100644 +--- a/src/CSharpDB.DevOps/CSharpDB.DevOps.csproj ++++ b/src/CSharpDB.DevOps/CSharpDB.DevOps.csproj +@@ -1,7 +1,7 @@ + + + +- net10.0 ++ net11.0 + enable + enable + Database DevOps compare and deploy services for CSharpDB. +diff --git a/src/CSharpDB.Engine/CSharpDB.Engine.csproj b/src/CSharpDB.Engine/CSharpDB.Engine.csproj +index 66ba0074..f472e395 100644 +--- a/src/CSharpDB.Engine/CSharpDB.Engine.csproj ++++ b/src/CSharpDB.Engine/CSharpDB.Engine.csproj +@@ -20,7 +20,7 @@ + + + +- net10.0 ++ net11.0 + enable + enable + Lightweight embedded SQL database engine for .NET. Single-file storage, WAL durability, concurrent readers, and a typed Collection<T> NoSQL API. +diff --git a/src/CSharpDB.Engine/README.md b/src/CSharpDB.Engine/README.md +index b8592a30..2b4b52a0 100644 +--- a/src/CSharpDB.Engine/README.md ++++ b/src/CSharpDB.Engine/README.md +@@ -3,7 +3,7 @@ + Lightweight embedded SQL database engine for .NET with single-file storage, WAL durability, concurrent readers, and a typed `Collection` NoSQL API. + + [![NuGet](https://img.shields.io/nuget/v/CSharpDB.Engine)](https://www.nuget.org/packages/CSharpDB.Engine) +-[![.NET 10](https://img.shields.io/badge/.NET-10-512bd4)](https://dotnet.microsoft.com/download/dotnet/10.0) ++[![.NET 11](https://img.shields.io/badge/.NET-11-512bd4)](https://dotnet.microsoft.com/download/dotnet/11.0) + [![Release](https://img.shields.io/github/v/release/MaxAkbar/CSharpDB?display_name=tag&label=Release)](https://github.com/MaxAkbar/CSharpDB/releases/latest) + [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/MaxAkbar/CSharpDB/blob/main/LICENSE) + +diff --git a/src/CSharpDB.EntityFrameworkCore.Tools/CSharpDB.EntityFrameworkCore.Tools.csproj b/src/CSharpDB.EntityFrameworkCore.Tools/CSharpDB.EntityFrameworkCore.Tools.csproj +index 3e6c67a1..9d0aa920 100644 +--- a/src/CSharpDB.EntityFrameworkCore.Tools/CSharpDB.EntityFrameworkCore.Tools.csproj ++++ b/src/CSharpDB.EntityFrameworkCore.Tools/CSharpDB.EntityFrameworkCore.Tools.csproj +@@ -2,7 +2,7 @@ + + + Exe +- net10.0 ++ net11.0 + enable + enable + dotnet-csharpdb-ef +diff --git a/src/CSharpDB.EntityFrameworkCore.Tools/EfCoreAnalyzeCommandRunner.cs b/src/CSharpDB.EntityFrameworkCore.Tools/EfCoreAnalyzeCommandRunner.cs +index 63f780b4..4936904b 100644 +--- a/src/CSharpDB.EntityFrameworkCore.Tools/EfCoreAnalyzeCommandRunner.cs ++++ b/src/CSharpDB.EntityFrameworkCore.Tools/EfCoreAnalyzeCommandRunner.cs +@@ -409,7 +409,7 @@ internal static class EfCoreAnalyzeCommandRunner + EfCoreWorkerClientStatus.ProjectIncompatible => + ( + "CSHARPDB-EF-PROJECT-003", +- "The project must target only net10.0."), ++ "The project must target only net11.0."), + EfCoreWorkerClientStatus.BuildFailed => + ( + "CSHARPDB-EF-BUILD-001", +diff --git a/src/CSharpDB.EntityFrameworkCore.Tools/EfCoreWorkerClient.cs b/src/CSharpDB.EntityFrameworkCore.Tools/EfCoreWorkerClient.cs +index d8b62178..1d36d42c 100644 +--- a/src/CSharpDB.EntityFrameworkCore.Tools/EfCoreWorkerClient.cs ++++ b/src/CSharpDB.EntityFrameworkCore.Tools/EfCoreWorkerClient.cs +@@ -245,7 +245,7 @@ internal static class EfCoreWorkerClient + "-c", + "Debug", + "--framework", +- "net10.0", ++ "net11.0", + "--no-restore", + "--nologo", + "--verbosity", +@@ -662,7 +662,7 @@ internal static class EfCoreWorkerClient + { + return string.Equals( + properties.TargetFramework, +- "net10.0", ++ "net11.0", + StringComparison.Ordinal); + } + +@@ -673,11 +673,11 @@ internal static class EfCoreWorkerClient + return frameworks.Length == 1 && + string.Equals( + frameworks[0], +- "net10.0", ++ "net11.0", + StringComparison.Ordinal) && + string.Equals( + properties.TargetFramework, +- "net10.0", ++ "net11.0", + StringComparison.Ordinal); + } + +diff --git a/src/CSharpDB.EntityFrameworkCore.Tools/README.md b/src/CSharpDB.EntityFrameworkCore.Tools/README.md +index bf9fbcb2..31496bc7 100644 +--- a/src/CSharpDB.EntityFrameworkCore.Tools/README.md ++++ b/src/CSharpDB.EntityFrameworkCore.Tools/README.md +@@ -28,7 +28,7 @@ dotnet csharpdb-ef analyze ` + + Use `--format json` for a deterministic machine-readable report. + +-The current contract accepts one restored, single-target `net10.0` project and ++The current contract accepts one restored, single-target `net11.0` project and + builds its Debug output with `--no-restore`. The context may be specified by + its fully qualified name or by a unique simple name. + +diff --git a/src/CSharpDB.EntityFrameworkCore/CSharpDB.EntityFrameworkCore.csproj b/src/CSharpDB.EntityFrameworkCore/CSharpDB.EntityFrameworkCore.csproj +index c096fca7..3a6a101d 100644 +--- a/src/CSharpDB.EntityFrameworkCore/CSharpDB.EntityFrameworkCore.csproj ++++ b/src/CSharpDB.EntityFrameworkCore/CSharpDB.EntityFrameworkCore.csproj +@@ -1,7 +1,7 @@ + + + +- net10.0 ++ net11.0 + enable + enable + CSharpDB.EntityFrameworkCore +diff --git a/src/CSharpDB.EntityFrameworkCore/README.md b/src/CSharpDB.EntityFrameworkCore/README.md +index 54d9d845..02235108 100644 +--- a/src/CSharpDB.EntityFrameworkCore/README.md ++++ b/src/CSharpDB.EntityFrameworkCore/README.md +@@ -6,7 +6,7 @@ Use standard EF Core `DbContext`, migrations, and LINQ patterns against + embedded file-backed or private in-memory CSharpDB databases. + + [![NuGet](https://img.shields.io/nuget/v/CSharpDB.EntityFrameworkCore)](https://www.nuget.org/packages/CSharpDB.EntityFrameworkCore) +-[![.NET 10](https://img.shields.io/badge/.NET-10-512bd4)](https://dotnet.microsoft.com/download/dotnet/10.0) ++[![.NET 11](https://img.shields.io/badge/.NET-11-512bd4)](https://dotnet.microsoft.com/download/dotnet/11.0) + [![Release](https://img.shields.io/github/v/release/MaxAkbar/CSharpDB?display_name=tag&label=Release)](https://github.com/MaxAkbar/CSharpDB/releases/latest) + [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/MaxAkbar/CSharpDB/blob/main/LICENSE) + +@@ -296,7 +296,7 @@ remote endpoint. + + For adoption review, the separate + [`csharpdb-ef` tool](../CSharpDB.EntityFrameworkCore.Tools/README.md) analyzes a +-restored, single-target `net10.0` project's compiled migrations with the ++restored, single-target `net11.0` project's compiled migrations with the + provider active: + + ```bash +diff --git a/src/CSharpDB.Execution/CSharpDB.Execution.csproj b/src/CSharpDB.Execution/CSharpDB.Execution.csproj +index 1a884782..9498c21e 100644 +--- a/src/CSharpDB.Execution/CSharpDB.Execution.csproj ++++ b/src/CSharpDB.Execution/CSharpDB.Execution.csproj +@@ -19,7 +19,7 @@ + + + +- net10.0 ++ net11.0 + enable + enable + Query planner, operator tree, and expression evaluator for the CSharpDB embedded database. +diff --git a/src/CSharpDB.Execution/README.md b/src/CSharpDB.Execution/README.md +index c69b4a27..54707eb3 100644 +--- a/src/CSharpDB.Execution/README.md ++++ b/src/CSharpDB.Execution/README.md +@@ -3,7 +3,7 @@ + Query planner, operator tree, and expression evaluator for the [CSharpDB](https://github.com/MaxAkbar/CSharpDB) embedded database engine. + + [![NuGet](https://img.shields.io/nuget/v/CSharpDB.Execution)](https://www.nuget.org/packages/CSharpDB.Execution) +-[![.NET 10](https://img.shields.io/badge/.NET-10-512bd4)](https://dotnet.microsoft.com/download/dotnet/10.0) ++[![.NET 11](https://img.shields.io/badge/.NET-11-512bd4)](https://dotnet.microsoft.com/download/dotnet/11.0) + [![Release](https://img.shields.io/github/v/release/MaxAkbar/CSharpDB?display_name=tag&label=Release)](https://github.com/MaxAkbar/CSharpDB/releases/latest) + [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/MaxAkbar/CSharpDB/blob/main/LICENSE) + +diff --git a/src/CSharpDB.Execution/SqlTypeCoercion.cs b/src/CSharpDB.Execution/SqlTypeCoercion.cs +index 24836181..93f9ad1e 100644 +--- a/src/CSharpDB.Execution/SqlTypeCoercion.cs ++++ b/src/CSharpDB.Execution/SqlTypeCoercion.cs +@@ -367,7 +367,7 @@ internal static class SqlTypeCoercion + { + DbType.Decimal => value.AsDecimal, + DbType.Integer => value.AsInteger, +- DbType.Real when double.IsFinite(value.AsReal) => checked((decimal)value.AsReal), ++ DbType.Real when double.IsFinite(value.AsReal) => CSharpDbDecimalCodec.FromDouble(value.AsReal), + DbType.Text when explicitCast => + decimal.Parse(value.AsText, NumberStyles.Number, CultureInfo.InvariantCulture), + _ => throw new InvalidOperationException("A finite numeric value is required."), +@@ -647,7 +647,7 @@ internal static class SqlTypeCoercion + else if (value.Type == DbType.Decimal) + text = FormatSecondsInterval(value.AsDecimal); + else if (value.Type == DbType.Real && explicitCast && double.IsFinite(value.AsReal)) +- text = FormatSecondsInterval(checked((decimal)value.AsReal)); ++ text = FormatSecondsInterval(CSharpDbDecimalCodec.FromDouble(value.AsReal)); + else + throw new InvalidOperationException("INTERVAL DAY TO SECOND requires interval text or a numeric second count."); + +diff --git a/src/CSharpDB.Generators/CSharpDB.Generators.csproj b/src/CSharpDB.Generators/CSharpDB.Generators.csproj +index cc0cda6a..dea9dbb0 100644 +--- a/src/CSharpDB.Generators/CSharpDB.Generators.csproj ++++ b/src/CSharpDB.Generators/CSharpDB.Generators.csproj +@@ -14,7 +14,8 @@ + + + +- ++ + + + +diff --git a/src/CSharpDB.ImportExport/CSharpDB.ImportExport.csproj b/src/CSharpDB.ImportExport/CSharpDB.ImportExport.csproj +index 0878efad..adae5d59 100644 +--- a/src/CSharpDB.ImportExport/CSharpDB.ImportExport.csproj ++++ b/src/CSharpDB.ImportExport/CSharpDB.ImportExport.csproj +@@ -1,7 +1,7 @@ + + + +- net10.0 ++ net11.0 + enable + enable + Native table archive import/export support for CSharpDB. +diff --git a/src/CSharpDB.Mcp/CSharpDB.Mcp.csproj b/src/CSharpDB.Mcp/CSharpDB.Mcp.csproj +index f27e0885..ca4b5d6e 100644 +--- a/src/CSharpDB.Mcp/CSharpDB.Mcp.csproj ++++ b/src/CSharpDB.Mcp/CSharpDB.Mcp.csproj +@@ -2,7 +2,7 @@ + + + Exe +- net10.0 ++ net11.0 + enable + enable + CSharpDB.Mcp +@@ -15,7 +15,7 @@ + + + +- ++ + + + +diff --git a/src/CSharpDB.Migration.Access.Worker/CSharpDB.Migration.Access.Worker.csproj b/src/CSharpDB.Migration.Access.Worker/CSharpDB.Migration.Access.Worker.csproj +index 8ba925b7..0aa940f1 100644 +--- a/src/CSharpDB.Migration.Access.Worker/CSharpDB.Migration.Access.Worker.csproj ++++ b/src/CSharpDB.Migration.Access.Worker/CSharpDB.Migration.Access.Worker.csproj +@@ -2,7 +2,7 @@ + + + Exe +- net10.0 ++ net11.0 + enable + enable + csharpdb-migration-access-worker +diff --git a/src/CSharpDB.Migration.Access/CSharpDB.Migration.Access.csproj b/src/CSharpDB.Migration.Access/CSharpDB.Migration.Access.csproj +index 60cf3084..bac8f986 100644 +--- a/src/CSharpDB.Migration.Access/CSharpDB.Migration.Access.csproj ++++ b/src/CSharpDB.Migration.Access/CSharpDB.Migration.Access.csproj +@@ -1,7 +1,7 @@ + + + +- net10.0 ++ net11.0 + enable + enable + CSharpDB.Migration.Access +@@ -13,7 +13,7 @@ + + + +- ++ + + + +diff --git a/src/CSharpDB.Migration.Access/THIRD-PARTY-NOTICES.md b/src/CSharpDB.Migration.Access/THIRD-PARTY-NOTICES.md +index cfdbe1c4..aa1ac481 100644 +--- a/src/CSharpDB.Migration.Access/THIRD-PARTY-NOTICES.md ++++ b/src/CSharpDB.Migration.Access/THIRD-PARTY-NOTICES.md +@@ -7,16 +7,16 @@ prerequisite and is not redistributed. + + | Package | Version | License | + | --- | --- | --- | +-| System.Configuration.ConfigurationManager | 10.0.14 | MIT | +-| System.Data.OleDb | 10.0.14 | MIT | +-| System.Diagnostics.EventLog | 10.0.14 | MIT | +-| System.Diagnostics.PerformanceCounter | 10.0.14 | MIT | +-| System.Security.Cryptography.ProtectedData | 10.0.14 | MIT | ++| System.Configuration.ConfigurationManager | 11.0.0 | MIT | ++| System.Data.OleDb | 11.0.0 | MIT | ++| System.Diagnostics.EventLog | 11.0.0 | MIT | ++| System.Diagnostics.PerformanceCounter | 11.0.0 | MIT | ++| System.Security.Cryptography.ProtectedData | 11.0.0 | MIT | + + ## System.Data.OleDb + + - Package: System.Data.OleDb +-- Version: 10.0.14 ++- Version: 11.0.0 + - Project: https://github.com/dotnet/runtime + - License: MIT + +diff --git a/src/CSharpDB.Migration.CSharpDb.Ddl/CSharpDB.Migration.CSharpDb.Ddl.csproj b/src/CSharpDB.Migration.CSharpDb.Ddl/CSharpDB.Migration.CSharpDb.Ddl.csproj +index a318712d..b8fae71d 100644 +--- a/src/CSharpDB.Migration.CSharpDb.Ddl/CSharpDB.Migration.CSharpDb.Ddl.csproj ++++ b/src/CSharpDB.Migration.CSharpDb.Ddl/CSharpDB.Migration.CSharpDb.Ddl.csproj +@@ -1,7 +1,7 @@ + + + +- net10.0 ++ net11.0 + enable + enable + CSharpDB.Migration.CSharpDb.Ddl +diff --git a/src/CSharpDB.Migration.CSharpDb/CSharpDB.Migration.CSharpDb.csproj b/src/CSharpDB.Migration.CSharpDb/CSharpDB.Migration.CSharpDb.csproj +index db0b25c4..a4eea7de 100644 +--- a/src/CSharpDB.Migration.CSharpDb/CSharpDB.Migration.CSharpDb.csproj ++++ b/src/CSharpDB.Migration.CSharpDb/CSharpDB.Migration.CSharpDb.csproj +@@ -1,7 +1,7 @@ + + + +- net10.0 ++ net11.0 + enable + enable + CSharpDB.Migration.CSharpDb +diff --git a/src/CSharpDB.Migration.Compatibility/CSharpDB.Migration.Compatibility.csproj b/src/CSharpDB.Migration.Compatibility/CSharpDB.Migration.Compatibility.csproj +index f380836a..e30a2004 100644 +--- a/src/CSharpDB.Migration.Compatibility/CSharpDB.Migration.Compatibility.csproj ++++ b/src/CSharpDB.Migration.Compatibility/CSharpDB.Migration.Compatibility.csproj +@@ -1,7 +1,7 @@ + + + +- net10.0 ++ net11.0 + enable + enable + CSharpDB.Migration.Compatibility +diff --git a/src/CSharpDB.Migration.DualRun/CSharpDB.Migration.DualRun.csproj b/src/CSharpDB.Migration.DualRun/CSharpDB.Migration.DualRun.csproj +index 8a8cf3da..70f6c26a 100644 +--- a/src/CSharpDB.Migration.DualRun/CSharpDB.Migration.DualRun.csproj ++++ b/src/CSharpDB.Migration.DualRun/CSharpDB.Migration.DualRun.csproj +@@ -1,7 +1,7 @@ + + + +- net10.0 ++ net11.0 + enable + enable + CSharpDB.Migration.DualRun +diff --git a/src/CSharpDB.Migration.Files/CSharpDB.Migration.Files.csproj b/src/CSharpDB.Migration.Files/CSharpDB.Migration.Files.csproj +index 317466ff..bb5c60d4 100644 +--- a/src/CSharpDB.Migration.Files/CSharpDB.Migration.Files.csproj ++++ b/src/CSharpDB.Migration.Files/CSharpDB.Migration.Files.csproj +@@ -1,7 +1,7 @@ + + + +- net10.0 ++ net11.0 + enable + enable + CSharpDB.Migration.Files +diff --git a/src/CSharpDB.Migration.LiteDb/CSharpDB.Migration.LiteDb.csproj b/src/CSharpDB.Migration.LiteDb/CSharpDB.Migration.LiteDb.csproj +index 8f27529c..43af66d6 100644 +--- a/src/CSharpDB.Migration.LiteDb/CSharpDB.Migration.LiteDb.csproj ++++ b/src/CSharpDB.Migration.LiteDb/CSharpDB.Migration.LiteDb.csproj +@@ -1,7 +1,7 @@ + + + +- net10.0 ++ net11.0 + enable + enable + CSharpDB.Migration.LiteDb +diff --git a/src/CSharpDB.Migration.MySql.Worker/CSharpDB.Migration.MySql.Worker.csproj b/src/CSharpDB.Migration.MySql.Worker/CSharpDB.Migration.MySql.Worker.csproj +index 9ee547b2..a1697e85 100644 +--- a/src/CSharpDB.Migration.MySql.Worker/CSharpDB.Migration.MySql.Worker.csproj ++++ b/src/CSharpDB.Migration.MySql.Worker/CSharpDB.Migration.MySql.Worker.csproj +@@ -2,7 +2,7 @@ + + + Exe +- net10.0 ++ net11.0 + enable + enable + csharpdb-migration-mysql-worker +diff --git a/src/CSharpDB.Migration.MySql/CSharpDB.Migration.MySql.csproj b/src/CSharpDB.Migration.MySql/CSharpDB.Migration.MySql.csproj +index af72c6a0..94cb048c 100644 +--- a/src/CSharpDB.Migration.MySql/CSharpDB.Migration.MySql.csproj ++++ b/src/CSharpDB.Migration.MySql/CSharpDB.Migration.MySql.csproj +@@ -1,7 +1,7 @@ + + + +- net10.0 ++ net11.0 + enable + enable + CSharpDB.Migration.MySql +diff --git a/src/CSharpDB.Migration.MySql/README.md b/src/CSharpDB.Migration.MySql/README.md +index 6c64f6b0..5e7b7b00 100644 +--- a/src/CSharpDB.Migration.MySql/README.md ++++ b/src/CSharpDB.Migration.MySql/README.md +@@ -288,7 +288,7 @@ time-of-day semantic type. + ## Dependencies + + MySqlConnector 2.6.2 is pinned directly and is managed-only. The reviewed +-`net10.0` worker runtime package closure is recorded in ++`net11.0` worker runtime package closure is recorded in + `THIRD-PARTY-NOTICES.md` and accompanies the optional worker distribution. + This project deliberately does not reference Oracle's `MySql.Data` package or + optional MariaDB authentication extensions. +diff --git a/src/CSharpDB.Migration.MySql/THIRD-PARTY-NOTICES.md b/src/CSharpDB.Migration.MySql/THIRD-PARTY-NOTICES.md +index caf61ae0..54602351 100644 +--- a/src/CSharpDB.Migration.MySql/THIRD-PARTY-NOTICES.md ++++ b/src/CSharpDB.Migration.MySql/THIRD-PARTY-NOTICES.md +@@ -1,12 +1,10 @@ + # Third-Party Notices + + The optional MySQL analyzer currently resolves the following NuGet runtime +-dependency closure for `net10.0`. All packages are MIT licensed. ++dependency closure for `net11.0`. All packages are MIT licensed. + + | Package | Version | License | + | --- | --- | --- | +-| Microsoft.Extensions.DependencyInjection.Abstractions | 8.0.2 | MIT | +-| Microsoft.Extensions.Logging.Abstractions | 8.0.2 | MIT | + | MySqlConnector | 2.6.2 | MIT | + + ## MySqlConnector +@@ -37,35 +35,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. +- +-## Microsoft.Extensions packages +- +-- Packages: Microsoft.Extensions.DependencyInjection.Abstractions, +- Microsoft.Extensions.Logging.Abstractions +-- Version: 8.0.2 +-- Project: https://github.com/dotnet/runtime +-- License: MIT +- +-The MIT License (MIT) +- +-Copyright (c) .NET Foundation and Contributors +- +-All rights reserved. +- +-Permission is hereby granted, free of charge, to any person obtaining a copy +-of this software and associated documentation files (the "Software"), to deal +-in the Software without restriction, including without limitation the rights +-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +-copies of the Software, and to permit persons to whom the Software is +-furnished to do so, subject to the following conditions: +- +-The above copyright notice and this permission notice shall be included in all +-copies or substantial portions of the Software. +- +-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +-SOFTWARE. +diff --git a/src/CSharpDB.Migration.Retained/CSharpDB.Migration.Retained.csproj b/src/CSharpDB.Migration.Retained/CSharpDB.Migration.Retained.csproj +index af4e74b7..c4d29fbb 100644 +--- a/src/CSharpDB.Migration.Retained/CSharpDB.Migration.Retained.csproj ++++ b/src/CSharpDB.Migration.Retained/CSharpDB.Migration.Retained.csproj +@@ -1,7 +1,7 @@ + + + +- net10.0 ++ net11.0 + enable + enable + CSharpDB.Migration.Retained +diff --git a/src/CSharpDB.Migration.SqlServer.Worker/CSharpDB.Migration.SqlServer.Worker.csproj b/src/CSharpDB.Migration.SqlServer.Worker/CSharpDB.Migration.SqlServer.Worker.csproj +index f3f5e324..b2a1bb5f 100644 +--- a/src/CSharpDB.Migration.SqlServer.Worker/CSharpDB.Migration.SqlServer.Worker.csproj ++++ b/src/CSharpDB.Migration.SqlServer.Worker/CSharpDB.Migration.SqlServer.Worker.csproj +@@ -2,7 +2,7 @@ + + + Exe +- net10.0 ++ net11.0 + enable + enable + csharpdb-migration-sqlserver-worker +diff --git a/src/CSharpDB.Migration.SqlServer/CSharpDB.Migration.SqlServer.csproj b/src/CSharpDB.Migration.SqlServer/CSharpDB.Migration.SqlServer.csproj +index c81c4318..d2367d6c 100644 +--- a/src/CSharpDB.Migration.SqlServer/CSharpDB.Migration.SqlServer.csproj ++++ b/src/CSharpDB.Migration.SqlServer/CSharpDB.Migration.SqlServer.csproj +@@ -1,7 +1,7 @@ + + + +- net10.0 ++ net11.0 + enable + enable + CSharpDB.Migration.SqlServer +@@ -17,7 +17,7 @@ + + + +- ++ + + + +diff --git a/src/CSharpDB.Migration.SqlServer/README.md b/src/CSharpDB.Migration.SqlServer/README.md +index bda13a42..2a048a6d 100644 +--- a/src/CSharpDB.Migration.SqlServer/README.md ++++ b/src/CSharpDB.Migration.SqlServer/README.md +@@ -252,7 +252,7 @@ setting. Authentication modes that require + + ## Runtime and bitness status + +-The project targets `net10.0` and does not bundle a SQL Server engine or other ++The project targets `net11.0` and does not bundle a SQL Server engine or other + server-side native runtime. Microsoft.Data.SqlClient brings its own managed and + platform transport dependencies, including transitive SNI runtime assets where + the package requires them. The generic CLI has no SQL Server project or package +diff --git a/src/CSharpDB.Migration.SqlServer/THIRD-PARTY-NOTICES.md b/src/CSharpDB.Migration.SqlServer/THIRD-PARTY-NOTICES.md +index 24fc0a93..c6c94fe6 100644 +--- a/src/CSharpDB.Migration.SqlServer/THIRD-PARTY-NOTICES.md ++++ b/src/CSharpDB.Migration.SqlServer/THIRD-PARTY-NOTICES.md +@@ -13,12 +13,7 @@ Microsoft Software License Terms included at + | Microsoft.Data.SqlClient.Extensions.Abstractions | 7.1.1 | MIT | + | Microsoft.Data.SqlClient.Internal.Logging | 7.1.1 | MIT | + | Microsoft.Data.SqlClient.SNI.runtime | 7.1.0 | Microsoft Software License Terms | +-| Microsoft.Extensions.Caching.Abstractions | 9.0.18 | MIT | + | Microsoft.Extensions.Caching.Memory | 9.0.18 | MIT | +-| Microsoft.Extensions.DependencyInjection.Abstractions | 10.0.0 | MIT | +-| Microsoft.Extensions.Logging.Abstractions | 10.0.0 | MIT | +-| Microsoft.Extensions.Options | 9.0.18 | MIT | +-| Microsoft.Extensions.Primitives | 9.0.18 | MIT | + | Microsoft.IdentityModel.Abstractions | 8.16.0 | MIT | + | Microsoft.IdentityModel.JsonWebTokens | 8.16.0 | MIT | + | Microsoft.IdentityModel.Logging | 8.16.0 | MIT | +@@ -30,7 +25,7 @@ Microsoft Software License Terms included at + | System.Configuration.ConfigurationManager | 9.0.18 | MIT | + | System.Diagnostics.EventLog | 9.0.18 | MIT | + | System.IdentityModel.Tokens.Jwt | 8.16.0 | MIT | +-| System.Security.Cryptography.Pkcs | 10.0.14 | MIT | ++| System.Security.Cryptography.Pkcs | 11.0.0 | MIT | + | System.Security.Cryptography.ProtectedData | 9.0.18 | MIT | + | System.Threading.RateLimiting | 9.0.18 | MIT | + +diff --git a/src/CSharpDB.Migration.Sqlite/CSharpDB.Migration.Sqlite.csproj b/src/CSharpDB.Migration.Sqlite/CSharpDB.Migration.Sqlite.csproj +index 01d60fb7..0b9100c6 100644 +--- a/src/CSharpDB.Migration.Sqlite/CSharpDB.Migration.Sqlite.csproj ++++ b/src/CSharpDB.Migration.Sqlite/CSharpDB.Migration.Sqlite.csproj +@@ -1,7 +1,7 @@ + + + +- net10.0 ++ net11.0 + enable + enable + CSharpDB.Migration.Sqlite +diff --git a/src/CSharpDB.Migration/CSharpDB.Migration.csproj b/src/CSharpDB.Migration/CSharpDB.Migration.csproj +index d69d61af..db91ff85 100644 +--- a/src/CSharpDB.Migration/CSharpDB.Migration.csproj ++++ b/src/CSharpDB.Migration/CSharpDB.Migration.csproj +@@ -1,7 +1,7 @@ + + + +- net10.0 ++ net11.0 + enable + enable + CSharpDB.Migration +diff --git a/src/CSharpDB.Native/CSharpDB.Native.csproj b/src/CSharpDB.Native/CSharpDB.Native.csproj +index cfa01ddf..ea2b3a5c 100644 +--- a/src/CSharpDB.Native/CSharpDB.Native.csproj ++++ b/src/CSharpDB.Native/CSharpDB.Native.csproj +@@ -14,7 +14,7 @@ + --> + + +- net10.0 ++ net11.0 + enable + enable + true +diff --git a/src/CSharpDB.Native/README.md b/src/CSharpDB.Native/README.md +index ece604b9..a378166b 100644 +--- a/src/CSharpDB.Native/README.md ++++ b/src/CSharpDB.Native/README.md +@@ -46,7 +46,7 @@ A NativeAOT-compiled shared library that exposes the CSharpDB embedded database + + ### All Platforms + +-- [.NET 10 SDK](https://dotnet.microsoft.com/download/dotnet/10.0) or later ++- [.NET 11 SDK](https://dotnet.microsoft.com/download/dotnet/11.0) or later + + ### Windows + +@@ -88,7 +88,7 @@ xcode-select --install + dotnet publish src/CSharpDB.Native -c Release -r win-x64 + ``` + +-Output: `src/CSharpDB.Native/bin/Release/net10.0/win-x64/publish/CSharpDB.Native.dll` ++Output: `src/CSharpDB.Native/bin/Release/net11.0/win-x64/publish/CSharpDB.Native.dll` + + For ARM64 Windows: + +@@ -102,7 +102,7 @@ dotnet publish src/CSharpDB.Native -c Release -r win-arm64 + dotnet publish src/CSharpDB.Native -c Release -r linux-x64 + ``` + +-Output: `src/CSharpDB.Native/bin/Release/net10.0/linux-x64/publish/CSharpDB.Native.so` ++Output: `src/CSharpDB.Native/bin/Release/net11.0/linux-x64/publish/CSharpDB.Native.so` + + For ARM64 (e.g., Raspberry Pi, AWS Graviton): + +@@ -120,7 +120,7 @@ dotnet publish src/CSharpDB.Native -c Release -r osx-arm64 + dotnet publish src/CSharpDB.Native -c Release -r osx-x64 + ``` + +-Output: `src/CSharpDB.Native/bin/Release/net10.0/osx-arm64/publish/CSharpDB.Native.dylib` ++Output: `src/CSharpDB.Native/bin/Release/net11.0/osx-arm64/publish/CSharpDB.Native.dylib` + + ### Android + +diff --git a/src/CSharpDB.Observability/CSharpDB.Observability.csproj b/src/CSharpDB.Observability/CSharpDB.Observability.csproj +index 7817b2c2..e83a91be 100644 +--- a/src/CSharpDB.Observability/CSharpDB.Observability.csproj ++++ b/src/CSharpDB.Observability/CSharpDB.Observability.csproj +@@ -1,7 +1,7 @@ + + + +- net10.0 ++ net11.0 + enable + enable + CSharpDB.Observability +diff --git a/src/CSharpDB.Observability/README.md b/src/CSharpDB.Observability/README.md +index baa61562..0eab4710 100644 +--- a/src/CSharpDB.Observability/README.md ++++ b/src/CSharpDB.Observability/README.md +@@ -4,7 +4,7 @@ BCL-only observability contracts and safe runtime-diagnostics models for + [CSharpDB](https://github.com/MaxAkbar/CSharpDB). + + [![NuGet](https://img.shields.io/nuget/v/CSharpDB.Observability)](https://www.nuget.org/packages/CSharpDB.Observability) +-[![.NET 10](https://img.shields.io/badge/.NET-10-512bd4)](https://dotnet.microsoft.com/download/dotnet/10.0) ++[![.NET 11](https://img.shields.io/badge/.NET-11-512bd4)](https://dotnet.microsoft.com/download/dotnet/11.0) + [![Release](https://img.shields.io/github/v/release/MaxAkbar/CSharpDB?display_name=tag&label=Release)](https://github.com/MaxAkbar/CSharpDB/releases/latest) + [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/MaxAkbar/CSharpDB/blob/main/LICENSE) + +diff --git a/src/CSharpDB.Pipelines/CSharpDB.Pipelines.csproj b/src/CSharpDB.Pipelines/CSharpDB.Pipelines.csproj +index 78af763c..64fe3b50 100644 +--- a/src/CSharpDB.Pipelines/CSharpDB.Pipelines.csproj ++++ b/src/CSharpDB.Pipelines/CSharpDB.Pipelines.csproj +@@ -1,7 +1,7 @@ + + + +- net10.0 ++ net11.0 + enable + enable + Package contracts and runtime foundation for CSharpDB ETL pipelines. +diff --git a/src/CSharpDB.Pipelines/README.md b/src/CSharpDB.Pipelines/README.md +index 78a55a9f..5a960cdd 100644 +--- a/src/CSharpDB.Pipelines/README.md ++++ b/src/CSharpDB.Pipelines/README.md +@@ -3,7 +3,7 @@ + Package contracts and runtime foundation for CSharpDB ETL pipelines. + + [![NuGet](https://img.shields.io/nuget/v/CSharpDB.Pipelines)](https://www.nuget.org/packages/CSharpDB.Pipelines) +-[![.NET 10](https://img.shields.io/badge/.NET-10-512bd4)](https://dotnet.microsoft.com/download/dotnet/10.0) ++[![.NET 11](https://img.shields.io/badge/.NET-11-512bd4)](https://dotnet.microsoft.com/download/dotnet/11.0) + [![Release](https://img.shields.io/github/v/release/MaxAkbar/CSharpDB?display_name=tag&label=Release)](https://github.com/MaxAkbar/CSharpDB/releases/latest) + [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/MaxAkbar/CSharpDB/blob/main/LICENSE) + +diff --git a/src/CSharpDB.Pipelines/Runtime/BuiltIns/TransformSupport.cs b/src/CSharpDB.Pipelines/Runtime/BuiltIns/TransformSupport.cs +index 98a5264b..ff4238cc 100644 +--- a/src/CSharpDB.Pipelines/Runtime/BuiltIns/TransformSupport.cs ++++ b/src/CSharpDB.Pipelines/Runtime/BuiltIns/TransformSupport.cs +@@ -36,6 +36,8 @@ internal static class TransformSupport + DbType.Decimal => value switch + { + decimal decimalValue => decimalValue, ++ double real => CSharpDbDecimalCodec.FromDouble(real), ++ float real => CSharpDbDecimalCodec.FromSingle(real), + _ => Convert.ToDecimal(value, CultureInfo.InvariantCulture), + }, + DbType.Text => value switch +diff --git a/src/CSharpDB.Primitives/CSharpDB.Primitives.csproj b/src/CSharpDB.Primitives/CSharpDB.Primitives.csproj +index 46522084..cdd1f9f2 100644 +--- a/src/CSharpDB.Primitives/CSharpDB.Primitives.csproj ++++ b/src/CSharpDB.Primitives/CSharpDB.Primitives.csproj +@@ -1,7 +1,7 @@ +- ++ + + +- net10.0 ++ net11.0 + enable + enable + CSharpDB.Primitives +diff --git a/src/CSharpDB.Primitives/CSharpDbDecimalCodec.cs b/src/CSharpDB.Primitives/CSharpDbDecimalCodec.cs +index 6e89c0c0..737278b6 100644 +--- a/src/CSharpDB.Primitives/CSharpDbDecimalCodec.cs ++++ b/src/CSharpDB.Primitives/CSharpDbDecimalCodec.cs +@@ -1,3 +1,5 @@ ++using System.Globalization; ++ + namespace CSharpDB.Primitives; + + /// +@@ -12,6 +14,32 @@ public static class CSharpDbDecimalCodec + + private static readonly decimal[] ScaleFactors = CreateScaleFactors(); + ++ /// ++ /// Converts a SQL REAL to DECIMAL using 15 significant decimal digits. ++ /// This keeps binary floating-point tails out of decimal assignments after ++ /// .NET 11 changed casts to preserve the full binary value. ++ /// ++ public static decimal FromDouble(double value) ++ { ++ if (!double.IsFinite(value)) ++ throw new OverflowException("A non-finite value cannot be converted to DECIMAL."); ++ ++ Span text = stackalloc char[32]; ++ value.TryFormat(text, out int written, "G15", CultureInfo.InvariantCulture); ++ return decimal.Parse(text[..written], NumberStyles.Float, CultureInfo.InvariantCulture); ++ } ++ ++ /// Converts a single-precision value using 7 significant decimal digits. ++ public static decimal FromSingle(float value) ++ { ++ if (!float.IsFinite(value)) ++ throw new OverflowException("A non-finite value cannot be converted to DECIMAL."); ++ ++ Span text = stackalloc char[32]; ++ value.TryFormat(text, out int written, "G7", CultureInfo.InvariantCulture); ++ return decimal.Parse(text[..written], NumberStyles.Float, CultureInfo.InvariantCulture); ++ } ++ + public static (int Precision, int Scale) ResolveFacets(int? precision, int? scale) + { + int resolvedPrecision = precision ?? DefaultPrecision; +diff --git a/src/CSharpDB.Primitives/README.md b/src/CSharpDB.Primitives/README.md +index 24e10491..2057f84a 100644 +--- a/src/CSharpDB.Primitives/README.md ++++ b/src/CSharpDB.Primitives/README.md +@@ -3,7 +3,7 @@ + Shared types, schema definitions, and error codes for the [CSharpDB](https://github.com/MaxAkbar/CSharpDB) embedded database engine. + + [![NuGet](https://img.shields.io/nuget/v/CSharpDB.Primitives)](https://www.nuget.org/packages/CSharpDB.Primitives) +-[![.NET 10](https://img.shields.io/badge/.NET-10-512bd4)](https://dotnet.microsoft.com/download/dotnet/10.0) ++[![.NET 11](https://img.shields.io/badge/.NET-11-512bd4)](https://dotnet.microsoft.com/download/dotnet/11.0) + [![Release](https://img.shields.io/github/v/release/MaxAkbar/CSharpDB?display_name=tag&label=Release)](https://github.com/MaxAkbar/CSharpDB/releases/latest) + [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/MaxAkbar/CSharpDB/blob/main/LICENSE) + +diff --git a/src/CSharpDB.Sql/CSharpDB.Sql.csproj b/src/CSharpDB.Sql/CSharpDB.Sql.csproj +index 286a7650..776fd0a3 100644 +--- a/src/CSharpDB.Sql/CSharpDB.Sql.csproj ++++ b/src/CSharpDB.Sql/CSharpDB.Sql.csproj +@@ -6,7 +6,7 @@ + + + +- net10.0 ++ net11.0 + enable + enable + SQL tokenizer, recursive-descent parser, and AST for the CSharpDB embedded database. +diff --git a/src/CSharpDB.Sql/README.md b/src/CSharpDB.Sql/README.md +index f13e8cf2..aa9daabe 100644 +--- a/src/CSharpDB.Sql/README.md ++++ b/src/CSharpDB.Sql/README.md +@@ -3,7 +3,7 @@ + SQL tokenizer, recursive-descent parser, and abstract syntax tree (AST) for the [CSharpDB](https://github.com/MaxAkbar/CSharpDB) embedded database engine. + + [![NuGet](https://img.shields.io/nuget/v/CSharpDB.Sql)](https://www.nuget.org/packages/CSharpDB.Sql) +-[![.NET 10](https://img.shields.io/badge/.NET-10-512bd4)](https://dotnet.microsoft.com/download/dotnet/10.0) ++[![.NET 11](https://img.shields.io/badge/.NET-11-512bd4)](https://dotnet.microsoft.com/download/dotnet/11.0) + [![Release](https://img.shields.io/github/v/release/MaxAkbar/CSharpDB?display_name=tag&label=Release)](https://github.com/MaxAkbar/CSharpDB/releases/latest) + [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/MaxAkbar/CSharpDB/blob/main/LICENSE) + +diff --git a/src/CSharpDB.Storage.Diagnostics/CSharpDB.Storage.Diagnostics.csproj b/src/CSharpDB.Storage.Diagnostics/CSharpDB.Storage.Diagnostics.csproj +index 5008bb34..d8f2f3e2 100644 +--- a/src/CSharpDB.Storage.Diagnostics/CSharpDB.Storage.Diagnostics.csproj ++++ b/src/CSharpDB.Storage.Diagnostics/CSharpDB.Storage.Diagnostics.csproj +@@ -1,7 +1,7 @@ + + + +- net10.0 ++ net11.0 + enable + enable + Read-only storage diagnostics toolkit for CSharpDB database and WAL files. +diff --git a/src/CSharpDB.Storage.Diagnostics/README.md b/src/CSharpDB.Storage.Diagnostics/README.md +index 441668cb..64240003 100644 +--- a/src/CSharpDB.Storage.Diagnostics/README.md ++++ b/src/CSharpDB.Storage.Diagnostics/README.md +@@ -3,7 +3,7 @@ + Read-only storage diagnostics and integrity checking toolkit for [CSharpDB](https://github.com/MaxAkbar/CSharpDB) database files. + + [![NuGet](https://img.shields.io/nuget/v/CSharpDB.Storage.Diagnostics)](https://www.nuget.org/packages/CSharpDB.Storage.Diagnostics) +-[![.NET 10](https://img.shields.io/badge/.NET-10-512bd4)](https://dotnet.microsoft.com/download/dotnet/10.0) ++[![.NET 11](https://img.shields.io/badge/.NET-11-512bd4)](https://dotnet.microsoft.com/download/dotnet/11.0) + [![Release](https://img.shields.io/github/v/release/MaxAkbar/CSharpDB?display_name=tag&label=Release)](https://github.com/MaxAkbar/CSharpDB/releases/latest) + [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/MaxAkbar/CSharpDB/blob/main/LICENSE) + +diff --git a/src/CSharpDB.Storage/CSharpDB.Storage.csproj b/src/CSharpDB.Storage/CSharpDB.Storage.csproj +index 0ef0ba06..cb351560 100644 +--- a/src/CSharpDB.Storage/CSharpDB.Storage.csproj ++++ b/src/CSharpDB.Storage/CSharpDB.Storage.csproj +@@ -11,7 +11,7 @@ + + + +- net10.0 ++ net11.0 + enable + enable + true +diff --git a/src/CSharpDB/CSharpDB.csproj b/src/CSharpDB/CSharpDB.csproj +index 77e6c865..ad0c5cab 100644 +--- a/src/CSharpDB/CSharpDB.csproj ++++ b/src/CSharpDB/CSharpDB.csproj +@@ -1,7 +1,7 @@ + + + +- net10.0 ++ net11.0 + enable + enable + CSharpDB +diff --git a/src/CSharpDB/README.md b/src/CSharpDB/README.md +index 5b2e5957..79c2f79c 100644 +--- a/src/CSharpDB/README.md ++++ b/src/CSharpDB/README.md +@@ -3,7 +3,7 @@ + A zero-dependency embedded database engine for .NET with a documented CSharpDB SQL subset, a typed NoSQL Collection API, built-in full-text search, ETL pipelines, and an ADO.NET provider — all in a single NuGet package. + + [![NuGet](https://img.shields.io/nuget/v/CSharpDB)](https://www.nuget.org/packages/CSharpDB) +-[![.NET 10](https://img.shields.io/badge/.NET-10-512bd4)](https://dotnet.microsoft.com/download/dotnet/10.0) ++[![.NET 11](https://img.shields.io/badge/.NET-11-512bd4)](https://dotnet.microsoft.com/download/dotnet/11.0) + [![Release](https://img.shields.io/github/v/release/MaxAkbar/CSharpDB?display_name=tag&label=Release)](https://github.com/MaxAkbar/CSharpDB/releases/latest) + [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/MaxAkbar/CSharpDB/blob/main/LICENSE) + diff --git a/docs/design/benchmarks/dotnet11-2026-11-14/run-comparison.ps1.txt b/docs/design/benchmarks/dotnet11-2026-11-14/run-comparison.ps1.txt new file mode 100644 index 00000000..b5068a2a --- /dev/null +++ b/docs/design/benchmarks/dotnet11-2026-11-14/run-comparison.ps1.txt @@ -0,0 +1,37 @@ +$ErrorActionPreference = 'Stop' +Set-StrictMode -Version Latest +$root = $PSScriptRoot +$outputRoot = Join-Path $root 'measured' +New-Item -ItemType Directory -Path $outputRoot -Force | Out-Null +$cpu = Get-CimInstance Win32_Processor | Select-Object -First 1 Name,NumberOfCores,NumberOfLogicalProcessors +$os = Get-CimInstance Win32_OperatingSystem | Select-Object Caption,Version,TotalVisibleMemorySize,FreePhysicalMemory +$switches = @{} +foreach ($name in @('DOTNET_TieredPGO','DOTNET_TieredCompilation','DOTNET_ReadyToRun','DOTNET_gcServer','COMPlus_TieredPGO','COMPlus_TieredCompilation','COMPlus_ReadyToRun','COMPlus_gcServer','DOTNET_GCHeapHardLimit','DOTNET_ROLL_FORWARD')) { + $switches[$name] = [Environment]::GetEnvironmentVariable($name) +} +$artifacts = foreach ($tfm in @('net10.0','net11.0')) { + Get-ChildItem (Join-Path $root "runner/bin/Release/$tfm") -File | + Where-Object { $_.Extension -in @('.dll','.json') } | + ForEach-Object { [pscustomobject]@{Path=$_.FullName; Sha256=(Get-FileHash -LiteralPath $_.FullName -Algorithm SHA256).Hash.ToLowerInvariant()} } +} +[ordered]@{Date='2026-11-14'; Sdk=(dotnet --version); CPU=$cpu; OS=$os; WarmupSeconds=2; MeasuredSeconds=8; Pairs=3; Order=@('net10.0','net11.0','net11.0','net10.0','net10.0','net11.0'); Switches=$switches; Artifacts=@($artifacts)} | + ConvertTo-Json -Depth 8 | Set-Content -LiteralPath (Join-Path $root 'run-manifest.json') +$step = 0 +foreach ($pair in 1..3) { + $order = if ($pair -eq 2) { @('net11.0','net10.0') } else { @('net10.0','net11.0') } + foreach ($tfm in $order) { + $step++ + $output = Join-Path $outputRoot "pair-$pair-$tfm.json" + $log = Join-Path $outputRoot "pair-$pair-$tfm.log" + Write-Output "Starting run $step/6: pair $pair, $tfm" + & dotnet (Join-Path $root "runner/bin/Release/$tfm/CSharpDB.Benchmarks.dll") $output 2 8 *> $log + if ($LASTEXITCODE -ne 0) { Get-Content -LiteralPath $log -Tail 20; throw "Benchmark failed: pair $pair $tfm" } + $report = Get-Content -LiteralPath $output -Raw | ConvertFrom-Json + if (-not $report.CorrectnessPassed -or $report.Results.Count -ne 7) { throw 'Incomplete benchmark evidence.' } + Get-Content -LiteralPath $log + } +} +foreach ($artifact in $artifacts) { + if ((Get-FileHash -LiteralPath $artifact.Path -Algorithm SHA256).Hash.ToLowerInvariant() -cne $artifact.Sha256) { throw "Executed artifact changed: $($artifact.Path)" } +} +Write-Output 'All six measured runs completed; executed artifact hashes are unchanged.' diff --git a/docs/design/benchmarks/dotnet11-2026-11-14/run-focused.ps1.txt b/docs/design/benchmarks/dotnet11-2026-11-14/run-focused.ps1.txt new file mode 100644 index 00000000..40a010be --- /dev/null +++ b/docs/design/benchmarks/dotnet11-2026-11-14/run-focused.ps1.txt @@ -0,0 +1,37 @@ +$ErrorActionPreference = 'Stop' +Set-StrictMode -Version Latest +$root = $PSScriptRoot +$outputRoot = Join-Path $root 'focused' +New-Item -ItemType Directory -Path $outputRoot -Force | Out-Null +$cpu = Get-CimInstance Win32_Processor | Select-Object -First 1 Name,NumberOfCores,NumberOfLogicalProcessors +$os = Get-CimInstance Win32_OperatingSystem | Select-Object Caption,Version,TotalVisibleMemorySize,FreePhysicalMemory +$switches = @{} +foreach ($name in @('DOTNET_TieredPGO','DOTNET_TieredCompilation','DOTNET_ReadyToRun','DOTNET_gcServer','COMPlus_TieredPGO','COMPlus_TieredCompilation','COMPlus_ReadyToRun','COMPlus_gcServer','DOTNET_GCHeapHardLimit','DOTNET_ROLL_FORWARD')) { + $switches[$name] = [Environment]::GetEnvironmentVariable($name) +} +$artifacts = foreach ($tfm in @('net10.0','net11.0')) { + Get-ChildItem (Join-Path $root "durable-runner/bin/Release/$tfm") -File | + Where-Object { $_.Extension -in @('.dll','.json') } | + ForEach-Object { [pscustomobject]@{Path=$_.FullName; Sha256=(Get-FileHash -LiteralPath $_.FullName -Algorithm SHA256).Hash.ToLowerInvariant()} } +} +[ordered]@{Date='2026-11-14'; Sdk=(dotnet --version); CPU=$cpu; OS=$os; WarmupSeconds=4; MeasuredSeconds=20; Pairs=3; Order=@('net10.0','net11.0','net11.0','net10.0','net10.0','net11.0'); Switches=$switches; Artifacts=@($artifacts)} | + ConvertTo-Json -Depth 8 | Set-Content -LiteralPath (Join-Path $root 'focused-manifest.json') +$step = 0 +foreach ($pair in 1..3) { + $order = if ($pair -eq 2) { @('net11.0','net10.0') } else { @('net10.0','net11.0') } + foreach ($tfm in $order) { + $step++ + $output = Join-Path $outputRoot "pair-$pair-$tfm.json" + $log = Join-Path $outputRoot "pair-$pair-$tfm.log" + Write-Output "Starting run $step/6: pair $pair, $tfm" + & dotnet (Join-Path $root "durable-runner/bin/Release/$tfm/CSharpDB.Benchmarks.dll") $output 4 20 *> $log + if ($LASTEXITCODE -ne 0) { Get-Content -LiteralPath $log -Tail 20; throw "Benchmark failed: pair $pair $tfm" } + $report = Get-Content -LiteralPath $output -Raw | ConvertFrom-Json + if (-not $report.CorrectnessPassed -or $report.Results.Count -ne 1) { throw 'Incomplete benchmark evidence.' } + Get-Content -LiteralPath $log + } +} +foreach ($artifact in $artifacts) { + if ((Get-FileHash -LiteralPath $artifact.Path -Algorithm SHA256).Hash.ToLowerInvariant() -cne $artifact.Sha256) { throw "Executed artifact changed: $($artifact.Path)" } +} +Write-Output 'All six measured runs completed; executed artifact hashes are unchanged.' diff --git a/docs/design/benchmarks/dotnet11-2026-11-14/run-manifest.json b/docs/design/benchmarks/dotnet11-2026-11-14/run-manifest.json new file mode 100644 index 00000000..fb4aadee --- /dev/null +++ b/docs/design/benchmarks/dotnet11-2026-11-14/run-manifest.json @@ -0,0 +1,128 @@ +{ + "Date": "2026-11-14", + "Sdk": "11.0.100", + "CPU": { + "Name": "11th Gen Intel(R) Core(TM) i9-11900K @ 3.50GHz", + "NumberOfCores": 8, + "NumberOfLogicalProcessors": 16 + }, + "OS": { + "Caption": "Microsoft Windows 11 Pro", + "Version": "10.0.26300", + "TotalVisibleMemorySize": 100464544, + "FreePhysicalMemory": 70787000 + }, + "WarmupSeconds": 2, + "MeasuredSeconds": 8, + "Pairs": 3, + "Order": [ + "net10.0", + "net11.0", + "net11.0", + "net10.0", + "net10.0", + "net11.0" + ], + "Switches": { + "DOTNET_ReadyToRun": null, + "DOTNET_GCHeapHardLimit": null, + "DOTNET_gcServer": null, + "COMPlus_TieredPGO": null, + "COMPlus_gcServer": null, + "COMPlus_ReadyToRun": null, + "DOTNET_TieredPGO": null, + "DOTNET_ROLL_FORWARD": null, + "COMPlus_TieredCompilation": null, + "DOTNET_TieredCompilation": null + }, + "Artifacts": [ + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\runner\\bin\\Release\\net10.0\\CSharpDB.Benchmarks.deps.json", + "Sha256": "4a4296d6530681fe76fec8c5e4fe5309821fbd18ab151744c5a8c6cc809e5416" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\runner\\bin\\Release\\net10.0\\CSharpDB.Benchmarks.dll", + "Sha256": "7120fb4009139cb9d2d0c1f707525aa1ce41a583c640ee435e1b1ed8cef5899f" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\runner\\bin\\Release\\net10.0\\CSharpDB.Benchmarks.runtimeconfig.json", + "Sha256": "c230a317a54dd960bcbeb5f347f52e18dc665a26f7efda2159fced9a5ac7e097" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\runner\\bin\\Release\\net10.0\\CSharpDB.Engine.dll", + "Sha256": "fd512e73b141b50190a449627f9ff886b2140b2b18bee561d8ab0db6d0dd0536" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\runner\\bin\\Release\\net10.0\\CSharpDB.Execution.dll", + "Sha256": "ba86fb62bc23a03b8efdc06ebad82f47cb7074866d84786cd892f3b4365277b9" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\runner\\bin\\Release\\net10.0\\CSharpDB.ImportExport.dll", + "Sha256": "74e0f60e4fd741f5961d5bba710699de72079d834e99eb92944f9cf434365aa5" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\runner\\bin\\Release\\net10.0\\CSharpDB.Observability.dll", + "Sha256": "f7084364caedfc1252bfa7125aa774761b1dd4dbeda5d725b56bfd3b84ce7658" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\runner\\bin\\Release\\net10.0\\CSharpDB.Primitives.dll", + "Sha256": "1a608a276c65e4b34350899bdcb95c5b8724a477ffc087d99dc87f0e85a71fee" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\runner\\bin\\Release\\net10.0\\CSharpDB.Sql.dll", + "Sha256": "4677dbf762f2db544e160f23c9388236d3547e1a2262f39cdcca94cff1acca9d" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\runner\\bin\\Release\\net10.0\\CSharpDB.Storage.Diagnostics.dll", + "Sha256": "b9b667ad990673bb1b47ff2e8a750eae3341efe6e027a98cebfcb60b54eb5f0c" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\runner\\bin\\Release\\net10.0\\CSharpDB.Storage.dll", + "Sha256": "2f140a6a07f8c9f527548e1ed3a778625de7b9076b491c946726e2db2cad0109" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\runner\\bin\\Release\\net11.0\\CSharpDB.Benchmarks.deps.json", + "Sha256": "efd36b0fac37cc9fed451abdcd3cc142d9de421c5a59e9bb051bd0552821ce64" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\runner\\bin\\Release\\net11.0\\CSharpDB.Benchmarks.dll", + "Sha256": "35a8d5e989e0aacc86c062209644fb40a34895d26d7006a5a27779cc73c9e9d1" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\runner\\bin\\Release\\net11.0\\CSharpDB.Benchmarks.runtimeconfig.json", + "Sha256": "7baaa10dc21f2a7cf009e76de09f1a2f706cdfb2139af15629791d7d2cb7fd4f" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\runner\\bin\\Release\\net11.0\\CSharpDB.Engine.dll", + "Sha256": "506141fdf29ba9835f3966a9be1416b740ab9aad3d805e1c9a4183d299add310" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\runner\\bin\\Release\\net11.0\\CSharpDB.Execution.dll", + "Sha256": "7d476a979a928907450805cd3108206479b5af672dcc678b44f7ca525900bf4f" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\runner\\bin\\Release\\net11.0\\CSharpDB.ImportExport.dll", + "Sha256": "6691b7cd9cc5c08341076284a911bcbcf56d8801137ec34a70befa8f584c3370" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\runner\\bin\\Release\\net11.0\\CSharpDB.Observability.dll", + "Sha256": "5597d443bf373b113e9d28787f685390007652aa2f13668fefc37c0686b26bfe" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\runner\\bin\\Release\\net11.0\\CSharpDB.Primitives.dll", + "Sha256": "6745cb9abf8771eec302a7b78738c7434808dc1a3ae788d1fe2d77184a77c64b" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\runner\\bin\\Release\\net11.0\\CSharpDB.Sql.dll", + "Sha256": "8226dc5014fcd4362311e9281a1de5c099a03c54d4dc7e902e94794235ecdcd8" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\runner\\bin\\Release\\net11.0\\CSharpDB.Storage.Diagnostics.dll", + "Sha256": "21462004c55fa56d8947d3b81f485659f31acad6837a35cb3e0e976e6bc8527f" + }, + { + "Path": "C:\\Users\\maxim\\source\\Code\\CSharpDB\\.tmp\\dotnet11-benchmark-20261114\\runner\\bin\\Release\\net11.0\\CSharpDB.Storage.dll", + "Sha256": "228bf9bba17eec6de14c30acbd7b850f0577d1929caa30f3b164548d2067bbe5" + } + ] +} diff --git a/docs/design/benchmarks/dotnet11-2026-11-14/source-files.json b/docs/design/benchmarks/dotnet11-2026-11-14/source-files.json new file mode 100644 index 00000000..5e7f668c --- /dev/null +++ b/docs/design/benchmarks/dotnet11-2026-11-14/source-files.json @@ -0,0 +1,1338 @@ +[ + { + "Path": "Directory.Build.props", + "Sha256": "8e0982516e8aa734a6b39766fdff54651dfa99492a141e1facaa32432b05ab30" + }, + { + "Path": "Directory.Build.targets", + "Sha256": "7a188e93e52eadcfe76e530fdbd6dc808fbe96e910acaa30172495c68d4d51d3" + }, + { + "Path": "global.json", + "Sha256": "5feaf50426a6c5554654e326bedd2f6c6273f13b948b1ec6e11e12cae68f9f05" + }, + { + "Path": "src/CSharpDB.Engine/BTreeCopyUtility.cs", + "Sha256": "2654d068b724cbb6616378ee9fa8280bbe843a7aac7efcde52d0bc6a056bd7ac" + }, + { + "Path": "src/CSharpDB.Engine/CSharpDB.Engine.csproj", + "Sha256": "66809b67862d9e056c791041819a3f04c3a2c64250a37557f8349f0e047882ed" + }, + { + "Path": "src/CSharpDB.Engine/Collection.cs", + "Sha256": "6585a6e8500a3866f51c093db9a87879b683beea7bbb13df3cdad7446dba0125" + }, + { + "Path": "src/CSharpDB.Engine/CollectionDocumentCodec.cs", + "Sha256": "9cffc85d50feb8af5d4494c593bb06a5b069fc58e53ee7237cd8b9c33c8065c5" + }, + { + "Path": "src/CSharpDB.Engine/CollectionFieldAccessor.cs", + "Sha256": "65a1e5082be14a33b58405907ccf2d374547b156071d41eace048878c61ff463" + }, + { + "Path": "src/CSharpDB.Engine/CollectionIndexBinding.cs", + "Sha256": "bbf2f05e0df2bfd8606974ec0db759d9d8b4c724f2d70f32bfe98ff9d8c8f266" + }, + { + "Path": "src/CSharpDB.Engine/CollectionIndexedFieldReader.cs", + "Sha256": "f2e9ea0dee6e79ed40eb3078c6373878622004c40ad23ad4f8878c387dc90de5" + }, + { + "Path": "src/CSharpDB.Engine/CollectionModelAttributes.cs", + "Sha256": "77184e25b37f4acb8a7dda583116b6ed8458b73ce42828fad3c0c57b59c0cf89" + }, + { + "Path": "src/CSharpDB.Engine/CollectionModels.cs", + "Sha256": "039c3af7a5abdecfb88ce38d865644a18128910c1c0a38f86cbdee1bcde44eb2" + }, + { + "Path": "src/CSharpDB.Engine/Database.ReaderCatalog.cs", + "Sha256": "f91ec6358f3e40e8215a6dc37c8ebd7c79d05ca3a4d438c465905f832747113f" + }, + { + "Path": "src/CSharpDB.Engine/Database.cs", + "Sha256": "fe5cb0a7878d9b8dfdbeefb0ade38240acd9fa4fb14f34f4b4e21f1fa7766d54" + }, + { + "Path": "src/CSharpDB.Engine/DatabaseBackupCoordinator.cs", + "Sha256": "dfb13718bf944d5aa6e84a993b8178288214351c3bb47bf295ceaad7190d71e4" + }, + { + "Path": "src/CSharpDB.Engine/DatabaseForeignKeyMigrationCoordinator.cs", + "Sha256": "1992a8ddaca4e26b8551aa07316f72f64a8a459d1eeeca1185466ae0b629815d" + }, + { + "Path": "src/CSharpDB.Engine/DatabaseMaintenanceCoordinator.cs", + "Sha256": "13357dbedac6a03db9d6e53369bbeeb912f58023772a286cdfe711961e291bd7" + }, + { + "Path": "src/CSharpDB.Engine/DatabaseMaintenanceModels.cs", + "Sha256": "a4f2b1e3ea203bf05939a4c91df477e55deb3098aa2512b3a270bc86c2747342" + }, + { + "Path": "src/CSharpDB.Engine/DatabaseOptions.cs", + "Sha256": "79aeaf719ed5956ce9b776b3e2c70860a5ddcf110804f71bcd67009ebe8cb27f" + }, + { + "Path": "src/CSharpDB.Engine/DatabaseOptionsExtensions.cs", + "Sha256": "d0ec0037675a40cbd0b981a16fe46315f44458156c5856381a158e10a68c1929" + }, + { + "Path": "src/CSharpDB.Engine/EngineJsonContext.cs", + "Sha256": "a6b1e9e25e5a4db720798e903353165ec9946956b663fad7e8c6c2956cd4912b" + }, + { + "Path": "src/CSharpDB.Engine/FullTextIndexCatalog.cs", + "Sha256": "8599908cb6f89a05fc82c4c7254e0396786bbf60b8cc1f0bb0a3ff1d9afa0425" + }, + { + "Path": "src/CSharpDB.Engine/FullTextIndexReader.cs", + "Sha256": "9d05ebb82673f5434f42276add393b4a53745f1aa656347ba0c2596ce0df4349" + }, + { + "Path": "src/CSharpDB.Engine/FullTextSearchHit.cs", + "Sha256": "8fa93fb551be53d30a147ab0577f5bbdc5f31eba08d28a93cf3beda25b3ac6db" + }, + { + "Path": "src/CSharpDB.Engine/GeneratedCollection.cs", + "Sha256": "5f76b4d60b7b13a66a0c17ac1b82504a551e5cd26c9bc1a711334f9fc59daee8" + }, + { + "Path": "src/CSharpDB.Engine/GlobalUsings.StorageNamespaces.cs", + "Sha256": "b3f85b577a301011e13a11e2ed6e3a3bd7829c4dd71a040338873dbf962ce699" + }, + { + "Path": "src/CSharpDB.Engine/HybridDatabaseOptions.cs", + "Sha256": "bb4cb961e70728f55f667e1891787eeb2cd6016252723bd96409dc25a1039837" + }, + { + "Path": "src/CSharpDB.Engine/HybridDatabasePersistenceCoordinator.cs", + "Sha256": "968828779f0361314babae368427ccee0e24c5a401a50b71dba1dced5fa22967" + }, + { + "Path": "src/CSharpDB.Engine/ImplicitInsertExecutionMode.cs", + "Sha256": "57ad4fff0d832f5210239c687f98d4fcd7dd9ee36500fcb9a55c5107af438c65" + }, + { + "Path": "src/CSharpDB.Engine/InsertBatch.cs", + "Sha256": "67d801b7aa67ede3e81bde8774f68305f61935c40fd30216ed8375388398c06b" + }, + { + "Path": "src/CSharpDB.Engine/LifecycleObservability.cs", + "Sha256": "143b220b6f2642387321ef7f178e4c9e704d54f276db3b0516c7d29877ab3bb4" + }, + { + "Path": "src/CSharpDB.Engine/MaintenanceRuntimeDiagnostics.cs", + "Sha256": "69dca268987ea4dd931141bb2b5ac49ec8e559179e10247fc1e056eeee3f9a4b" + }, + { + "Path": "src/CSharpDB.Engine/OrderedCanonicalJsonValidator.cs", + "Sha256": "4cbcbd4d59d4e5066b0a8d7aba9e554e36893fd33286e7b50d59b606329a5f6f" + }, + { + "Path": "src/CSharpDB.Engine/QueryObservability.cs", + "Sha256": "fc3dd5dc6b46605de3b73ac8ce22c7ab4c6e4865904f8546dbc8eb3e0dd01142" + }, + { + "Path": "src/CSharpDB.Engine/QueryPlanRuntimeDiagnosticsAdapter.cs", + "Sha256": "cccc24c307348a4ab49ab0c13d608fee71b417b31b179787f6ec25bd90802b94" + }, + { + "Path": "src/CSharpDB.Engine/QueryRuntimeDiagnostics.Lean.cs", + "Sha256": "e39dc5c971259dedc69d2704119f7d592b970bf00eff01217e88b6cc45585aa4" + }, + { + "Path": "src/CSharpDB.Engine/QueryRuntimeDiagnostics.cs", + "Sha256": "a044d16849b905fcc15e98d9bec3f59c5cb34dfdffcb079abc49531c72eefe23" + }, + { + "Path": "src/CSharpDB.Engine/README.md", + "Sha256": "6bfffd3e5f496d8a983aaa747a6a2f2e41133fdbb46689e9a822f9da6725c360" + }, + { + "Path": "src/CSharpDB.Engine/RetainedDatabaseSnapshot.cs", + "Sha256": "b64c7d5089e1eac088ce4b92542c0b78005bac5c18ff0e64afe0b0fb7202de29" + }, + { + "Path": "src/CSharpDB.Engine/RetainedDatabaseSnapshotFile.cs", + "Sha256": "36601dacb315a6116870149425ef61bb3d3271d871fe95a735fb5ed277441b0c" + }, + { + "Path": "src/CSharpDB.Engine/RetainedDatabaseSnapshotTableReader.cs", + "Sha256": "6f3057de84abc72d5ca067733e988095504a95200c49bd0ffa7376499457a015" + }, + { + "Path": "src/CSharpDB.Engine/RetainedDatabaseSnapshotWorkspace.cs", + "Sha256": "4ea73705fa5b66eecc8af9659630b9d35aa3b89777ead48968364e992f14d2e0" + }, + { + "Path": "src/CSharpDB.Engine/StorageRuntimeDiagnostics.cs", + "Sha256": "fbc1db1c196cceb8136c3beee2714f1408c8899973c90d1329b86242671f92b9" + }, + { + "Path": "src/CSharpDB.Engine/WriteTransaction.cs", + "Sha256": "1c2b123800710d4a9a69c94d00a3efa28dc8c9298a79980054a00b3939bde8aa" + }, + { + "Path": "src/CSharpDB.Engine/WriteTransactionOptions.cs", + "Sha256": "d7514100758ee0cbc601fe7b4dde378448d2f03a6a399b03de2d066be4e98977" + }, + { + "Path": "src/CSharpDB.Execution/AdaptiveQueryReoptimizationRuntimeDiagnostics.cs", + "Sha256": "8aee348187c0784a557cfe5f0f03bd5b267fed47a3e669b98686749f89164358" + }, + { + "Path": "src/CSharpDB.Execution/BatchEvaluation.cs", + "Sha256": "80805c605b58339b455b690f9f2537e689a1f34d7c437f9ac798251289d68aa4" + }, + { + "Path": "src/CSharpDB.Execution/BatchTransport.cs", + "Sha256": "8a35a758438127a979f050f30e9ab5f47eb318a22966e6bffd306aa4a8a481f8" + }, + { + "Path": "src/CSharpDB.Execution/CSharpDB.Execution.csproj", + "Sha256": "e7e4030d6dc46eacf8b54a766901c0bc5bc79af24b8e5be6dfe62d1252f8cd52" + }, + { + "Path": "src/CSharpDB.Execution/CardinalityEstimator.cs", + "Sha256": "6a8b2f4a7ce603bdeb139390a31a753da94920781ad17781675e6f52e51ada2e" + }, + { + "Path": "src/CSharpDB.Execution/CollationSupport.cs", + "Sha256": "ead75fc2513e7bd8a98b2b419feb100e1552bbbd91f6d756e1edbdc61bf4a7f9" + }, + { + "Path": "src/CSharpDB.Execution/DecimalAggregateSemantics.cs", + "Sha256": "f1eb0e0bb459430330bf31ea3c3e17284853487d30b46da21e97dcdd535ec085" + }, + { + "Path": "src/CSharpDB.Execution/ExpressionCompiler.cs", + "Sha256": "ae1f6a974c22958edbdf2bae822eea76f92ae8c8b21eaa2935c139cdd7f3a90d" + }, + { + "Path": "src/CSharpDB.Execution/ExpressionEvaluator.cs", + "Sha256": "c0aaa26a0e00157822827340e3eba3593b0fd08c038ca8c2c8e8c2ab1b73c718" + }, + { + "Path": "src/CSharpDB.Execution/GlobalUsings.StorageNamespaces.cs", + "Sha256": "0347da5c01ff65cf8d5e476c413619ba414ec2f0490e1d5b98fff100175829a2" + }, + { + "Path": "src/CSharpDB.Execution/IOperator.cs", + "Sha256": "b8ac6ed134efe9160a018ed3f7c9ab1c488d18beeefa1e4ee35ad664e28b1d00" + }, + { + "Path": "src/CSharpDB.Execution/IndexMaintenanceHelper.cs", + "Sha256": "5ce7309a1b5398e9bcda614c84f9cc8d46f83ef8f76d0344cfe61559cc257682" + }, + { + "Path": "src/CSharpDB.Execution/NumericAggregateAccumulator.cs", + "Sha256": "d0fae5adccc993ce1060ea8ffa2303002543e5254470e5718340914abdb9f160" + }, + { + "Path": "src/CSharpDB.Execution/NumericRelationshipIndexJoinOperator.cs", + "Sha256": "34629262dfdb6841d33dfe4c06b32490e7d36aa0ff7f300b53ec8e22bd84528b" + }, + { + "Path": "src/CSharpDB.Execution/Operators.cs", + "Sha256": "5835ea7db5674511d72c751c7fb3e39e834c0a38f7dbf118f223d91b7ae81fa0" + }, + { + "Path": "src/CSharpDB.Execution/OptimisticInsertSequenceContext.cs", + "Sha256": "62fb8d27d9fc13a503054e91da5c0f2750ea05f8152cb51174df72487888b6c2" + }, + { + "Path": "src/CSharpDB.Execution/PhysicalPlan.cs", + "Sha256": "c4805dac507f8e1df468a540e70a3644ce9fd66036cde0ea4f45990c11a4dfe3" + }, + { + "Path": "src/CSharpDB.Execution/PhysicalPlanCapture.cs", + "Sha256": "71b6c28cf3f2aba3c6cda59598fc592c95816ed4ecce995c9ffd10dcfcad8c63" + }, + { + "Path": "src/CSharpDB.Execution/PreparedSelectTemplate.cs", + "Sha256": "8286734e7a3c41151aeb88b161e6295dcd45a9d7e566f7cf8eb2f6a16efb8f27" + }, + { + "Path": "src/CSharpDB.Execution/PrimaryKeyRangeScanOperator.cs", + "Sha256": "08819b1fa0989408d808e8022e5fde4cd2e5d11f4ca92990db9e3e2aa6c5efd0" + }, + { + "Path": "src/CSharpDB.Execution/ProjectionGatedNumericRelationshipJoinOperator.cs", + "Sha256": "7d858fed79aec6aac86385a3459974f612ac32edbe8b86296bc19fe2a1816043" + }, + { + "Path": "src/CSharpDB.Execution/QueryPlanRuntimeObserver.cs", + "Sha256": "43fe7855e7b789c94fe23cb867ad386feb568e4cb4f1534ae992a56c96a6e354" + }, + { + "Path": "src/CSharpDB.Execution/QueryPlanner.PhysicalPlans.cs", + "Sha256": "a9b0804d82d29f789f59ce9d29aaa2d1cc9b747f787f1b08ebc56cbfff70b756" + }, + { + "Path": "src/CSharpDB.Execution/QueryPlanner.PreparedSelect.cs", + "Sha256": "90844eaf2b1f491d9d95995ef6471115f7fa5768048f385480b99bfe37b615ed" + }, + { + "Path": "src/CSharpDB.Execution/QueryPlanner.SchemaInspection.cs", + "Sha256": "52e61fcbc0a663c1d0aeb80511aeb846786ebdba7f4653d56d18ff0a3992c983" + }, + { + "Path": "src/CSharpDB.Execution/QueryPlanner.cs", + "Sha256": "59d7f1e620d68ab6f7521c96b445cc827e2daf9c99af706785380800391ae35c" + }, + { + "Path": "src/CSharpDB.Execution/QueryResult.cs", + "Sha256": "cba5a446d93b713c8eefc38485bf913913e5fcad9e2764001d2e466533c342e5" + }, + { + "Path": "src/CSharpDB.Execution/QueryResultObserver.cs", + "Sha256": "01617ee43a5244fff34dd848acf6f5d63f625e345426463a8cda4e1cc4870d3f" + }, + { + "Path": "src/CSharpDB.Execution/README.md", + "Sha256": "e7d1c2264798401ad707613d225b93e6311af4cd7e4d48b31f57a3873077fd07" + }, + { + "Path": "src/CSharpDB.Execution/RowConstraintValidator.cs", + "Sha256": "00594f61a947417900b6ccd8064e1b1fc40fb959bb36be3ffe631aad6e5d75c5" + }, + { + "Path": "src/CSharpDB.Execution/ScalarFunctionEvaluator.cs", + "Sha256": "e206c8cdd2b08bb467aef4c25c739c8b2f583c8260c75c1290f49830e7754519" + }, + { + "Path": "src/CSharpDB.Execution/SqlIndexOptionsCodec.cs", + "Sha256": "4cf290df869bb864539cc400dd91d2682a57031456ea3445be145a4b7cb60741" + }, + { + "Path": "src/CSharpDB.Execution/SqlTypeCoercion.cs", + "Sha256": "ff188f9502196674759acb748c35b30c44a161903e5bdfbf5dadf66c470cfa35" + }, + { + "Path": "src/CSharpDB.Execution/TableRewritePlan.cs", + "Sha256": "3d2b3a961d7b66e5a59902333f8b4b18a9205f3326973e8124650fd11fdd7009" + }, + { + "Path": "src/CSharpDB.Execution/TemporaryTableManager.cs", + "Sha256": "7ff40539773066f0643f91318ebd79b267b0aa89a99aee48d5a0aec17eefb5ea" + }, + { + "Path": "src/CSharpDB.Execution/WindowExpressionSupport.cs", + "Sha256": "1483b1f5a2f833db83f020903215002b395bd006583d9d18a5a3cd70844cd5dc" + }, + { + "Path": "src/CSharpDB.Execution/WindowOperator.cs", + "Sha256": "57677c5cfeefdd00607da068db88abb791f57d83e4a3d0fbd42f7067404aa0ad" + }, + { + "Path": "src/CSharpDB.Observability/BoundedDiagnostics.cs", + "Sha256": "949196608aa3b388aeabee3ffbe3cbc32627340d45c399922cd717133950af29" + }, + { + "Path": "src/CSharpDB.Observability/CSharpDB.Observability.csproj", + "Sha256": "f554f40cb58ce8925e4cac52a6dd4f97a2f1872e848da149237f338827053779" + }, + { + "Path": "src/CSharpDB.Observability/CSharpDbActivityOperation.cs", + "Sha256": "3911bd95e6a461ad15dea39e9d5c2a4079881e16129241b38cce4ca3d51dc1e2" + }, + { + "Path": "src/CSharpDB.Observability/CSharpDbDeferredDiagnosticBoundary.cs", + "Sha256": "83111ffefaacd7d7bbccc1e8841573b042929dd85fb1cc26f17bb7684de3e45b" + }, + { + "Path": "src/CSharpDB.Observability/CSharpDbDiagnosticEventBuffer.cs", + "Sha256": "a5101c12949e1d0cba4a5d7cbb643d7be67bab10ee499a775265249eb45d5f1c" + }, + { + "Path": "src/CSharpDB.Observability/CSharpDbDiagnosticEvents.cs", + "Sha256": "e78510d299ba292a03ca3abdf7af5d16c497aab5229de10105be239ba82a3348" + }, + { + "Path": "src/CSharpDB.Observability/CSharpDbDiagnostics.cs", + "Sha256": "3e2db10100a2ed71b57041276a6b87f7c0484a452b745e342e01db5f7161336b" + }, + { + "Path": "src/CSharpDB.Observability/CSharpDbHealthMetricSource.cs", + "Sha256": "e8055c7f62a6bb1d730fa62654a8ee929ba6804683fc83e11042c01b255d3335" + }, + { + "Path": "src/CSharpDB.Observability/CSharpDbHostState.cs", + "Sha256": "4166c8618b6f7e472c9e7c11e2996db7dbced5261c0dbb995eba34bcbbb9a459" + }, + { + "Path": "src/CSharpDB.Observability/CSharpDbMetrics.cs", + "Sha256": "957e66b70362dcc68f3d909e7642f4be551684c152311265e7de88a781a372f6" + }, + { + "Path": "src/CSharpDB.Observability/CSharpDbObservabilityJsonContext.cs", + "Sha256": "3b989529383cebfe1d3e17a842e4bce30ed0ea02cbb1b63b3b9e225c99e6153f" + }, + { + "Path": "src/CSharpDB.Observability/CSharpDbObservabilityOptions.cs", + "Sha256": "1574ce89baed0cbdb23662d4b061f98405e906277fc64f886178d67e001b8c5c" + }, + { + "Path": "src/CSharpDB.Observability/CSharpDbOperationContext.cs", + "Sha256": "21d50bfcc90121ebed96eb156a10a9c4c83dbb403177d866714018a1ba2b6716" + }, + { + "Path": "src/CSharpDB.Observability/CSharpDbOperationScope.cs", + "Sha256": "24c5891f207aad532021651049243994d50549630686c051638a8e26a121bd6f" + }, + { + "Path": "src/CSharpDB.Observability/CSharpDbRuntimeDiagnosticsState.cs", + "Sha256": "ec630e5e56c439e454fca98fb4ae39e4ec0b05ce7b65e36c110c48ac5a32711f" + }, + { + "Path": "src/CSharpDB.Observability/DiagnosticsCollections.cs", + "Sha256": "ae2d89b52baf1c170a8c47edbecc842f8a810aaedfc3a84e9118a4017663d924" + }, + { + "Path": "src/CSharpDB.Observability/DiagnosticsEnums.cs", + "Sha256": "851c748780d0b3139713a6ecfb2496e2495fe96ce4215dbea97812e6bd873223" + }, + { + "Path": "src/CSharpDB.Observability/DiagnosticsTopology.cs", + "Sha256": "0788e8c21332d47a15ba0ee246e89e5a1cd931c70a31ff4ea3d6b4f3d137f882" + }, + { + "Path": "src/CSharpDB.Observability/DiagnosticsTraceId.cs", + "Sha256": "950b7438df403db61c52e23ad689fe555522d1242a900cdbab65bc1a43e3298a" + }, + { + "Path": "src/CSharpDB.Observability/OpaqueDiagnosticsId.cs", + "Sha256": "86270b0dc5553aa309d6c54fc04e637bd9794c4caf5c9c7368d4e97f4031eb73" + }, + { + "Path": "src/CSharpDB.Observability/QueryFingerprint.cs", + "Sha256": "82afb511d8f4672b6a39dc71d15c2b30a9f2025b631de78cbe33c1a205269183" + }, + { + "Path": "src/CSharpDB.Observability/README.md", + "Sha256": "7cffe1302266baa9ff97c9982a510184b67e7ad6ef396e569f62a10a1e13af6c" + }, + { + "Path": "src/CSharpDB.Observability/RuntimeSnapshots.cs", + "Sha256": "630e84cc43099252072c80f0a363eaba0b9a2ac9b4e9c0f42845f82a47f34513" + }, + { + "Path": "src/CSharpDB.Observability/SafeErrorProjection.cs", + "Sha256": "2f2858c3c5596b36c7db11f82d2e538e8435d96b2f017de334bfaa1893e6245b" + }, + { + "Path": "src/CSharpDB.Primitives/AdaptiveQueryReoptimizationOptions.cs", + "Sha256": "f6c0d374be1040ecdc75ba525976a9db440d5452d2d6b1a00daba10163eaaa11" + }, + { + "Path": "src/CSharpDB.Primitives/AutomationManifestValidation.cs", + "Sha256": "f4e8f1114d450e333ad3e0c1b7f50e090a341f5e0a82539b5bcfb904a2e16be4" + }, + { + "Path": "src/CSharpDB.Primitives/AutomationStubGeneration.cs", + "Sha256": "a9674e31e5adc2624962eb421f4618d770b379dbdfdbb2031fd75dad921573f5" + }, + { + "Path": "src/CSharpDB.Primitives/CSharpDB.Primitives.csproj", + "Sha256": "0891f02009ddaa7e3d0b0d7687b9a66095ad211d03872dff0105c4d1ca5c07f6" + }, + { + "Path": "src/CSharpDB.Primitives/CSharpDbDecimalCodec.cs", + "Sha256": "15e077f2d6b3731fabc28d3a8994cefef78f25d3194033fa61bddf09b4a506e1" + }, + { + "Path": "src/CSharpDB.Primitives/CSharpDbException.cs", + "Sha256": "ce4a1b03c2d7570e2e4f75f43e462c16b4578fd20d52e6c52e5599aa0f5ec787" + }, + { + "Path": "src/CSharpDB.Primitives/CSharpDbTextCodec.cs", + "Sha256": "e2d1fd171d28bcb76da9962fa0c0900abe2ef0dd11bbc2c0e6061354365fbfc4" + }, + { + "Path": "src/CSharpDB.Primitives/CSharpDbXmlCodec.cs", + "Sha256": "894526b9b56ea5977cf9d007460e614253bf9cdd73aae721f93da536e85fb50b" + }, + { + "Path": "src/CSharpDB.Primitives/DbActions.cs", + "Sha256": "7d8845df2afc0fd55f7b3898dd61ab4f5f47ce63e714055ba3467339ffef9699" + }, + { + "Path": "src/CSharpDB.Primitives/DbAutomationMetadata.cs", + "Sha256": "7d83ac981a04499db17f0674d41f9b1a79a2f481931cf7c79e49761f9b4eab16" + }, + { + "Path": "src/CSharpDB.Primitives/DbBuiltInFunctionRegistry.cs", + "Sha256": "46acc34e686644008eb1413308753950f8d498360f628fa832ce22b54c077f33" + }, + { + "Path": "src/CSharpDB.Primitives/DbBuiltInScalarFunctions.cs", + "Sha256": "ecc08db7be2452d07b138f75d931a7a213f91a5665c5be89e899a56e24205d3f" + }, + { + "Path": "src/CSharpDB.Primitives/DbCallbackDiagnostics.cs", + "Sha256": "90710dd430b6f2dac6c7fc572ebaf640e4991a476b79b1b551bcbbbfa804ab1e" + }, + { + "Path": "src/CSharpDB.Primitives/DbCatalogRegistry.cs", + "Sha256": "cb8a0844b2cfbe34f0fa4d9644efcbbdebd73ce833e423bb5d01d7f48da42eeb" + }, + { + "Path": "src/CSharpDB.Primitives/DbCommandArguments.cs", + "Sha256": "752d39706193f56705963504bf6a1a3d97f7849fd4c6efdaf1a86b8a07092b3e" + }, + { + "Path": "src/CSharpDB.Primitives/DbCommands.cs", + "Sha256": "ce2dc238cd181308ca1eb02d2a254fb058449c1ff058ade38ec422535b7c07a4" + }, + { + "Path": "src/CSharpDB.Primitives/DbExtensions.cs", + "Sha256": "64cf9ae2134b81998fc75fecb7cd859ac4b2e350e11dd34741f9df9e4ec62472" + }, + { + "Path": "src/CSharpDB.Primitives/DbFunctions.cs", + "Sha256": "a51f9611bdb03b7521a00eb355675ccf14015458d969bae02b3e57a9d19b5ba3" + }, + { + "Path": "src/CSharpDB.Primitives/DbHostCallbacks.cs", + "Sha256": "dc5e5f392cb62402c32be11e1c405255b95139d829860f5197c28230df0b0e69" + }, + { + "Path": "src/CSharpDB.Primitives/DbType.cs", + "Sha256": "d340b001a4511b18403fcd5a529dcf6e0c9e8b45bddab91197ec0c047e69a028" + }, + { + "Path": "src/CSharpDB.Primitives/DbValidationRules.cs", + "Sha256": "4dad7b88970a35d4afcbbb7b7c97a70b83cb2c924ddbf3b9613a72aec2eedb32" + }, + { + "Path": "src/CSharpDB.Primitives/DbValue.cs", + "Sha256": "d1761ab223b2ac2bd1fe6a6de11a1ef4d0c0f9e709f5782f180f51e776276085" + }, + { + "Path": "src/CSharpDB.Primitives/FullTextIndexOptions.cs", + "Sha256": "e3065da8634cb592358fe17968259bf5fe456219a521d69f002d3afefd7c2ef1" + }, + { + "Path": "src/CSharpDB.Primitives/README.md", + "Sha256": "99dacc2c71dde2d8ac254e1b2b091b9378622d9ca940d2e23ba641b599259dee" + }, + { + "Path": "src/CSharpDB.Primitives/Schema.cs", + "Sha256": "089a871ea2a07f2d518e8b9548c214a1bf5af356aebf99d15bf5af4be4193ceb" + }, + { + "Path": "src/CSharpDB.Primitives/SchemaIdentity.cs", + "Sha256": "a86680d846583fdf97dbfe3c991289bb2bdfe00d57a761f7e0a80641a4554000" + }, + { + "Path": "src/CSharpDB.Primitives/SqlIdentifierRules.cs", + "Sha256": "adb453b60246a417f9908b113388861e63382503c00f2a87313df41528428fb7" + }, + { + "Path": "src/CSharpDB.Primitives/SqlLiteralRules.cs", + "Sha256": "a3a4ac26de2e30899fbd415eebe67d75690fe7c18222f744b855158827960c5a" + }, + { + "Path": "src/CSharpDB.Primitives/SqlTypeDescriptor.cs", + "Sha256": "8991c51e26dd2a4bd0628ce2a66db906bd347e27f403262d75299a8733d3b624" + }, + { + "Path": "src/CSharpDB.Primitives/SqlTypeKind.cs", + "Sha256": "e7b37a2fed73d344eef3e1712a091707fe94fcf6ce1238048d91e6bafec5f59e" + }, + { + "Path": "src/CSharpDB.Primitives/WindowExecutionOptions.cs", + "Sha256": "b2f260580b4ceb2f46f3190be8cd924fad612377adc8073343a84ba4fb214007" + }, + { + "Path": "src/CSharpDB.Sql/Ast.cs", + "Sha256": "3621dc18c3b2cf3ca294852509bc4110ca46ea984a96844d35abe0881d5d9726" + }, + { + "Path": "src/CSharpDB.Sql/CSharpDB.Sql.csproj", + "Sha256": "7c265f227094d7311caae9e3964030402a9ccc803ab5b4db5085e5c22854b9f7" + }, + { + "Path": "src/CSharpDB.Sql/Parser.cs", + "Sha256": "0f8688291a58279dd89335fd3a7ba55afe57d02a8ade550fd5b78f412dbae06a" + }, + { + "Path": "src/CSharpDB.Sql/README.md", + "Sha256": "e0da9971887b4aad2937c3e173d1d1dec0294532e74b17ba54b430423038b42b" + }, + { + "Path": "src/CSharpDB.Sql/SqlDependencyAnalyzer.cs", + "Sha256": "aaa461547d26c8082d554b8be31860d2a0f07e03e3e07082644b1921bde6f84a" + }, + { + "Path": "src/CSharpDB.Sql/SqlQueryFingerprintProvider.cs", + "Sha256": "4d7c6c6d92dc0c081e1849e7080f884d7d4ad09c4f6f22eaafacd8f63b5534fd" + }, + { + "Path": "src/CSharpDB.Sql/SqlScriptParser.cs", + "Sha256": "27326c430c366be72bf730657d9801467bbf67f9d3dd2dcd82f63b3b402c4cc4" + }, + { + "Path": "src/CSharpDB.Sql/SqlScriptSplitter.cs", + "Sha256": "29f58286293208c8b7824d287dbe3a41cd8cbda0ae9218aaf6770e28db3a7728" + }, + { + "Path": "src/CSharpDB.Sql/SqlStatementClassifier.cs", + "Sha256": "73de630e5aef4d7112a460eea66bdae3dbea88711ee3644d21df831f932c40b0" + }, + { + "Path": "src/CSharpDB.Sql/Token.cs", + "Sha256": "1de500b79b622284f741b5a3a0938c468aaa7cfbcc943b55ccdf62e3291a356e" + }, + { + "Path": "src/CSharpDB.Sql/TokenType.cs", + "Sha256": "832069e7695ba7b176b51c017620006e362f7ffbe7ab9108406857d539ad4a8a" + }, + { + "Path": "src/CSharpDB.Sql/Tokenizer.cs", + "Sha256": "772ebfb5a087003ff8491dbfc750222e0f1fc1e6a24d774f53c763a47ddcf7ba" + }, + { + "Path": "src/CSharpDB.Storage.Diagnostics/CSharpDB.Storage.Diagnostics.csproj", + "Sha256": "89df499b6ef4e9c121a40b46d11e13857c2dfaeb3aa267baf810ccb7a9c4fb55" + }, + { + "Path": "src/CSharpDB.Storage.Diagnostics/DatabaseInspector.cs", + "Sha256": "6f2a6cd281629be21b8116aff1f0921e3ef75c5177396e9311244352b8c062c3" + }, + { + "Path": "src/CSharpDB.Storage.Diagnostics/GlobalUsings.StorageNamespaces.cs", + "Sha256": "82243a1704425ef30a691c98e09e24012f6b00c19bc50829190b2a09dd7cb05a" + }, + { + "Path": "src/CSharpDB.Storage.Diagnostics/IndexInspector.cs", + "Sha256": "1257706f9fcb364f13f91b910c46982defe3304ba3fe47538378ee040d6c2061" + }, + { + "Path": "src/CSharpDB.Storage.Diagnostics/Internal/InspectorEngine.cs", + "Sha256": "c1b6cae7058405931abd2739bf3a2dd27797417f5dd178ae90156f2844b0fb23" + }, + { + "Path": "src/CSharpDB.Storage.Diagnostics/Models/DatabaseInspectOptions.cs", + "Sha256": "fd03b1290874abef4ad4d8ee35b0bef69e11c47bb3c60eb3c00d2251a767143e" + }, + { + "Path": "src/CSharpDB.Storage.Diagnostics/Models/DatabaseInspectReport.cs", + "Sha256": "d51fc669edc9c672f54160a5368893eca7db643d327ff02a2f1800c19077d406" + }, + { + "Path": "src/CSharpDB.Storage.Diagnostics/Models/DatabaseInspectionMode.cs", + "Sha256": "6e5b147cc8127334856f72fe8f700651f2e12a7d8a2ee984896675024f1e5a71" + }, + { + "Path": "src/CSharpDB.Storage.Diagnostics/Models/FileHeaderReport.cs", + "Sha256": "0b23d36a770a655cae01fb3d53aa2b54835c620828714effba1c83c97aec14c4" + }, + { + "Path": "src/CSharpDB.Storage.Diagnostics/Models/IndexInspectReport.cs", + "Sha256": "8ff3686efa348c74ec59119aea5b010a8938822335fc3bc26f2722e51537d5f0" + }, + { + "Path": "src/CSharpDB.Storage.Diagnostics/Models/InspectSeverity.cs", + "Sha256": "778ea91170e57edfdc613b2a27f4d2b2be3e147bb6cdc30164ef83ab1ade4845" + }, + { + "Path": "src/CSharpDB.Storage.Diagnostics/Models/IntegrityIssue.cs", + "Sha256": "90cd19192dfb64922fa9dc9ef29e7b8a09ebf5e299a1d0c1dc7187ced57e26ea" + }, + { + "Path": "src/CSharpDB.Storage.Diagnostics/Models/InteriorCellReport.cs", + "Sha256": "ad7e6e2149a2562dd3ae7bdfca7e8c2317b2873cef8fab0fcffa1a11ff5a65bb" + }, + { + "Path": "src/CSharpDB.Storage.Diagnostics/Models/LeafCellReport.cs", + "Sha256": "1327614d387bbe6c7e4195340b1a39d90724258494aa3788c2daa658e25b7570" + }, + { + "Path": "src/CSharpDB.Storage.Diagnostics/Models/PageInspectReport.cs", + "Sha256": "d139a07bfa7009ce25e2dc25bb08e71e740d6543546693324f858ec6c6aff575" + }, + { + "Path": "src/CSharpDB.Storage.Diagnostics/Models/PageReport.cs", + "Sha256": "476129cac2e90a7717f39ec89d077919ce426e1059f6a05535d1b7f2ae4586f4" + }, + { + "Path": "src/CSharpDB.Storage.Diagnostics/Models/WalInspectReport.cs", + "Sha256": "3bd12aad1ce419b53aaf1f1b65caab7d5d3b95ed090233f041b4c868537941d2" + }, + { + "Path": "src/CSharpDB.Storage.Diagnostics/README.md", + "Sha256": "a2f6251bf60b0a45e0a085194e0ee44bc12673535a2383415b8e46675ee7e24e" + }, + { + "Path": "src/CSharpDB.Storage.Diagnostics/WalInspector.cs", + "Sha256": "fdf189c4e2505ad6ae8f6767f49facfd11ca2fdc0fafaf795d83c0fde684cf9c" + }, + { + "Path": "src/CSharpDB.Storage/BTree/BTree.cs", + "Sha256": "d6119cecc678a409c62cd2fe89258b47a453916b27d3afc537ac8578266f5ee9" + }, + { + "Path": "src/CSharpDB.Storage/BTree/BTreeCursor.cs", + "Sha256": "cc76b8c7fce0e0ea46db94148dc8ea37b078b41c790130921cff8450eb3ce7c4" + }, + { + "Path": "src/CSharpDB.Storage/BTree/BTreeOverflowReferenceCodec.cs", + "Sha256": "9ceb64f6eac5432bafa7e63ed3c4d5a31195b6639fcb1fc23c72e71edcabdfc9" + }, + { + "Path": "src/CSharpDB.Storage/CSharpDB.Storage.csproj", + "Sha256": "33d14884d25e79435e2c3b022ed4d2b28a45460f575b66b56cf98cfe6e95db10" + }, + { + "Path": "src/CSharpDB.Storage/Caching/DictionaryPageCache.cs", + "Sha256": "f37a731d0e7d8f9d15e1d740cdc971dba688de8655bae6a8a397d827941585bd" + }, + { + "Path": "src/CSharpDB.Storage/Caching/IPageCache.cs", + "Sha256": "6feacc0c36ff0367861eff0366451d99576169433d7793c6035e999dcf25a27f" + }, + { + "Path": "src/CSharpDB.Storage/Caching/IPageCacheEvictionEvents.cs", + "Sha256": "f29cf558a55acc30363f36e67821bffb9cc566066a954db676a4423c4fe0c8f8" + }, + { + "Path": "src/CSharpDB.Storage/Caching/LruPageCache.cs", + "Sha256": "032b4d013031a0fd3fd3d08b8823d5065a1eaaddf8e3290ad25f37cda4034b75" + }, + { + "Path": "src/CSharpDB.Storage/Catalog/CatalogCache.cs", + "Sha256": "03addafbe78ca6db0efb269b899067d87288ce9c4c981666468e62e18819b7eb" + }, + { + "Path": "src/CSharpDB.Storage/Catalog/CatalogReadSnapshot.cs", + "Sha256": "4e3b80b53aafaaa2ab1fe5e5fb05916fcc112b06ef3b6c4a8279a4228962f524" + }, + { + "Path": "src/CSharpDB.Storage/Catalog/CatalogService.cs", + "Sha256": "6b22586ea22a242d515e95717801c5dadaef946cc1fcdb912427e3f0dd4dfa41" + }, + { + "Path": "src/CSharpDB.Storage/Catalog/CatalogStore.cs", + "Sha256": "5ceab1d6911a893542ec15e090924f226b0650066f80770c5d978109733f6589" + }, + { + "Path": "src/CSharpDB.Storage/Catalog/ICatalogStore.cs", + "Sha256": "1c60ae05e716a461f998e742d9127b1a09230277cc35ff4dafacb977d65b0bc0" + }, + { + "Path": "src/CSharpDB.Storage/Catalog/SchemaCatalog.cs", + "Sha256": "fcff816033825d6f517fc1c2ea044b17f062a365774bfdeb78ffac4e936427e4" + }, + { + "Path": "src/CSharpDB.Storage/Checkpointing/AnyCheckpointPolicy.cs", + "Sha256": "94408c09b98857d378a3db58aa96e90cb4018e6591b6a091713a1ab51a57f0f0" + }, + { + "Path": "src/CSharpDB.Storage/Checkpointing/CheckpointCoordinator.cs", + "Sha256": "f34bfab52a814fda43631206db848e9b08cb903e9cc25f28b2607e0706e77632" + }, + { + "Path": "src/CSharpDB.Storage/Checkpointing/FrameCountCheckpointPolicy.cs", + "Sha256": "fbcdddba3a0b87f6447c5b478d0c98f6ee1e0b8dadf4e7d6e148920686f1555a" + }, + { + "Path": "src/CSharpDB.Storage/Checkpointing/ICheckpointPolicy.cs", + "Sha256": "3f4c626a1c52d06406e9366098818c2ec254cb1f4db9ea440999e62ae0a20977" + }, + { + "Path": "src/CSharpDB.Storage/Checkpointing/TimeIntervalCheckpointPolicy.cs", + "Sha256": "7328f0d8b60bcc32da70b33ee197301de023f7efc93ed9bdb3174497d7969d82" + }, + { + "Path": "src/CSharpDB.Storage/Checkpointing/WalSizeCheckpointPolicy.cs", + "Sha256": "647e85f3f4725cf6b3a46d0d31e529937adc51b22f90b93bbf7203245e7bf100" + }, + { + "Path": "src/CSharpDB.Storage/Device/FileStorageDevice.cs", + "Sha256": "66fcc010c6a65075dbb391570205047389b427b15dd270533fc0746b7d03ddb5" + }, + { + "Path": "src/CSharpDB.Storage/Device/IStorageDevice.cs", + "Sha256": "896dc09db652c3c6b096e0b9152de122e05216908dd824eb39480370a184ba22" + }, + { + "Path": "src/CSharpDB.Storage/Device/MemoryStorageDevice.cs", + "Sha256": "b9537ddc6f0f90912ed2df57925f0be118eb879a2a7ca20132723869c135546c" + }, + { + "Path": "src/CSharpDB.Storage/Diagnostics/PagerSaveToFileProgress.cs", + "Sha256": "0b13f5c32a63819246ee0827ab0336d2c8f35ae7efe76a9e19ab311a4a8120c1" + }, + { + "Path": "src/CSharpDB.Storage/Diagnostics/RuntimeRawSnapshots.cs", + "Sha256": "023d38d74c2ee4ee82f0094d0c9391cd71f340d654be9f4ee54c901636f0d3fd" + }, + { + "Path": "src/CSharpDB.Storage/Diagnostics/StorageIoRuntimeDiagnostics.cs", + "Sha256": "146cb1e266298405ab8a752dc3878389fea3ed9b5a398c86660185107d88ae5c" + }, + { + "Path": "src/CSharpDB.Storage/Diagnostics/StorageRuntimeDiagnosticsObserver.cs", + "Sha256": "3569c66188a0fec1ec32b2684165337bdd3e837793c7c4d59e29377acdbddc8b" + }, + { + "Path": "src/CSharpDB.Storage/GlobalUsings.StorageNamespaces.cs", + "Sha256": "3024c3a010349f592fcf3d22c53660d438c5a19d4355e78c7d0b5c34d960b84f" + }, + { + "Path": "src/CSharpDB.Storage/Indexing/AppendOnlyRowIdChainStore.cs", + "Sha256": "de40dbbabf8c64c7735e6cfed6e78dc862616355ea3bd2af99c1958de17d3b1d" + }, + { + "Path": "src/CSharpDB.Storage/Indexing/AppendableHashedIndexPayloadCodec.cs", + "Sha256": "a761e8f21c4e44b8c6a8c526ecc37367043faa66ccd015d7e1f7a5f5cd89bb05" + }, + { + "Path": "src/CSharpDB.Storage/Indexing/BTreeIndexCursor.cs", + "Sha256": "5f9a26203cd88eb8c345d0d09581828e624b83a43566f016b3882a0a6842136a" + }, + { + "Path": "src/CSharpDB.Storage/Indexing/BTreeIndexProvider.cs", + "Sha256": "0d1176f5d83b8ad00a0d5860fbff1dbb468c5b768d601e54ba63ce07e4ea18b5" + }, + { + "Path": "src/CSharpDB.Storage/Indexing/BTreeIndexStore.cs", + "Sha256": "90b231b30a252a7c6e4f25258dffe0a885fcc26c15f4896cdfe082db554739e8" + }, + { + "Path": "src/CSharpDB.Storage/Indexing/CachingBTreeIndexProvider.cs", + "Sha256": "88b830a9c954530b0f8abb736b8abde71ba78aa96da6be94bf7cd054947bf63f" + }, + { + "Path": "src/CSharpDB.Storage/Indexing/CachingIndexStore.cs", + "Sha256": "b7b5fdd1d3030b80001c0890886d4faf02eba0ffee3961e4fca72f7d110011c9" + }, + { + "Path": "src/CSharpDB.Storage/Indexing/EmptyIndexCursor.cs", + "Sha256": "0e99a4cd41217a640d8e71e59ac09e3d130da29c19cf404e135205759ef687ea" + }, + { + "Path": "src/CSharpDB.Storage/Indexing/FullTextDocStatsPayloadCodec.cs", + "Sha256": "75591cf206576e7d04f36ec8cd90753daae7615a46fedbc5059f5b4996af3360" + }, + { + "Path": "src/CSharpDB.Storage/Indexing/FullTextIndexMaintenance.cs", + "Sha256": "aeaca6f2a9a4795ad155634b87420cf7468477a4f40987cd082a06f31604acb6" + }, + { + "Path": "src/CSharpDB.Storage/Indexing/FullTextIndexNaming.cs", + "Sha256": "4371a2fc95a0b0023140be52177545543d76749402a86e194ac8b953430fe02c" + }, + { + "Path": "src/CSharpDB.Storage/Indexing/FullTextIndexOptionsCodec.cs", + "Sha256": "0073d9cd55637cc3a318e8524cb7107b5ea4cac478fe3d9b83c1c1ce0f2f5698" + }, + { + "Path": "src/CSharpDB.Storage/Indexing/FullTextMetaPayloadCodec.cs", + "Sha256": "5aaa492064ff2f487d5ebd60642f3f0d68e5a9a80f6bb906136080de33b83fe7" + }, + { + "Path": "src/CSharpDB.Storage/Indexing/FullTextPostingsPayloadCodec.cs", + "Sha256": "6269d26096132661f601bc9e39516cf04d80316ca2e38bd3fd58a151950f233b" + }, + { + "Path": "src/CSharpDB.Storage/Indexing/FullTextTermKeyCodec.cs", + "Sha256": "d8fffd487092ae631553b15bbe376f8583367b35cb3c2aaccb916681ba5a6ec0" + }, + { + "Path": "src/CSharpDB.Storage/Indexing/FullTextTermStatsPayloadCodec.cs", + "Sha256": "a484cfed0a8d186a7f169f6d317877f7622b12ecf46c2305295b4c3f22f8af91" + }, + { + "Path": "src/CSharpDB.Storage/Indexing/FullTextTokenizer.cs", + "Sha256": "ff325be589dbb134c9abe847a3c5385d599c0bfb769d4887e40e8cc1dee2533a" + }, + { + "Path": "src/CSharpDB.Storage/Indexing/HashedIndexPayloadCodec.cs", + "Sha256": "b92abfae083de19d3c1dbe669dd158e58243d8fbcae675f31ccd66000051ec06" + }, + { + "Path": "src/CSharpDB.Storage/Indexing/IAppendOptimizedIndexStore.cs", + "Sha256": "813f13e7aaeda49ee71dab0a9c69ff81c9c69846ea9ac5d92a445bf6a5b618c9" + }, + { + "Path": "src/CSharpDB.Storage/Indexing/ICacheAwareIndexStore.cs", + "Sha256": "b65abc864363ba1e2ec864ac953490da3d20281671c31416dacd2eb20e49fd9e" + }, + { + "Path": "src/CSharpDB.Storage/Indexing/IIndexCursor.cs", + "Sha256": "e9d7f47a41088d89c73dfb7771ef5c2e75514b62f4bbf49f8521181b4d27ade5" + }, + { + "Path": "src/CSharpDB.Storage/Indexing/IIndexProvider.cs", + "Sha256": "b5dab52753ea54bf69501b6316b4f938e2cef620a2dedebb004eaf68c688fd6d" + }, + { + "Path": "src/CSharpDB.Storage/Indexing/IIndexStore.cs", + "Sha256": "069811a015f8f3f08ffc44ae36f66fda61df079f8d0fd7cb28876c3256c8eba2" + }, + { + "Path": "src/CSharpDB.Storage/Indexing/IReclaimableIndexStore.cs", + "Sha256": "ed10b8a0587d2eb8ff9cffb50a5136b0b8df50c496ff563a95e4bb76b5d3a499" + }, + { + "Path": "src/CSharpDB.Storage/Indexing/IndexOverflowPageStore.cs", + "Sha256": "7a3622e5b6403c7ddb14e13436fc4fd298dfcde8d786fcd2917923d8d22006ec" + }, + { + "Path": "src/CSharpDB.Storage/Indexing/IndexOverflowReferenceCodec.cs", + "Sha256": "e59d96c0cb2a9cd962b85026fe7f31bbe9a2fae5e708a12c16168355c7a6d1e0" + }, + { + "Path": "src/CSharpDB.Storage/Indexing/IndexScanRange.cs", + "Sha256": "db9a37aa067f4f278c4c448488e8e3443016a327d952634af2e882d0418f360d" + }, + { + "Path": "src/CSharpDB.Storage/Indexing/OrderedTextIndexKeyCodec.cs", + "Sha256": "8ecf5bd2603e0a0b3d104fad5b234b6d2bb8990815591731f8e93821f67f0057" + }, + { + "Path": "src/CSharpDB.Storage/Indexing/OrderedTextIndexPayloadCodec.cs", + "Sha256": "58bf39eb39a565b163c7450dbc7c78f1b0488e7a5816275d8d98844aa3dae24d" + }, + { + "Path": "src/CSharpDB.Storage/Indexing/OverflowingIndexStore.cs", + "Sha256": "68f85cb7da8843b134be3e5807c73390b32a3a985757ef9a6379044ceca3bd1e" + }, + { + "Path": "src/CSharpDB.Storage/Indexing/RealIndexKeyCodec.cs", + "Sha256": "3ba1224cdf2dff21eb317f83681156fac0d9d29c7ac51db9452fd5a3cf957363" + }, + { + "Path": "src/CSharpDB.Storage/Indexing/RowIdPayloadCodec.cs", + "Sha256": "e22b1a8fbdd8aba78ef5c325d69b1a1f725987ef3b8b7c9eca134d20ed50a3f2" + }, + { + "Path": "src/CSharpDB.Storage/Indexing/UpperBoundIndexCursor.cs", + "Sha256": "c1c7bf9159fc4784de374b348d609da7d9b40cb2c4247431ddaee86f0c1654f1" + }, + { + "Path": "src/CSharpDB.Storage/Integrity/AdditiveChecksumProvider.cs", + "Sha256": "48e03dc711c960e16899676b203cc049a8c5194358c7b653e6053ebe458ebf9d" + }, + { + "Path": "src/CSharpDB.Storage/Integrity/IPageChecksumProvider.cs", + "Sha256": "b29d2d8e6212c03dcc2b6b42823facd01743cae42b39447d2fbcf7cb7dcdaa20" + }, + { + "Path": "src/CSharpDB.Storage/Internal/ProcessCrashInjector.cs", + "Sha256": "a5d18859ae6fe5e217392c32b6344800b0a78b7ccee23da648bc1d5b35c72c9d" + }, + { + "Path": "src/CSharpDB.Storage/Internal/StorageDeviceCopyBatcher.cs", + "Sha256": "3c942395ea31137b19728843925bef64b698bb35a6489c5ee3ac5d51b7877ed8" + }, + { + "Path": "src/CSharpDB.Storage/Paging/AutoCheckpointExecutionMode.cs", + "Sha256": "e2eaf1b5b380d7e6c2d515bd1d880ed0869d8d6324df9da1404a13f906aa6220" + }, + { + "Path": "src/CSharpDB.Storage/Paging/CommitPathBTreeResourceDiagnosticsSnapshot.cs", + "Sha256": "e8769e0b3f502e639e61741e81fb09c61d32f64a009c8409fd12fc404faad671" + }, + { + "Path": "src/CSharpDB.Storage/Paging/CommitPathDiagnosticsSnapshot.cs", + "Sha256": "035d8f11a96d8e38c90a8a32809f2deea936f374aad1971d73e1f2950bedb677" + }, + { + "Path": "src/CSharpDB.Storage/Paging/CompositePageOperationInterceptor.cs", + "Sha256": "83d2296d0f77b7439177bf098cf0166aa5a9ddf7a1ec10e489e169c086a3f4d4" + }, + { + "Path": "src/CSharpDB.Storage/Paging/DirtyParentLeafSplitRecoveryRejectReason.cs", + "Sha256": "900b77698941fdc92f0ab33bcbec87297f6cfe34e614eee612aaa2f4bf258f52" + }, + { + "Path": "src/CSharpDB.Storage/Paging/ExplicitLeafSplitFallbackRejectReason.cs", + "Sha256": "9d58dd88f7262c64d67fe38faafa3fff97ee6ca4b8e5339db19f2cf57b622c74" + }, + { + "Path": "src/CSharpDB.Storage/Paging/ExplicitLeafStructuralRejectReason.cs", + "Sha256": "d4198f145c33d2e58732f59132812d4df01b2b6f0b16e1f4d99262b549cb73fd" + }, + { + "Path": "src/CSharpDB.Storage/Paging/ICommitPathDiagnosticsProvider.cs", + "Sha256": "4d896704927f7295cfd89f4f2898d4ca16224dfb799ac7508287dbfeabf8a87b" + }, + { + "Path": "src/CSharpDB.Storage/Paging/IPageAllocator.cs", + "Sha256": "772f28ac44d70ceb2b85f7a5d3ca71605f2bb3b5183f56d7e19ebfd64a06645a" + }, + { + "Path": "src/CSharpDB.Storage/Paging/IPageOperationInterceptor.cs", + "Sha256": "288f779ffdaefe28eb796eb6103ee4c5792e98641cddd82eb117cccc3e322395" + }, + { + "Path": "src/CSharpDB.Storage/Paging/IPageReadProvider.cs", + "Sha256": "6781ba367e97e1672b4b58f183e5310196c6ec7275ee3730cc02b27d08a49bfa" + }, + { + "Path": "src/CSharpDB.Storage/Paging/InsertOnlyRebaseResult.cs", + "Sha256": "4ce900404348109f27c6529b7d7a581304d862afb070adcba7b88df56f9bf421" + }, + { + "Path": "src/CSharpDB.Storage/Paging/InteriorInsertRebaseHelper.cs", + "Sha256": "116db78ebb51d3f1ca05f8596de6f772d9a63ef047bad56d716bdcb4997297fb" + }, + { + "Path": "src/CSharpDB.Storage/Paging/LeafInsertRebaseHelper.cs", + "Sha256": "e1cc96554528790227c7d18f5191e8cac5670964fd51a142282024e0f2bf9af5" + }, + { + "Path": "src/CSharpDB.Storage/Paging/LeafInsertRebaseRejectReason.cs", + "Sha256": "90d64d4489a89331c96b2cfc7b06ca22361eb88c21a474d0113eb72c3a41f783" + }, + { + "Path": "src/CSharpDB.Storage/Paging/LeafInsertSplitPlan.cs", + "Sha256": "a941ca7ff72e2eb9158fdd900ca3709b049d3d6680e656db6c2efb0ef7898728" + }, + { + "Path": "src/CSharpDB.Storage/Paging/LeafInsertThreeWaySplitPlan.cs", + "Sha256": "c0b3ccef2de10a130584c5be5216a765108fa355aefbf552b424f9226a9a9971" + }, + { + "Path": "src/CSharpDB.Storage/Paging/MemoryMappedPageReadProvider.cs", + "Sha256": "9e180ba4f17eabbe4ebb5ec2e4fb7b9edb2bd6da63c68791fe1d9623e7df06e9" + }, + { + "Path": "src/CSharpDB.Storage/Paging/NoOpPageOperationInterceptor.cs", + "Sha256": "49932f7264c99f27c2fac9a7987558a732039bcd7b56104caa2b6d6da24c4ad0" + }, + { + "Path": "src/CSharpDB.Storage/Paging/OverflowPageStore.cs", + "Sha256": "75c3c1a3c35ffba3a33f92fbf9dd54dd40fbebb06e54486d3ad0bfd36fbc90b4" + }, + { + "Path": "src/CSharpDB.Storage/Paging/PageAllocator.cs", + "Sha256": "0cf7493dfc129d08a6fc830d8f8f349798328397ed640a7200f4eddf20cba367" + }, + { + "Path": "src/CSharpDB.Storage/Paging/PageBufferManager.cs", + "Sha256": "fac1e170c2b16bab71a323fa48f47c9640c5402e32dd235c6b381ac423810d16" + }, + { + "Path": "src/CSharpDB.Storage/Paging/PageConstants.cs", + "Sha256": "d4a4205dd8aacbd3ed7f3d8465f956e07f762b5f93bb8be4f6115d4f790314c2" + }, + { + "Path": "src/CSharpDB.Storage/Paging/PageReadBuffer.cs", + "Sha256": "4e17d62e43a8df73b4b94ceda7c2ba8d1e8a205de47113c3ec85a1818834f1bd" + }, + { + "Path": "src/CSharpDB.Storage/Paging/PageReadSource.cs", + "Sha256": "2dfcecc3dfabcf49d7c0d12055d505ec48e6b443506b6da9120a84fad24f1bd0" + }, + { + "Path": "src/CSharpDB.Storage/Paging/Pager.cs", + "Sha256": "1c01fb283ed1ce222aaf2d157434a683a4622241e40ee6a90dd8a91761b60e37" + }, + { + "Path": "src/CSharpDB.Storage/Paging/PagerCommitResult.cs", + "Sha256": "618f733a00da40b290eac53c1e367163f5eef3206185538f6afc7fd5b426fcaf" + }, + { + "Path": "src/CSharpDB.Storage/Paging/PagerOptions.cs", + "Sha256": "26a59bbc0188e0379653f20fa3c8555e8d5d535c3074127333c8749f08f5a970" + }, + { + "Path": "src/CSharpDB.Storage/Paging/ReadOnlyPageAllocator.cs", + "Sha256": "387e56bdf5ea91349fd4ebe2d5ebfe9ae5cefe28e7fd20914d36355d20487179" + }, + { + "Path": "src/CSharpDB.Storage/Paging/ReadOnlySlottedPage.cs", + "Sha256": "824d5e43601665bac87d238682a8b56eb0212de038204e4e564554cf79eaf796" + }, + { + "Path": "src/CSharpDB.Storage/Paging/SlottedPage.cs", + "Sha256": "65404fb8da68d02936655b3d52ffe5646ca3f12da2d9fdabf397fa5c51dad4bd" + }, + { + "Path": "src/CSharpDB.Storage/Paging/StorageDevicePageReadProvider.cs", + "Sha256": "5bd673c8fd35b6dbaa4084a5ef5cc812d29d42c6e0f36b7a9c0bb4bcdbc86b7e" + }, + { + "Path": "src/CSharpDB.Storage/Paging/WalReadCache.cs", + "Sha256": "00bc9a2135853cc50c5c68c083995565e4ebc35ab61b49c63acb805f707c679b" + }, + { + "Path": "src/CSharpDB.Storage/README.md", + "Sha256": "6d033d82db8c7cf3ba30859c534e6afe9185263b29c726c1d57172cab2abea93" + }, + { + "Path": "src/CSharpDB.Storage/Serialization/CollectionAwareRecordSerializer.cs", + "Sha256": "c10d6f8efb6b3ccb32a0d7140b423ff0beff0275b8b5ad67ecd36809732fe348" + }, + { + "Path": "src/CSharpDB.Storage/Serialization/CollectionBinaryDocumentCodec.cs", + "Sha256": "ec3942b4d52749681fe7c51c14f6b9d9c87aa41cf4584882e116dd8f6c98c589" + }, + { + "Path": "src/CSharpDB.Storage/Serialization/CollectionPayloadCodec.cs", + "Sha256": "cea554154c8060699b1a7c75832ff28086e4a68f8e0a8f4fe630df29c9f2bd13" + }, + { + "Path": "src/CSharpDB.Storage/Serialization/DefaultRecordSerializer.cs", + "Sha256": "2c3dca2eb314841e941b11e3e410287c660b4df87194b8643cf9cbd23926a6a0" + }, + { + "Path": "src/CSharpDB.Storage/Serialization/DefaultSchemaSerializer.cs", + "Sha256": "93f460958863b3f9114d4bcc241fbb671f7150feabdad921485092f545eed5ae" + }, + { + "Path": "src/CSharpDB.Storage/Serialization/DefaultSerializerProvider.cs", + "Sha256": "25ae8d7a063c9eac74abe5f7e2cc4844f25cbb376c37537525f85796d18d33d2" + }, + { + "Path": "src/CSharpDB.Storage/Serialization/IRecordSerializer.cs", + "Sha256": "22ecb95a30a2f8c0c080bcfdfbaccb6ca063723498d85fb14a177926a4457c5f" + }, + { + "Path": "src/CSharpDB.Storage/Serialization/ISchemaSerializer.cs", + "Sha256": "b2df02c95366a95c558c319ad9e54d286e9e42255bfd8dda10b9f2d91ad450e9" + }, + { + "Path": "src/CSharpDB.Storage/Serialization/ISerializerProvider.cs", + "Sha256": "5d9b21b214c489c130ed6433421570d29d207fed0a703a6f8797b9a2852747f5" + }, + { + "Path": "src/CSharpDB.Storage/Serialization/RecordColumnAccessor.cs", + "Sha256": "4443c7cea2231c175ff4d6404e9efe6a7c1003b1eabb986b09df6e4dbc211d4f" + }, + { + "Path": "src/CSharpDB.Storage/Serialization/RecordEncoder.cs", + "Sha256": "c0959648056857eb86e0f7a2dbebc1a31d4d7b8391d74bb46757000d0bda518e" + }, + { + "Path": "src/CSharpDB.Storage/Serialization/SchemaSerializer.cs", + "Sha256": "d1d55fb4bdd3a69627170c68ac0d6b70c37d06054546e4a7d8d53c55f67ad8d9" + }, + { + "Path": "src/CSharpDB.Storage/Serialization/Varint.cs", + "Sha256": "dd301a44bc8c261218ed0da6a718551195ccb8e3a229401713a6555ec2b13ac5" + }, + { + "Path": "src/CSharpDB.Storage/StorageEngine/AdvisoryStatisticsPersistenceMode.cs", + "Sha256": "ee886f22947fc9010c1d2e2741c8c73fb03bc026571534262e700374a4c91a50" + }, + { + "Path": "src/CSharpDB.Storage/StorageEngine/DefaultStorageEngineFactory.cs", + "Sha256": "1913f022827f92d1b2a6c38a2d5d3b10e18d49191c71597699b235da88bad801" + }, + { + "Path": "src/CSharpDB.Storage/StorageEngine/DurabilityMode.cs", + "Sha256": "90cc24bd8e2529ab1490ed392e85d6fe245ef2c4eefc41f1275d0b25e57b6ef4" + }, + { + "Path": "src/CSharpDB.Storage/StorageEngine/DurableGroupCommitOptions.cs", + "Sha256": "c2f0e706e455de9cfbf2ab2f735b6b1a4e39e1c021a600c40e150f7dbc380bae" + }, + { + "Path": "src/CSharpDB.Storage/StorageEngine/HybridStorageEngineFactory.cs", + "Sha256": "2d8bacf24022fabe4ea1cc53b4d11c0f7a6a3fcc29d1e5f38073101f8cb5c853" + }, + { + "Path": "src/CSharpDB.Storage/StorageEngine/IStorageEngineFactory.cs", + "Sha256": "19d2cbea56016192899f205e5fd3889a4685b3933250ddb15ef7737bd51c91ff" + }, + { + "Path": "src/CSharpDB.Storage/StorageEngine/InMemoryStorageEngineFactory.cs", + "Sha256": "5f55124bfeb88712ff12c1d07d6a6fdb86129067ef4c6960293291263b1aabe0" + }, + { + "Path": "src/CSharpDB.Storage/StorageEngine/StorageEngineContext.cs", + "Sha256": "d6f93f423369517ac63759b3d52c5388c96ed175abd5fa9a9f3655efc1aa89c2" + }, + { + "Path": "src/CSharpDB.Storage/StorageEngine/StorageEngineOptions.cs", + "Sha256": "4fa5b11881a8f4db8acd0e9a77b8b9ce205dfcb7ab694d3641b3b39de696e07e" + }, + { + "Path": "src/CSharpDB.Storage/StorageEngine/StorageEngineOptionsBuilder.cs", + "Sha256": "4b53bcb41f2674a9900f3f9af75585e62e961f1756a47bb0b6bea49a65854084" + }, + { + "Path": "src/CSharpDB.Storage/StorageEngine/StorageEngineOptionsExtensions.cs", + "Sha256": "e0a4475af1306a02eec42847c00d4dae3b27b8328fcb25f81649439895e0394e" + }, + { + "Path": "src/CSharpDB.Storage/Time/IClock.cs", + "Sha256": "0131677d7f75fa14aaad264ac6a381a649179b4ac824d61d90bfb4d67c7b2963" + }, + { + "Path": "src/CSharpDB.Storage/Time/SystemClock.cs", + "Sha256": "46ee030a0dd40de992be53f313d5d5cd2dc470ab3fb433958554f96a78dee276" + }, + { + "Path": "src/CSharpDB.Storage/Transactions/ExplicitLeafInsertPath.cs", + "Sha256": "fab85005c1947e554e83f833f2a81b2fc43cb6f906451dca128309cfb6d34450" + }, + { + "Path": "src/CSharpDB.Storage/Transactions/LogicalConflictKey.cs", + "Sha256": "dd02c040376c29af91a1556596b9e87bc3a944bc13afbce78d0bcddeb952db6e" + }, + { + "Path": "src/CSharpDB.Storage/Transactions/LogicalConflictRange.cs", + "Sha256": "01bad5ca16dc93bc138e1bb877bd65b39f500593120de5f785d702a8b0def3c7" + }, + { + "Path": "src/CSharpDB.Storage/Transactions/PagerTransactionState.cs", + "Sha256": "9dc520adbf55bcfcc61a75bf9cc7b41f659de2956605ab88f0da335895208954" + }, + { + "Path": "src/CSharpDB.Storage/Transactions/PagerWriteTransaction.cs", + "Sha256": "52cb437150d22b4a45999514deb1d9e1905f807836db76688f7e056ba3907a1f" + }, + { + "Path": "src/CSharpDB.Storage/Transactions/TransactionCoordinator.cs", + "Sha256": "a0f8b64bd2dc90f6d8a39579f6857662078781e5d04af0e51695bc35f8622dc6" + }, + { + "Path": "src/CSharpDB.Storage/Wal/ILiveWalRuntimeSnapshotProvider.cs", + "Sha256": "1e9143b4a391d2a9d5de8e2bf6916523b763d1ac29029073843173e6571be0ff" + }, + { + "Path": "src/CSharpDB.Storage/Wal/IWalCheckpointCopyPlan.cs", + "Sha256": "6110a8954eb57370b3dbcb967343c1456837343423117b0ca24908fa91047619" + }, + { + "Path": "src/CSharpDB.Storage/Wal/IWalCheckpointRuntimeSnapshotProvider.cs", + "Sha256": "6a594ec7c89a3bcecd99342735fd7d7edc884aea3f8ba7cf2b9962a0d3a14ad7" + }, + { + "Path": "src/CSharpDB.Storage/Wal/IWalRecoveryRuntimeSnapshotProvider.cs", + "Sha256": "0fb9ddec994fd6ad9bca04c48fd81e0ca610415917e531d1ff7cba976c61a091" + }, + { + "Path": "src/CSharpDB.Storage/Wal/IWalRuntimeDiagnosticsProvider.cs", + "Sha256": "dc46e112a8f68ef4a9f313fe70f6e601dea895424aa43b8993ab7d5cd866fdea" + }, + { + "Path": "src/CSharpDB.Storage/Wal/IWriteAheadLog.cs", + "Sha256": "2a06e179bc83611e2e3e8ec6dab248cda9463952d23115b1740b0f9fb21b0d43" + }, + { + "Path": "src/CSharpDB.Storage/Wal/MemoryWriteAheadLog.cs", + "Sha256": "cdbd764bad73900cf66dd763b678dbe5e1bc40694b98d4f9f6416eb8118b0378" + }, + { + "Path": "src/CSharpDB.Storage/Wal/WalCommitResult.cs", + "Sha256": "857edb23267648244941f4d0294c533fc669141f3c49faed04b2af78dc612fa8" + }, + { + "Path": "src/CSharpDB.Storage/Wal/WalFlushDiagnosticsSnapshot.cs", + "Sha256": "3ac4997b033defe47b35de924324ac3cf99b2a6ba7e5f0a8062431672c8ad4d9" + }, + { + "Path": "src/CSharpDB.Storage/Wal/WalFlushPolicy.cs", + "Sha256": "ac417b6c12eaae5ad2c7931d24b143f4605fac1c0e5e0b8ab1512266011b199d" + }, + { + "Path": "src/CSharpDB.Storage/Wal/WalFrameWrite.cs", + "Sha256": "00c5b0b6f8c9d05fdc4cbfada76998c81fa6f9dab90ebcb589c44710b6bb0708" + }, + { + "Path": "src/CSharpDB.Storage/Wal/WalIndex.cs", + "Sha256": "b9546efb5337fbbe9e81220939272b078fb4c8ff7a97837fe649caac807ea809" + }, + { + "Path": "src/CSharpDB.Storage/Wal/WalSnapshotMap.cs", + "Sha256": "ee322f04fa7cf6e45c27b3ce98534267f7e9f987c7cb10a90937d3c11ca5c20d" + }, + { + "Path": "src/CSharpDB.Storage/Wal/WriteAheadLog.cs", + "Sha256": "53863b62be53628d0ab80a6ef0fc6a2a37dbe7e902a41f13360946ae8e163fe0" + }, + { + "Path": "src/Directory.Build.props", + "Sha256": "7ed891e47994615f719aabc98311ae2995c5f1d84f568ea07de4fb9fd4afab2b" + }, + { + "Path": "src/Directory.Build.targets", + "Sha256": "50f22e7bffb6ad7b8b93b85d7b55c4608b68acb6cfb8a8ef9405ca4a4c959117" + }, + { + "Path": "src/CSharpDB.ImportExport/CSharpDB.ImportExport.csproj", + "Sha256": "55025eb0a27d5c2f3206b50fe24982fb8769eae35fbd2322d7b7dc8387ffd476" + }, + { + "Path": "src/CSharpDB.ImportExport/Models/TableArchiveCheckConstraint.cs", + "Sha256": "a1ff83a445d4ee385cc324604fe2535c044500cbd778b2605a0251116f792183" + }, + { + "Path": "src/CSharpDB.ImportExport/Models/TableArchiveColumn.cs", + "Sha256": "2cf47e57ec67b583ac3e5f10d3f7f9bd7e184052ae13fc217d8ef1f1fe47b7be" + }, + { + "Path": "src/CSharpDB.ImportExport/Models/TableArchiveForeignKey.cs", + "Sha256": "e000a9c0cc0f42ba0f46160f015a6e9cae7e9a813f05fb5955dc72795392fdea" + }, + { + "Path": "src/CSharpDB.ImportExport/Models/TableArchiveIndexManifest.cs", + "Sha256": "62ae7b38bf8ff798f22d8646ea8cc394b62828e7e621a00e75e6d8fc87f826d8" + }, + { + "Path": "src/CSharpDB.ImportExport/Models/TableArchiveKeyConstraint.cs", + "Sha256": "d66acae4bc3dbe30faace9a886640262847c296029da130f42b03b75b2d888f9" + }, + { + "Path": "src/CSharpDB.ImportExport/Models/TableArchiveManifest.cs", + "Sha256": "16ec11724e352950ad1220d6236ca9a6fd3a8047ab0b084a714cfce9c6e85008" + }, + { + "Path": "src/CSharpDB.ImportExport/Models/TableArchiveRowLookupResult.cs", + "Sha256": "78365da3166f8c1f4f04131806077d7c624851ceeb5e4e8a92dc276568e07c99" + }, + { + "Path": "src/CSharpDB.ImportExport/Models/TableArchiveSchema.cs", + "Sha256": "ae9cd047dc50fe637778528853f8806b1c282cae9caa1792a79db75e61881521" + }, + { + "Path": "src/CSharpDB.ImportExport/Models/TableArchiveSecondaryIndex.cs", + "Sha256": "a0ee5be1dc02005e5721bd989aa644df7fb6f7f6de77e20c418ff3816422db12" + }, + { + "Path": "src/CSharpDB.ImportExport/Models/TableArchiveSectionDigests.cs", + "Sha256": "527386ddaecdbc4f727a090e8f4aeb3d0216baeb310a88eeda11fc54819bb134" + }, + { + "Path": "src/CSharpDB.ImportExport/README.md", + "Sha256": "20ea49883e6bc5c0d9b30e3a13ae836797a0bad3b70f5577d14fda1047c41399" + }, + { + "Path": "src/CSharpDB.ImportExport/Serialization/TableArchiveJson.cs", + "Sha256": "7dd1b09ab2c4f4757875f21c49503278afc7a9d71f1ae0249b6efbeec964cefa" + }, + { + "Path": "src/CSharpDB.ImportExport/Serialization/TableArchiveJsonContext.cs", + "Sha256": "59bfc4f490d93e371ba7b7c4c132c4e702b5415529eb5059c6ab2aff77e5e4b8" + }, + { + "Path": "src/CSharpDB.ImportExport/Serialization/TableArchiveNativeFormat.cs", + "Sha256": "dc806efc103139efc7946e9f82a69d6a6085dfbfefb07cbc9ebe7e18857089aa" + }, + { + "Path": "src/CSharpDB.ImportExport/Serialization/TableArchiveReadDocuments.cs", + "Sha256": "90fb2e1311a6dad166ac341c30b756ed57ef5ac951e86915600d2059bf8f28a3" + }, + { + "Path": "src/CSharpDB.ImportExport/TableArchives/TableArchivePrimaryKeyLookupReader.cs", + "Sha256": "b6b4958514d0cab24bb3bbc32f2fe5b6eb737fe2544a1b8510bd28a2f806c7c4" + }, + { + "Path": "src/CSharpDB.ImportExport/TableArchives/TableArchiveReader.cs", + "Sha256": "31afe9a2852fc0b60d6bb457e8065968bba501bfca5dddb8d70eb1392cb7c551" + }, + { + "Path": "src/CSharpDB.ImportExport/TableArchives/TableArchiveWriter.cs", + "Sha256": "3b177fc030c7a7a28bb5db1df3a21514054f6ac428ad47528aadb5c8f7046172" + } +] diff --git a/docs/design/benchmarks/dotnet11-2026-11-14/summary.csv b/docs/design/benchmarks/dotnet11-2026-11-14/summary.csv new file mode 100644 index 00000000..c93d8723 --- /dev/null +++ b/docs/design/benchmarks/dotnet11-2026-11-14/summary.csv @@ -0,0 +1,8 @@ +Name,Net10MedianRate,Net11MedianRate,MedianRateChangePct,PairedChangesPct,Net10RsdPct,Net11RsdPct,Net10Rates,Net11Rates,Net10Bytes,Net11Bytes,AllocChangePct,Net10CpuUs,Net11CpuUs,Net10P95OperationUs,Net11P95OperationUs +Parse SELECT,457287.8488440943,482277.4077589333,5.464732766900804,"[2.8468067746171943, -3.732475625028586, 8.472330737538014]",2.13460591237075,5.519113719575981,"[468927.93552240886, 457287.8488440943, 449476.0389924064]","[482277.4077589333, 440219.69134977093, 487557.13560182834]",5968.159846934235,5968.159836810351,-1.6963157545291097e-07,2.186767432909975,2.069434508998922,188.6,181.2 +Cached PK lookup (10K rows),1760136.117989791,1885908.4057045798,7.145600072023428,"[5.133636140721709, 7.20042667665135, 9.882841786230511]",1.54705089523492,1.2084877162540808,"[1760136.117989791, 1765606.3087897634, 1716290.1641854919]","[1850495.1018688113, 1892737.4964525008, 1885908.4057045798]",631.9201942463261,631.9201896592544,-7.258941447929601e-07,0.5636992590772447,0.5292127772900965,1,0.9 +Full scan materialized (10K rows),658.1569197046559,686.0491315416656,4.2379273091174285,"[6.077530023323363, 2.594656996079725, 0.941963171795468]",0.9668323969985179,2.5890233334181683,"[658.1569197046559, 668.6986940926957, 657.158507106848]","[698.1566041002866, 686.0491315416656, 663.3486982241154]",2889040.628820961,2889040.6033885954,-8.803048734407071e-07,1489.4859813084113,1454.6137730005466,2513,2330.3 +ORDER BY materialized (10K rows),317.3733417242895,319.9408869218801,0.8089983814145052,"[0.8089983814145052, 0.2691185896712911, 5.502006507664836]",3.166695492177313,0.5171360846922957,"[317.3733417242895, 321.5692720451546, 302.644229624799]","[319.9408869218801, 322.43467473489875, 319.2957348338275]",2898528.7134599504,2898521.041860465,-0.00026467219212955584,3138.538794801103,3100.5859375,4423.5,4314.7 +In-memory single INSERT,269246.55479624774,277568.52447557385,3.0908360872523577,"[1.261122657635938, 3.5219748064928114, 3.428515038432778]",1.0684289844684063,1.9372087153123065,"[269246.55479624774, 273753.77918617724, 268367.5042346231]","[272642.0841036874, 283395.31832093635, 277568.52447557385]",1938.6918282207678,1875.7402301231677,-3.247117318040882,3.7043984906897767,3.602711040057643,4.4,4.3 +Durable single INSERT,283.80456325495715,273.023950423149,-3.7986044720934697,"[4.983726602286631, -3.7986044720934697, -5.773210333281731]",1.6450692875521196,4.292495487401301,"[279.3676142186991, 283.80456325495715, 288.7064197659363]","[293.2905323266899, 273.023950423149, 272.0387909071615]",3392.737662337662,3333.1878994461013,-1.7552127166392761,223.71364653243847,372.8163613123136,3771.4,4265.5 +Durable prepared batch (100 rows),26762.133358772986,27213.37716661214,1.6861279397639262,"[4.408832185974743, 1.6861279397639262, -4.734368206785899]",3.2154016833528614,1.6339382006154524,"[26532.56129537188, 26762.133358772986, 28146.09543291107]","[27702.337397525716, 27213.37716661214, 26813.55563928371]",131.0308054639661,130.41937753721245,-0.4666291446416948,4.093583481349911,5.021808999081727,3902.8,3837.1 diff --git a/docs/design/benchmarks/dotnet11-2026-11-14/summary.json b/docs/design/benchmarks/dotnet11-2026-11-14/summary.json new file mode 100644 index 00000000..d6d3a473 --- /dev/null +++ b/docs/design/benchmarks/dotnet11-2026-11-14/summary.json @@ -0,0 +1,212 @@ +[ + { + "Name": "Parse SELECT", + "Net10MedianRate": 457287.8488440943, + "Net11MedianRate": 482277.4077589333, + "MedianRateChangePct": 5.464732766900804, + "PairedChangesPct": [ + 2.8468067746171943, + -3.732475625028586, + 8.472330737538014 + ], + "Net10RsdPct": 2.13460591237075, + "Net11RsdPct": 5.519113719575981, + "Net10Rates": [ + 468927.93552240886, + 457287.8488440943, + 449476.0389924064 + ], + "Net11Rates": [ + 482277.4077589333, + 440219.69134977093, + 487557.13560182834 + ], + "Net10Bytes": 5968.159846934235, + "Net11Bytes": 5968.159836810351, + "AllocChangePct": -1.6963157545291097e-07, + "Net10CpuUs": 2.186767432909975, + "Net11CpuUs": 2.069434508998922, + "Net10P95OperationUs": 188.6, + "Net11P95OperationUs": 181.2 + }, + { + "Name": "Cached PK lookup (10K rows)", + "Net10MedianRate": 1760136.117989791, + "Net11MedianRate": 1885908.4057045798, + "MedianRateChangePct": 7.145600072023428, + "PairedChangesPct": [ + 5.133636140721709, + 7.20042667665135, + 9.882841786230511 + ], + "Net10RsdPct": 1.54705089523492, + "Net11RsdPct": 1.2084877162540808, + "Net10Rates": [ + 1760136.117989791, + 1765606.3087897634, + 1716290.1641854919 + ], + "Net11Rates": [ + 1850495.1018688113, + 1892737.4964525008, + 1885908.4057045798 + ], + "Net10Bytes": 631.9201942463261, + "Net11Bytes": 631.9201896592544, + "AllocChangePct": -7.258941447929601e-07, + "Net10CpuUs": 0.5636992590772447, + "Net11CpuUs": 0.5292127772900965, + "Net10P95OperationUs": 1, + "Net11P95OperationUs": 0.9 + }, + { + "Name": "Full scan materialized (10K rows)", + "Net10MedianRate": 658.1569197046559, + "Net11MedianRate": 686.0491315416656, + "MedianRateChangePct": 4.2379273091174285, + "PairedChangesPct": [ + 6.077530023323363, + 2.594656996079725, + 0.941963171795468 + ], + "Net10RsdPct": 0.9668323969985179, + "Net11RsdPct": 2.5890233334181683, + "Net10Rates": [ + 658.1569197046559, + 668.6986940926957, + 657.158507106848 + ], + "Net11Rates": [ + 698.1566041002866, + 686.0491315416656, + 663.3486982241154 + ], + "Net10Bytes": 2889040.628820961, + "Net11Bytes": 2889040.6033885954, + "AllocChangePct": -8.803048734407071e-07, + "Net10CpuUs": 1489.4859813084113, + "Net11CpuUs": 1454.6137730005466, + "Net10P95OperationUs": 2513, + "Net11P95OperationUs": 2330.3 + }, + { + "Name": "ORDER BY materialized (10K rows)", + "Net10MedianRate": 317.3733417242895, + "Net11MedianRate": 319.9408869218801, + "MedianRateChangePct": 0.8089983814145052, + "PairedChangesPct": [ + 0.8089983814145052, + 0.2691185896712911, + 5.502006507664836 + ], + "Net10RsdPct": 3.166695492177313, + "Net11RsdPct": 0.5171360846922957, + "Net10Rates": [ + 317.3733417242895, + 321.5692720451546, + 302.644229624799 + ], + "Net11Rates": [ + 319.9408869218801, + 322.43467473489875, + 319.2957348338275 + ], + "Net10Bytes": 2898528.7134599504, + "Net11Bytes": 2898521.041860465, + "AllocChangePct": -0.00026467219212955584, + "Net10CpuUs": 3138.538794801103, + "Net11CpuUs": 3100.5859375, + "Net10P95OperationUs": 4423.5, + "Net11P95OperationUs": 4314.7 + }, + { + "Name": "In-memory single INSERT", + "Net10MedianRate": 269246.55479624774, + "Net11MedianRate": 277568.52447557385, + "MedianRateChangePct": 3.0908360872523577, + "PairedChangesPct": [ + 1.261122657635938, + 3.5219748064928114, + 3.428515038432778 + ], + "Net10RsdPct": 1.0684289844684063, + "Net11RsdPct": 1.9372087153123065, + "Net10Rates": [ + 269246.55479624774, + 273753.77918617724, + 268367.5042346231 + ], + "Net11Rates": [ + 272642.0841036874, + 283395.31832093635, + 277568.52447557385 + ], + "Net10Bytes": 1938.6918282207678, + "Net11Bytes": 1875.7402301231677, + "AllocChangePct": -3.247117318040882, + "Net10CpuUs": 3.7043984906897767, + "Net11CpuUs": 3.602711040057643, + "Net10P95OperationUs": 4.4, + "Net11P95OperationUs": 4.3 + }, + { + "Name": "Durable single INSERT", + "Net10MedianRate": 283.80456325495715, + "Net11MedianRate": 273.023950423149, + "MedianRateChangePct": -3.7986044720934697, + "PairedChangesPct": [ + 4.983726602286631, + -3.7986044720934697, + -5.773210333281731 + ], + "Net10RsdPct": 1.6450692875521196, + "Net11RsdPct": 4.292495487401301, + "Net10Rates": [ + 279.3676142186991, + 283.80456325495715, + 288.7064197659363 + ], + "Net11Rates": [ + 293.2905323266899, + 273.023950423149, + 272.0387909071615 + ], + "Net10Bytes": 3392.737662337662, + "Net11Bytes": 3333.1878994461013, + "AllocChangePct": -1.7552127166392761, + "Net10CpuUs": 223.71364653243847, + "Net11CpuUs": 372.8163613123136, + "Net10P95OperationUs": 3771.4, + "Net11P95OperationUs": 4265.5 + }, + { + "Name": "Durable prepared batch (100 rows)", + "Net10MedianRate": 26762.133358772986, + "Net11MedianRate": 27213.37716661214, + "MedianRateChangePct": 1.6861279397639262, + "PairedChangesPct": [ + 4.408832185974743, + 1.6861279397639262, + -4.734368206785899 + ], + "Net10RsdPct": 3.2154016833528614, + "Net11RsdPct": 1.6339382006154524, + "Net10Rates": [ + 26532.56129537188, + 26762.133358772986, + 28146.09543291107 + ], + "Net11Rates": [ + 27702.337397525716, + 27213.37716661214, + 26813.55563928371 + ], + "Net10Bytes": 131.0308054639661, + "Net11Bytes": 130.41937753721245, + "AllocChangePct": -0.4666291446416948, + "Net10CpuUs": 4.093583481349911, + "Net11CpuUs": 5.021808999081727, + "Net10P95OperationUs": 3902.8, + "Net11P95OperationUs": 3837.1 + } +] \ No newline at end of file diff --git a/docs/design/dotnet11-benchmark-results-2026-11-14.md b/docs/design/dotnet11-benchmark-results-2026-11-14.md new file mode 100644 index 00000000..c65a9c2d --- /dev/null +++ b/docs/design/dotnet11-benchmark-results-2026-11-14.md @@ -0,0 +1,125 @@ +# First .NET 10 / .NET 11 core-engine comparison + +Date: 2026-11-14. Branch: `max/dotnet11`, with uncommitted migration changes. + +The clearest result is a **7.1% increase in median cached point-read throughput**. +Full scans improved 4.2% and in-memory inserts 3.1% in this workload. These three +workloads improved in each pair. Sorting changed little. Parsing and durable +writes were too variable to establish a repeatable improvement or regression. + +## Main comparison + +Numbers are medians of three fresh-process runs per runtime. Change is the ratio +of the two medians; the paired range separately shows each matched run's change. +Positive throughput changes favor .NET 11. Scan and sort rates are whole queries +over 10,000 rows, not rows/second. Batch rates are inserted rows/second. + +| Workload | .NET 10 / second | .NET 11 / second | Median change | Changes across the three pairs | +| --- | ---: | ---: | ---: | --- | +| Parse SELECT | 457,288 | 482,277 | +5.5% | -3.7% to +8.5%; mixed | +| Cached primary-key query, 10K rows | 1,760,136 | 1,885,908 | **+7.1%** | +5.1% to +9.9% | +| Full scan and materialization, 10K rows | 658.2 | 686.0 | **+4.2%** | +0.9% to +6.1% | +| ORDER BY and materialization, 10K rows | 317.4 | 319.9 | +0.8% | +0.3% to +5.5%; small median change | +| In-memory single-row INSERT | 269,247 | 277,569 | **+3.1%** | +1.3% to +3.5% | +| Durable single-row INSERT | 283.8 | 273.0 | -3.8% | -5.8% to +5.0%; mixed | +| Durable prepared batch, 100 rows/commit | 26,762 | 27,213 | +1.7% | -4.7% to +4.4%; mixed | + +Cached point reads were the most stable comparison: throughput relative standard +deviation was 1.55% on .NET 10 and 1.21% on .NET 11, with non-overlapping observed +throughput ranges. Full scans and memory inserts showed smaller gains; three +pairs are an initial indication, not a statistical guarantee for other workloads. +Parsing varied substantially on .NET 11 (5.52% relative standard deviation), so +its positive median must not be presented as a reliable parser speedup. + +### Allocations + +| Workload | .NET 10 bytes/unit | .NET 11 bytes/unit | Change | +| --- | ---: | ---: | ---: | +| In-memory INSERT | 1,938.7 | 1,875.7 | **-3.25%** | +| Cached point query | 631.9 | 631.9 | Essentially unchanged | +| Full scan | 2,889,041 | 2,889,041 | Essentially unchanged | +| Parse SELECT | 5,968.2 | 5,968.2 | Essentially unchanged | + +The allocation counters cover the entire process, including async/background +work. They are sampled at measurement boundaries, not for every database call. +Write tables grow during the interval; total row counts are retained in each +run's correctness evidence. The memory-insert allocation result is therefore +specific to these durations and table sizes. + +## Focused durable-write confirmation + +The initial suite reported higher process CPU per durable insert on .NET 11 +(223.7 to 372.8 microseconds at the medians). This warranted a separate check. +Six additional fresh processes ran only durable single-row inserts, with a +4-second warmup and 20-second measurement, again using three alternating pairs. + +| Metric | .NET 10 | .NET 11 | Change | +| --- | ---: | ---: | ---: | +| Median inserts/second | 283.6 | 290.8 | +2.5% | +| Median process CPU microseconds/insert | 275.4 | 255.0 | -7.4% | +| Median allocated bytes/insert | 3,389.4 | 3,334.1 | -1.63% | + +The throughput changes by pair were +0.2%, -1.2%, and +5.3%. CPU changes also +changed direction. The initial CPU increase and throughput decrease did **not** +reproduce consistently. Neither a durable-write speedup nor a durable-write CPU +regression is established. The two experiments use different durations and are +reported separately rather than pooled into a favorable aggregate. + +## Method and scope + +- Windows 11 Pro x64, Intel Core i9-11900K, 8 physical / 16 logical processors. + The repository's process tuner selected high priority and affinity `0xFF` + (8 logical processors). This is a single-client benchmark. +- Actual loaded runtimes: **.NET 10.0.15** and **.NET 11.0.0**. Both targets were + compiled in Release with SDK **11.0.100**. +- Eight core-library projects were copied from the migrated working tree and + built for both `net10.0` and `net11.0`. Their C# source is identical across + conditions. Source hashes, the base commit, migration patch, and executed + assembly hashes are retained. Both builds passed without warnings or errors. +- This isolates runtime/target-framework effects for the selected core-engine + operations. It is not a complete `main` versus branch comparison and does not + cover the client, API, EF provider, gRPC, concurrent clients, or NativeAOT. +- The harness reuses `BenchmarkDatabase`, deterministic `DataGenerator`, + `BenchmarkDurability`, and `BenchmarkProcessTuner` from the existing suite. + It is a bounded custom harness, not a BenchmarkDotNet or release-qualification run. +- Main measurements: 2-second warmup, forced GC outside the timed interval, then + 8 seconds per workload. Three pairs ran in order **10, 11, 11, 10, 10, 11**. + Parsing uses 64 parses per harness operation to amortize harness timing costs. +- Latency sampling is every 64th cached lookup, every 8th parser batch/memory + insert, and every operation for scans, sorts, and durable writes. Each retained + at least 100 observations; raw operation latency percentiles are in the JSON. + Parser operation percentiles describe a batch of 64 parses, not one parse. +- Read databases contain 10,000 deterministic rows and are warmed. Query result + counts and point-read IDs are checked; sort ordering is checked before timing. +- Writes retain **Durable** mode with default storage settings and no group + commit or relaxed flush policy. Row counts and value sums are checked after + every write workload and again after closing/reopening file-backed databases. +- No application runtime-async switch or other performance optimization was + enabled. No builds, tests, or parallel benchmark jobs ran during timing. + Ordinary OS/application activity and dynamic CPU frequency were not isolated. + +All **12 measured process runs** passed correctness and durable reopen checks. +All **48 workload measurements** retained the required duration/sample floors. +Executed artifact hashes and original C# source hashes were checked again after +both experiments. A preliminary 3-second .NET 11 pilot is excluded from these +tables. These are exploratory local results, not production or release guarantees. + +## Evidence and next experiment + +The [main summary CSV](benchmarks/dotnet11-2026-11-14/summary.csv), +[focused summary CSV](benchmarks/dotnet11-2026-11-14/focused-summary.csv), +[main run manifest](benchmarks/dotnet11-2026-11-14/run-manifest.json), and +[focused manifest](benchmarks/dotnet11-2026-11-14/focused-manifest.json) accompany +the report. Individual JSON reports are under `measured/` and `focused/` in that +same evidence directory. Harness source text, analysis scripts, the migration +source patch, and source-file hashes are also retained there. + +The executable isolated workspace is `.tmp/dotnet11-benchmark-20261114`. +Its `Run-Comparison.ps1` and `Run-Focused.ps1` expect new output paths; preserve +these results and use a fresh workspace/output directory when rerunning. + +The next useful experiment is an explicit runtime-async variant against the +current .NET 11 build, using the same workloads and correctness checks. It should +also include longer isolated write measurements before changing any defaults. +The [migration plan](dotnet11-migration-and-performance.md) contains the remaining +source-level candidates and acceptance criteria. diff --git a/docs/design/dotnet11-migration-and-performance.md b/docs/design/dotnet11-migration-and-performance.md new file mode 100644 index 00000000..bb694e75 --- /dev/null +++ b/docs/design/dotnet11-migration-and-performance.md @@ -0,0 +1,131 @@ +# .NET 11 migration and performance work + +Date: 2026-11-13. Branch: `max/dotnet11`. + +## Migration scope + +- Pin `global.json` to SDK 11.0.100, retaining patch roll-forward and the + Microsoft.Testing.Platform runner. +- Target .NET 11 in the runtime libraries, applications, tests, benchmarks, + package smoke projects, and samples. Studio keeps its existing Windows minimum. +- Keep `CSharpDB.Generators` on `netstandard2.0`: it is loaded by the compiler, + rather than run as a .NET application. Its Roslyn 5.9 references are compatible + with the SDK's Roslyn 5.12 compiler. +- Align direct ASP.NET Core, Microsoft.Extensions, OleDb, and PKCS references + with 11.0.0. ASP.NET Core OpenAPI 11 requires the OpenAPI 3 document model. +- Update child-process paths, desktop hosting, EF migration-tool project + validation, release/install scripts, worker dependency checks, and CI paths. +- CI performance guardrails use `-UseHarnessSdk` to build both disposable + product checkouts with the candidate harness SDK. The original SDK manifests + and effective build-input hashes are retained. Product TFMs are unchanged. + This compares product source under a common benchmark runtime; a separate + runtime-only experiment is still required to quantify the .NET upgrade. +- Retain qualified EF Core **10.0.14**, including `dotnet-ef` and the provider's + package graph. Targeting .NET 11 does not require migrating the provider to EF + Core 11. That upgrade needs its own SQL translation and migration review. + The local EF tool allows runtime roll-forward so .NET 11-only hosts can run it. +- Preserve published benchmark manifests, archived results, and historical + design/release documents. Their .NET 10 identifiers describe past runs. + +Consumers of the new binaries/packages need .NET 11. Existing published packages +and releases are unaffected. No database format or durability setting changes. + +### Numeric compatibility + +.NET 11 changes [floating-point/decimal conversions](https://learn.microsoft.com/en-us/dotnet/core/compatibility/core-libraries/11/decimal-biginteger-floating-point-conversions) +and [fractional-digit floating-point rounding](https://learn.microsoft.com/en-us/dotnet/core/compatibility/core-libraries/11/math-round-digits). +Initial migration tests exposed binary tails in DECIMAL assignments, generated +values, and EF updates. `CSharpDbDecimalCodec.FromDouble` and `FromSingle` now +define 15- and 7-significant-digit conversion explicitly, using stack formatting +and decimal parsing. Exact decimal inputs remain exact; declared scale and +precision validation still reject values that cannot be stored. The Access-style +formula `Round` retains its previous scale/round/unscale algorithm. + +## What to investigate next + +The source is Microsoft's [Performance Improvements in .NET 11](https://devblogs.microsoft.com/dotnet/performance-improvements-in-net-11/). +Its relevant changes include JIT devirtualization and escape analysis, opt-in +runtime async, vectorized Unicode whitespace searches, sorting improvements, +collection operations, and JSON processing. These are leads for measurement, +not measured CSharpDB improvements. In particular, its Windows synchronous +`RandomAccess.Read` result does not describe our asynchronous read path. + +The ranking below comes from inspecting the current CSharpDB implementation. + +| Priority | Candidate and owning code | Experiment and acceptance criteria | +| --- | --- | --- | +| 1 | Measure the runtime upgrade alone. B-tree cursors, serializers, query operators, page caches, and WAL code all execute on the upgraded runtime. | Compare unchanged database source built for .NET 10 and 11. Run point lookup, scan, insert/batch, ORDER BY, and durable commit cases; retain latency distributions, allocations, throughput, and exact runtime metadata. This separates runtime gains from later source changes. | +| 2 | Runtime async across `Database`, `BTree`, `Pager`, `WriteAheadLog`, and `FileStorageDevice`. These layers contain many directly awaited `Task`/`ValueTask` calls. | Build a separate variant with `$(Features);runtime-async=on` for the runtime projects. Compare cached reads, real file I/O, durable writes, cancellation, exceptions, and disposal. Keep the default unchanged until correctness and repeated performance results pass; qualify NativeAOT independently. | +| 3 | SQL whitespace scanning in `Tokenizer.SkipWhitespace`, `SqlQueryFingerprintProvider`, and raw-text scanners in `Parser`. | Compare scalar scanning with [`ReadOnlySpan.IndexOfAnyExceptWhiteSpace`](https://github.com/dotnet/runtime/pull/111439). Benchmark no whitespace, ordinary one-space SQL, long indentation, all-whitespace input, and Unicode whitespace. Preserve token offsets, fingerprint output, EOF behavior, and cancellation. Reject a change that helps long runs but regresses ordinary queries. | +| 4 | Sort comparison dispatch in `Execution/Operators.cs` and checkpoint page ordering in both WAL implementations. | Compare current delegate/interface comparers with concrete struct comparers and generic span sorting. Use `SortStabilityBenchmarks` plus checkpoint workloads. Preserve SQL null ordering, collations, tie behavior, and the valid range of rented arrays. The existing WAL comparer is cached, so a per-sort delegate-allocation saving must not be assumed. | +| 5 | Collection construction, removal, and JSON in caches, collection indexes, and client/API serialization. | Profile first, then use `StorageHotPathBenchmarks`, collection benchmarks, and transport benchmarks to isolate actual allocation/CPU costs. Existing tokenizer keyword lookup already uses span alternate lookup; avoid duplicating that optimization. | + +## Measurement sequence + +1. Finish migration correctness and packaging validation before collecting timings. +2. Build isolated .NET 10 and .NET 11 baselines from the same source; do not use + old published benchmark numbers as the control. Record SDK, runtime, commit, + architecture, durability, storage preset, and dependency versions. Separate + any dependency update effects from a runtime-only comparison. +3. Run benchmarks without concurrent builds or tests. Use a pilot to select run + duration, then repeat in alternating A/B order. Retain raw output and report + dispersion; an unstable comparison is inconclusive. +4. Evaluate one source change at a time against the migrated baseline. Require + correct results, no meaningful regressions on ordinary workloads, and a + repeatable improvement on the intended workload. +5. Confirm file-backed durable behavior and reopen/crash recovery after any + async, I/O, WAL, or checkpoint change. Do not trade away flush guarantees to + improve a timing result. + +Example existing microbenchmark entry points, run separately: + +```powershell +dotnet run --project tests/CSharpDB.Benchmarks -c Release -- --micro --filter '*ParserBenchmarks*' +dotnet run --project tests/CSharpDB.Benchmarks -c Release -- --micro --filter '*PointLookupBenchmarks*' +dotnet run --project tests/CSharpDB.Benchmarks -c Release -- --micro --filter '*SortStabilityBenchmarks*' +dotnet run --project tests/CSharpDB.Benchmarks -c Release -- --micro --filter '*StorageHotPathBenchmarks*' +``` + +The migration itself did not establish a speedup. The +[first controlled core-engine comparison](dotnet11-benchmark-results-2026-11-14.md) +now records the measured .NET 10/11 differences and their repeatability limits. +Source-level performance changes should use that migrated baseline and carry +their own results. + +## Local validation + +Validated on Windows x64 with SDK 11.0.100 and runtime 11.0.0: + +- Release solution build and standalone sample/project builds passed. The + solution build reported 39 analyzer warnings and no errors. +- Latest results across 27 solution test suites: **9,035 passed, 0 failed, + 4 skipped**. The skips require opt-in Access, SQL Server, or MySQL fixtures. + This combines the full run with successful daemon and API reruns. The daemon + rerun used a shortened process PATH because the machine's inherited PATH + exceeded Windows batch-file limits. One health test observed an independent + background refresh under load; all 191 API tests passed on the isolated rerun. +- Separate WAL prototype suite: **179 passed**. +- All **19 release NuGet packages** passed graph validation. Package-only + observability consumers and EF CRUD, migration generation, SQL generation, + database update, and reopen checks passed with an isolated local feed. +- SQL Server, MySQL, and Access worker bundle/isolation checks passed. The EF + migration-tool package, scratch proof, and isolation checks passed in a + separate run after NativeAOT compilation finished. +- Generated-collection trimmed publish and execution passed. NativeAOT shared + library publish and native archive SQL smoke passed, including scan, indexed + lookup, declared types, and reopen. +- All **42 performance-guardrail contract tests** passed, including common-SDK + provenance, balanced execution order, and rejection of zero benchmark execution. + A fresh export of `main` also built successfully with the candidate .NET 11 + harness and SDK while its product projects retained their .NET 10 TFMs. +- Documentation, EF package consistency, package closure, PowerShell parsing, + and whitespace/diff checks passed. + +The local ignored `CheckpointControlBenchmark.cs` experiment did not compile +against `main`'s benchmark API. It was preserved at +`.tmp/dotnet11/preserved-scratch/CheckpointControlBenchmark.cs` so the SDK would +not include it in the product build. Other local investigations were retained. + +Linux/macOS execution and the complete hosted performance matrix have not been +run locally. The checks above establish migration correctness and packaging; +they do not establish a throughput or latency improvement. diff --git a/global.json b/global.json index c412d6b0..701104b3 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "10.0.401", + "version": "11.0.100", "rollForward": "latestPatch" }, "test": { diff --git a/samples/api-level-sharding/ApiLevelShardingSample.csproj b/samples/api-level-sharding/ApiLevelShardingSample.csproj index e64398ff..0aed3c03 100644 --- a/samples/api-level-sharding/ApiLevelShardingSample.csproj +++ b/samples/api-level-sharding/ApiLevelShardingSample.csproj @@ -2,7 +2,7 @@ Exe - net10.0 + net11.0 enable enable diff --git a/samples/aspnet-core-identity/AspNetCoreIdentitySample.csproj b/samples/aspnet-core-identity/AspNetCoreIdentitySample.csproj index 8a2e3278..874d7984 100644 --- a/samples/aspnet-core-identity/AspNetCoreIdentitySample.csproj +++ b/samples/aspnet-core-identity/AspNetCoreIdentitySample.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable AspNetCoreIdentitySample @@ -12,7 +12,7 @@ - + diff --git a/samples/collection-indexing/CollectionIndexingSample.csproj b/samples/collection-indexing/CollectionIndexingSample.csproj index 2349d751..4b8f33b3 100644 --- a/samples/collection-indexing/CollectionIndexingSample.csproj +++ b/samples/collection-indexing/CollectionIndexingSample.csproj @@ -2,7 +2,7 @@ Exe - net10.0 + net11.0 enable enable diff --git a/samples/compression-sdk/CompressionSdkSample.csproj b/samples/compression-sdk/CompressionSdkSample.csproj index 4cd1d432..62cb1fe3 100644 --- a/samples/compression-sdk/CompressionSdkSample.csproj +++ b/samples/compression-sdk/CompressionSdkSample.csproj @@ -2,14 +2,14 @@ Exe - net10.0 + net11.0 enable enable false - + diff --git a/samples/csv-bulk-import/CsvBulkImportSample.csproj b/samples/csv-bulk-import/CsvBulkImportSample.csproj index de8294b1..b1c4dbea 100644 --- a/samples/csv-bulk-import/CsvBulkImportSample.csproj +++ b/samples/csv-bulk-import/CsvBulkImportSample.csproj @@ -2,7 +2,7 @@ Exe - net10.0 + net11.0 enable enable diff --git a/samples/efcore-minimal-api/EfCoreMinimalApiSample.csproj b/samples/efcore-minimal-api/EfCoreMinimalApiSample.csproj index 3d1dd3fc..b2ec0dcc 100644 --- a/samples/efcore-minimal-api/EfCoreMinimalApiSample.csproj +++ b/samples/efcore-minimal-api/EfCoreMinimalApiSample.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable EfCoreMinimalApiSample diff --git a/samples/efcore-provider/EfCoreProviderSample.csproj b/samples/efcore-provider/EfCoreProviderSample.csproj index 113ddb8a..8b23334e 100644 --- a/samples/efcore-provider/EfCoreProviderSample.csproj +++ b/samples/efcore-provider/EfCoreProviderSample.csproj @@ -2,7 +2,7 @@ Exe - net10.0 + net11.0 enable enable diff --git a/samples/fulfillment-hub/FulfillmentHubSample.csproj b/samples/fulfillment-hub/FulfillmentHubSample.csproj index 5c2c4466..58739db9 100644 --- a/samples/fulfillment-hub/FulfillmentHubSample.csproj +++ b/samples/fulfillment-hub/FulfillmentHubSample.csproj @@ -2,7 +2,7 @@ Exe - net10.0 + net11.0 enable enable diff --git a/samples/fulfillment-hub/README.md b/samples/fulfillment-hub/README.md index be43bcce..a066d187 100644 --- a/samples/fulfillment-hub/README.md +++ b/samples/fulfillment-hub/README.md @@ -15,7 +15,7 @@ dotnet run --project samples/fulfillment-hub/FulfillmentHubSample.csproj Each run creates a fresh demo database here: ```text -samples/fulfillment-hub/bin/Debug/net10.0/fulfillment-hub-demo.db +samples/fulfillment-hub/bin/Debug/net11.0/fulfillment-hub-demo.db ``` The seeder does more than load SQL. It also: @@ -119,7 +119,7 @@ What to learn here: Check the generated export file too: ```text -samples/fulfillment-hub/bin/Debug/net10.0/generated-output/low-stock-watch.csv +samples/fulfillment-hub/bin/Debug/net11.0/generated-output/low-stock-watch.csv ``` ### 4. Receive A Purchase Order @@ -244,7 +244,7 @@ At some point, the operator needs guidance, not just data. That is why the sampl Search for the receiving issue through the engine API: ```csharp -await using var db = await Database.OpenAsync("samples/fulfillment-hub/bin/Debug/net10.0/fulfillment-hub-demo.db"); +await using var db = await Database.OpenAsync("samples/fulfillment-hub/bin/Debug/net11.0/fulfillment-hub-demo.db"); var hits = await db.SearchAsync("fts_ops_playbooks", "partial receipt"); ``` diff --git a/samples/generated-collections/GeneratedCollectionsSample.csproj b/samples/generated-collections/GeneratedCollectionsSample.csproj index 5181c33c..e85b518a 100644 --- a/samples/generated-collections/GeneratedCollectionsSample.csproj +++ b/samples/generated-collections/GeneratedCollectionsSample.csproj @@ -2,7 +2,7 @@ Exe - net10.0 + net11.0 enable enable false diff --git a/samples/native-ffi/README.md b/samples/native-ffi/README.md index d7fa93ee..2657dff8 100644 --- a/samples/native-ffi/README.md +++ b/samples/native-ffi/README.md @@ -4,7 +4,7 @@ These tutorials show how to use CSharpDB from non-.NET languages via the NativeA ## Prerequisites -1. **Build the native library** (requires .NET 10 SDK + C++ toolchain): +1. **Build the native library** (requires .NET 11 SDK + C++ toolchain): ```bash # Windows @@ -19,7 +19,7 @@ These tutorials show how to use CSharpDB from non-.NET languages via the NativeA 2. The published library will be at: ``` - src/CSharpDB.Native/bin/Release/net10.0//publish/CSharpDB.Native.{dll,so,dylib} + src/CSharpDB.Native/bin/Release/net11.0//publish/CSharpDB.Native.{dll,so,dylib} ``` ## Tutorials diff --git a/samples/native-ffi/javascript/example_crud.mjs b/samples/native-ffi/javascript/example_crud.mjs index c1370025..ee37f12a 100644 --- a/samples/native-ffi/javascript/example_crud.mjs +++ b/samples/native-ffi/javascript/example_crud.mjs @@ -20,7 +20,7 @@ const LIB_PATH = __dirname, "..", "..", "..", "..", "src", "CSharpDB.Native", "bin", "Release", - "net10.0", "win-x64", "publish", "CSharpDB.Native.dll" + "net11.0", "win-x64", "publish", "CSharpDB.Native.dll" ); const DB_FILE = "tutorial_crud.db"; diff --git a/samples/native-ffi/javascript/example_transactions.mjs b/samples/native-ffi/javascript/example_transactions.mjs index 0c35342b..6d92a868 100644 --- a/samples/native-ffi/javascript/example_transactions.mjs +++ b/samples/native-ffi/javascript/example_transactions.mjs @@ -24,7 +24,7 @@ const LIB_PATH = __dirname, "..", "..", "..", "..", "src", "CSharpDB.Native", "bin", "Release", - "net10.0", "win-x64", "publish", "CSharpDB.Native.dll" + "net11.0", "win-x64", "publish", "CSharpDB.Native.dll" ); const DB_FILE = "tutorial_transactions.db"; diff --git a/samples/native-ffi/python/example_crud.py b/samples/native-ffi/python/example_crud.py index e0ca769c..11d1a3f7 100644 --- a/samples/native-ffi/python/example_crud.py +++ b/samples/native-ffi/python/example_crud.py @@ -16,7 +16,7 @@ os.path.dirname(__file__), "..", "..", "..", "..", "src", "CSharpDB.Native", "bin", "Release", - "net10.0", "win-x64", "publish", "CSharpDB.Native.dll", + "net11.0", "win-x64", "publish", "CSharpDB.Native.dll", ), ) diff --git a/samples/native-ffi/python/example_transactions.py b/samples/native-ffi/python/example_transactions.py index e3bf4277..9de2f58b 100644 --- a/samples/native-ffi/python/example_transactions.py +++ b/samples/native-ffi/python/example_transactions.py @@ -18,7 +18,7 @@ os.path.dirname(__file__), "..", "..", "..", "..", "src", "CSharpDB.Native", "bin", "Release", - "net10.0", "win-x64", "publish", "CSharpDB.Native.dll", + "net11.0", "win-x64", "publish", "CSharpDB.Native.dll", ), ) diff --git a/samples/observability-host/ObservabilityHostSample.csproj b/samples/observability-host/ObservabilityHostSample.csproj index 276df10e..bee994f2 100644 --- a/samples/observability-host/ObservabilityHostSample.csproj +++ b/samples/observability-host/ObservabilityHostSample.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable ObservabilityHostSample diff --git a/samples/platform-showcase/PlatformShowcaseSample.csproj b/samples/platform-showcase/PlatformShowcaseSample.csproj index a2dad174..40331c4c 100644 --- a/samples/platform-showcase/PlatformShowcaseSample.csproj +++ b/samples/platform-showcase/PlatformShowcaseSample.csproj @@ -2,7 +2,7 @@ Exe - net10.0 + net11.0 enable enable diff --git a/samples/storage-tutorials/examples/CSharpDB.GraphDB/CSharpDB.GraphDB.csproj b/samples/storage-tutorials/examples/CSharpDB.GraphDB/CSharpDB.GraphDB.csproj index 55fe0777..2a18b542 100644 --- a/samples/storage-tutorials/examples/CSharpDB.GraphDB/CSharpDB.GraphDB.csproj +++ b/samples/storage-tutorials/examples/CSharpDB.GraphDB/CSharpDB.GraphDB.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable diff --git a/samples/storage-tutorials/examples/CSharpDB.GraphDB/README.md b/samples/storage-tutorials/examples/CSharpDB.GraphDB/README.md index 45fa0628..67052707 100644 --- a/samples/storage-tutorials/examples/CSharpDB.GraphDB/README.md +++ b/samples/storage-tutorials/examples/CSharpDB.GraphDB/README.md @@ -234,7 +234,7 @@ Returns the exact path (nodes + edges) and statistics about cursor operations. ### Prerequisites -- .NET 10 SDK +- .NET 11 SDK - CSharpDB.Storage project (referenced in the solution) ### CLI Mode (Interactive REPL) diff --git a/samples/storage-tutorials/examples/CSharpDB.SpatialIndex/CSharpDB.SpatialIndex.csproj b/samples/storage-tutorials/examples/CSharpDB.SpatialIndex/CSharpDB.SpatialIndex.csproj index 4aefd441..603d1b02 100644 --- a/samples/storage-tutorials/examples/CSharpDB.SpatialIndex/CSharpDB.SpatialIndex.csproj +++ b/samples/storage-tutorials/examples/CSharpDB.SpatialIndex/CSharpDB.SpatialIndex.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable diff --git a/samples/storage-tutorials/examples/CSharpDB.SpatialIndex/README.md b/samples/storage-tutorials/examples/CSharpDB.SpatialIndex/README.md index 2dd6e734..4989cd70 100644 --- a/samples/storage-tutorials/examples/CSharpDB.SpatialIndex/README.md +++ b/samples/storage-tutorials/examples/CSharpDB.SpatialIndex/README.md @@ -216,7 +216,7 @@ Both strategies intentionally **over-scan** and **post-filter**. The `SpatialQue ### Prerequisites -- .NET 10 SDK +- .NET 11 SDK - CSharpDB.Storage project (referenced in the solution) ### CLI Mode (Interactive REPL) diff --git a/samples/storage-tutorials/examples/CSharpDB.TimeSeries/CSharpDB.TimeSeries.csproj b/samples/storage-tutorials/examples/CSharpDB.TimeSeries/CSharpDB.TimeSeries.csproj index 4aefd441..603d1b02 100644 --- a/samples/storage-tutorials/examples/CSharpDB.TimeSeries/CSharpDB.TimeSeries.csproj +++ b/samples/storage-tutorials/examples/CSharpDB.TimeSeries/CSharpDB.TimeSeries.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable diff --git a/samples/storage-tutorials/examples/CSharpDB.TimeSeries/README.md b/samples/storage-tutorials/examples/CSharpDB.TimeSeries/README.md index 1f6d0069..99912971 100644 --- a/samples/storage-tutorials/examples/CSharpDB.TimeSeries/README.md +++ b/samples/storage-tutorials/examples/CSharpDB.TimeSeries/README.md @@ -87,7 +87,7 @@ public sealed class TimeSeriesAggregation ### Prerequisites -- [.NET 10 SDK](https://dotnet.microsoft.com/download) or later +- [.NET 11 SDK](https://dotnet.microsoft.com/download) or later ### Clone and Build diff --git a/samples/storage-tutorials/examples/CSharpDB.VirtualFS/CSharpDB.VirtualFS.csproj b/samples/storage-tutorials/examples/CSharpDB.VirtualFS/CSharpDB.VirtualFS.csproj index 00ef4c0b..a806e1da 100644 --- a/samples/storage-tutorials/examples/CSharpDB.VirtualFS/CSharpDB.VirtualFS.csproj +++ b/samples/storage-tutorials/examples/CSharpDB.VirtualFS/CSharpDB.VirtualFS.csproj @@ -1,7 +1,7 @@ - + - net10.0 + net11.0 enable enable diff --git a/samples/storage-tutorials/examples/CSharpDB.VirtualFS/README.md b/samples/storage-tutorials/examples/CSharpDB.VirtualFS/README.md index a54f251f..7470d372 100644 --- a/samples/storage-tutorials/examples/CSharpDB.VirtualFS/README.md +++ b/samples/storage-tutorials/examples/CSharpDB.VirtualFS/README.md @@ -77,7 +77,7 @@ public sealed class FsEntry ### Prerequisites -- [.NET 10 SDK](https://dotnet.microsoft.com/download) or later +- [.NET 11 SDK](https://dotnet.microsoft.com/download) or later ### Clone and Build diff --git a/samples/storage-tutorials/examples/StorageStudyExamples.ConfigStore/StorageStudyExamples.ConfigStore.csproj b/samples/storage-tutorials/examples/StorageStudyExamples.ConfigStore/StorageStudyExamples.ConfigStore.csproj index f3f454df..2e4a3390 100644 --- a/samples/storage-tutorials/examples/StorageStudyExamples.ConfigStore/StorageStudyExamples.ConfigStore.csproj +++ b/samples/storage-tutorials/examples/StorageStudyExamples.ConfigStore/StorageStudyExamples.ConfigStore.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable diff --git a/samples/storage-tutorials/examples/StorageStudyExamples.Core/StorageStudyExamples.Core.csproj b/samples/storage-tutorials/examples/StorageStudyExamples.Core/StorageStudyExamples.Core.csproj index 19313e42..97cb43f4 100644 --- a/samples/storage-tutorials/examples/StorageStudyExamples.Core/StorageStudyExamples.Core.csproj +++ b/samples/storage-tutorials/examples/StorageStudyExamples.Core/StorageStudyExamples.Core.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable diff --git a/samples/storage-tutorials/examples/StorageStudyExamples.EventLog/StorageStudyExamples.EventLog.csproj b/samples/storage-tutorials/examples/StorageStudyExamples.EventLog/StorageStudyExamples.EventLog.csproj index f3f454df..2e4a3390 100644 --- a/samples/storage-tutorials/examples/StorageStudyExamples.EventLog/StorageStudyExamples.EventLog.csproj +++ b/samples/storage-tutorials/examples/StorageStudyExamples.EventLog/StorageStudyExamples.EventLog.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable diff --git a/samples/storage-tutorials/examples/StorageStudyExamples.GraphStore/StorageStudyExamples.GraphStore.csproj b/samples/storage-tutorials/examples/StorageStudyExamples.GraphStore/StorageStudyExamples.GraphStore.csproj index f3f454df..2e4a3390 100644 --- a/samples/storage-tutorials/examples/StorageStudyExamples.GraphStore/StorageStudyExamples.GraphStore.csproj +++ b/samples/storage-tutorials/examples/StorageStudyExamples.GraphStore/StorageStudyExamples.GraphStore.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable diff --git a/samples/storage-tutorials/examples/StorageStudyExamples.Repl/StorageStudyExamples.Repl.csproj b/samples/storage-tutorials/examples/StorageStudyExamples.Repl/StorageStudyExamples.Repl.csproj index b41884f4..39fd14b5 100644 --- a/samples/storage-tutorials/examples/StorageStudyExamples.Repl/StorageStudyExamples.Repl.csproj +++ b/samples/storage-tutorials/examples/StorageStudyExamples.Repl/StorageStudyExamples.Repl.csproj @@ -2,7 +2,7 @@ Exe - net10.0 + net11.0 enable enable diff --git a/samples/storage-tutorials/examples/StorageStudyExamples.StorageInternals/StorageStudyExamples.StorageInternals.csproj b/samples/storage-tutorials/examples/StorageStudyExamples.StorageInternals/StorageStudyExamples.StorageInternals.csproj index 6e306e3e..ea20a381 100644 --- a/samples/storage-tutorials/examples/StorageStudyExamples.StorageInternals/StorageStudyExamples.StorageInternals.csproj +++ b/samples/storage-tutorials/examples/StorageStudyExamples.StorageInternals/StorageStudyExamples.StorageInternals.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable diff --git a/samples/storage-tutorials/examples/StorageStudyExamples.TaskQueue/StorageStudyExamples.TaskQueue.csproj b/samples/storage-tutorials/examples/StorageStudyExamples.TaskQueue/StorageStudyExamples.TaskQueue.csproj index f3f454df..2e4a3390 100644 --- a/samples/storage-tutorials/examples/StorageStudyExamples.TaskQueue/StorageStudyExamples.TaskQueue.csproj +++ b/samples/storage-tutorials/examples/StorageStudyExamples.TaskQueue/StorageStudyExamples.TaskQueue.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable diff --git a/samples/storage-tutorials/examples/StorageStudyExamples.VirtualDrive/StorageStudyExamples.VirtualDrive.csproj b/samples/storage-tutorials/examples/StorageStudyExamples.VirtualDrive/StorageStudyExamples.VirtualDrive.csproj index f3f454df..2e4a3390 100644 --- a/samples/storage-tutorials/examples/StorageStudyExamples.VirtualDrive/StorageStudyExamples.VirtualDrive.csproj +++ b/samples/storage-tutorials/examples/StorageStudyExamples.VirtualDrive/StorageStudyExamples.VirtualDrive.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable diff --git a/samples/trusted-csharp-host/.vscode/launch.json b/samples/trusted-csharp-host/.vscode/launch.json index c41047b9..2a8e489c 100644 --- a/samples/trusted-csharp-host/.vscode/launch.json +++ b/samples/trusted-csharp-host/.vscode/launch.json @@ -6,7 +6,7 @@ "type": "coreclr", "request": "launch", "preLaunchTask": "build trusted C# host sample", - "program": "${workspaceFolder}/bin/Debug/net10.0/TrustedCSharpHostSample.dll", + "program": "${workspaceFolder}/bin/Debug/net11.0/TrustedCSharpHostSample.dll", "args": [], "cwd": "${workspaceFolder}", "console": "integratedTerminal", diff --git a/samples/trusted-csharp-host/TrustedCSharpHostSample.csproj b/samples/trusted-csharp-host/TrustedCSharpHostSample.csproj index a8952804..f692a27e 100644 --- a/samples/trusted-csharp-host/TrustedCSharpHostSample.csproj +++ b/samples/trusted-csharp-host/TrustedCSharpHostSample.csproj @@ -2,7 +2,7 @@ Exe - net10.0 + net11.0 enable enable diff --git a/scripts/Publish-CSharpDbAccessMigrationBundle.ps1 b/scripts/Publish-CSharpDbAccessMigrationBundle.ps1 index f64df8ce..539ba3cf 100644 --- a/scripts/Publish-CSharpDbAccessMigrationBundle.ps1 +++ b/scripts/Publish-CSharpDbAccessMigrationBundle.ps1 @@ -169,11 +169,11 @@ function Assert-ReviewedWorkerPackageClosure { ) $expectedPackages = @( - 'System.Configuration.ConfigurationManager/10.0.14' - 'System.Data.OleDb/10.0.14' - 'System.Diagnostics.EventLog/10.0.14' - 'System.Diagnostics.PerformanceCounter/10.0.14' - 'System.Security.Cryptography.ProtectedData/10.0.14' + 'System.Configuration.ConfigurationManager/11.0.0' + 'System.Data.OleDb/11.0.0' + 'System.Diagnostics.EventLog/11.0.0' + 'System.Diagnostics.PerformanceCounter/11.0.0' + 'System.Security.Cryptography.ProtectedData/11.0.0' ) | Sort-Object $dependencies = [IO.File]::ReadAllText($DependencyPath) | diff --git a/scripts/Publish-CSharpDbMigrationRelease.ps1 b/scripts/Publish-CSharpDbMigrationRelease.ps1 index e9378839..313ac871 100644 --- a/scripts/Publish-CSharpDbMigrationRelease.ps1 +++ b/scripts/Publish-CSharpDbMigrationRelease.ps1 @@ -12,7 +12,7 @@ base CLI bytes before it merges their fixed adapter directories, adds installation assets, creates one archive per runtime, and writes SHA256SUMS.txt. -These archives require the .NET 10 runtime. Creating an archive does not +These archives require the .NET 11 runtime. Creating an archive does not qualify a runtime, live database version, authentication mode, or deployment environment. @@ -379,7 +379,7 @@ function Copy-DirectoryContents { } } -function Assert-DotNetTenRuntimeConfig { +function Assert-DotNetElevenRuntimeConfig { param( [Parameter(Mandatory = $true)] [string] $Path @@ -406,10 +406,10 @@ function Assert-DotNetTenRuntimeConfig { $frameworks | Where-Object { $_['name'] -eq 'Microsoft.NETCore.App' -and - $_['version'] -match '^10\.' + $_['version'] -match '^11\.' }) if ($dotNetRuntime.Count -ne 1) { - throw "The release is not bound to the required .NET 10 runtime: $Path" + throw "The release is not bound to the required .NET 11 runtime: $Path" } } @@ -422,14 +422,14 @@ function Assert-FrameworkDependentStage { [bool] $TargetIsWindows ) - Assert-DotNetTenRuntimeConfig ` + Assert-DotNetElevenRuntimeConfig ` -Path (Join-Path $StageRoot 'csharpdb.runtimeconfig.json') - Assert-DotNetTenRuntimeConfig ` + Assert-DotNetElevenRuntimeConfig ` -Path (Join-Path $StageRoot 'adapters/sqlserver/csharpdb-migration-sqlserver-worker.runtimeconfig.json') - Assert-DotNetTenRuntimeConfig ` + Assert-DotNetElevenRuntimeConfig ` -Path (Join-Path $StageRoot 'adapters/mysql/csharpdb-migration-mysql-worker.runtimeconfig.json') if ($TargetIsWindows) { - Assert-DotNetTenRuntimeConfig ` + Assert-DotNetElevenRuntimeConfig ` -Path (Join-Path $StageRoot 'adapters/access/csharpdb-migration-access-worker.runtimeconfig.json') } else { @@ -1042,7 +1042,7 @@ $checksumsPath = Join-Path ` Write-Host 'CSharpDB migration release archives complete.' Write-Host " Version: $releaseVersion" -Write-Host ' Deployment: framework-dependent (.NET 10 runtime required)' +Write-Host ' Deployment: framework-dependent (.NET 11 runtime required)' Write-Host " Archive root: $archiveRoot" foreach ($archive in $createdArchives) { Write-Host " Created: $archive" diff --git a/scripts/Publish-CSharpDbMySqlMigrationBundle.ps1 b/scripts/Publish-CSharpDbMySqlMigrationBundle.ps1 index db93e57a..542301d5 100644 --- a/scripts/Publish-CSharpDbMySqlMigrationBundle.ps1 +++ b/scripts/Publish-CSharpDbMySqlMigrationBundle.ps1 @@ -136,8 +136,6 @@ function Assert-ReviewedWorkerPackageClosure { ) $expectedPackages = @( - 'Microsoft.Extensions.DependencyInjection.Abstractions/8.0.2' - 'Microsoft.Extensions.Logging.Abstractions/8.0.2' 'MySqlConnector/2.6.2' ) | Sort-Object @@ -213,8 +211,6 @@ $requiredFiles = @( (Join-Path $workerOutput 'CSharpDB.Migration.Retained.dll'), (Join-Path $workerOutput 'CSharpDB.Migration.MySql.dll'), (Join-Path $workerOutput 'MySqlConnector.dll'), - (Join-Path $workerOutput 'Microsoft.Extensions.DependencyInjection.Abstractions.dll'), - (Join-Path $workerOutput 'Microsoft.Extensions.Logging.Abstractions.dll'), (Join-Path $workerOutput 'THIRD-PARTY-NOTICES.md'), (Join-Path $workerOutput 'csharpdb-migration-mysql-worker.deps.json') ) diff --git a/scripts/Publish-CSharpDbSqlServerMigrationBundle.ps1 b/scripts/Publish-CSharpDbSqlServerMigrationBundle.ps1 index af272d47..b925be89 100644 --- a/scripts/Publish-CSharpDbSqlServerMigrationBundle.ps1 +++ b/scripts/Publish-CSharpDbSqlServerMigrationBundle.ps1 @@ -144,12 +144,7 @@ function Assert-ReviewedWorkerPackageClosure { 'Microsoft.Data.SqlClient.Internal.Logging/7.1.1' 'Microsoft.Data.SqlClient.SNI.runtime/7.1.0' 'Microsoft.Data.SqlClient/7.1.1' - 'Microsoft.Extensions.Caching.Abstractions/9.0.18' 'Microsoft.Extensions.Caching.Memory/9.0.18' - 'Microsoft.Extensions.DependencyInjection.Abstractions/10.0.0' - 'Microsoft.Extensions.Logging.Abstractions/10.0.0' - 'Microsoft.Extensions.Options/9.0.18' - 'Microsoft.Extensions.Primitives/9.0.18' 'Microsoft.IdentityModel.Abstractions/8.16.0' 'Microsoft.IdentityModel.JsonWebTokens/8.16.0' 'Microsoft.IdentityModel.Logging/8.16.0' @@ -161,7 +156,7 @@ function Assert-ReviewedWorkerPackageClosure { 'System.Configuration.ConfigurationManager/9.0.18' 'System.Diagnostics.EventLog/9.0.18' 'System.IdentityModel.Tokens.Jwt/8.16.0' - 'System.Security.Cryptography.Pkcs/10.0.14' + 'System.Security.Cryptography.Pkcs/11.0.0' 'System.Security.Cryptography.ProtectedData/9.0.18' 'System.Threading.RateLimiting/9.0.18' ) | Sort-Object diff --git a/scripts/README.md b/scripts/README.md index ebdf3d5e..1f1aaaca 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -234,12 +234,16 @@ $DiagnosticOutput = Join-Path ` "csharpdb-local-durable-$([Guid]::NewGuid().ToString('N'))" .\tests\CSharpDB.Benchmarks\scripts\Test-LocalDurablePerformance.ps1 ` + -UseHarnessSdk ` -CandidateRef HEAD ` -OutputPath $DiagnosticOutput ` -ConfirmDedicatedFixedSsd ` -NoGitHubStatus ``` +`-UseHarnessSdk` builds both revisions with the candidate SDK and retains their +original SDK manifests in the per-pass evidence logs. + ## Operator Walkthrough Use this path after a GitHub Release is published. @@ -447,7 +451,7 @@ explicitly supplied. The script never removes `OutputRoot` itself and rejects links or reparse points in the output path, its existing ancestors, and directories it would replace. -These releases are framework-dependent and require the Microsoft .NET 10 +These releases are framework-dependent and require the Microsoft .NET 11 runtime. A RID-specific archive is not a claim of runtime, authentication, TLS, or live Access/SQL Server/MySQL qualification. Each extracted archive includes `README.md`, `LICENSE`, and installers under `install/windows` and @@ -748,7 +752,7 @@ Start the forms-only runtime host against the Fulfillment Hub sample database: ```powershell & .\scripts\Start-CSharpDbAdminFormsWeb.ps1 ` - -DataSource samples\fulfillment-hub\bin\Debug\net10.0\fulfillment-hub-demo.db ` + -DataSource samples\fulfillment-hub\bin\Debug\net11.0\fulfillment-hub-demo.db ` -OpenBrowser ``` diff --git a/scripts/Start-CSharpDbAdminFormsWeb.ps1 b/scripts/Start-CSharpDbAdminFormsWeb.ps1 index d8a92cc2..62bcbe74 100644 --- a/scripts/Start-CSharpDbAdminFormsWeb.ps1 +++ b/scripts/Start-CSharpDbAdminFormsWeb.ps1 @@ -44,7 +44,7 @@ Starts the forms runtime host using the default data source from .EXAMPLE .\scripts\Start-CSharpDbAdminFormsWeb.ps1 ` - -DataSource C:\Users\maxim\source\Code\CSharpDB\samples\fulfillment-hub\bin\Debug\net10.0\fulfillment-hub-demo.db ` + -DataSource C:\Users\maxim\source\Code\CSharpDB\samples\fulfillment-hub\bin\Debug\net11.0\fulfillment-hub-demo.db ` -OpenBrowser Starts the forms runtime host against the Fulfillment Hub sample database and diff --git a/scripts/Test-MySqlMigrationIsolation.ps1 b/scripts/Test-MySqlMigrationIsolation.ps1 index d85faa77..77af562b 100644 --- a/scripts/Test-MySqlMigrationIsolation.ps1 +++ b/scripts/Test-MySqlMigrationIsolation.ps1 @@ -284,8 +284,6 @@ function Assert-ReviewedWorkerPackageClosure { ) $expectedPackages = @( - 'Microsoft.Extensions.DependencyInjection.Abstractions/8.0.2' - 'Microsoft.Extensions.Logging.Abstractions/8.0.2' 'MySqlConnector/2.6.2' ) | Sort-Object @@ -360,8 +358,6 @@ try { (Join-Path $workerOutput 'CSharpDB.Migration.Retained.dll'), (Join-Path $workerOutput 'CSharpDB.Migration.MySql.dll'), (Join-Path $workerOutput 'MySqlConnector.dll'), - (Join-Path $workerOutput 'Microsoft.Extensions.DependencyInjection.Abstractions.dll'), - (Join-Path $workerOutput 'Microsoft.Extensions.Logging.Abstractions.dll'), (Join-Path $workerOutput 'THIRD-PARTY-NOTICES.md'), (Join-Path $workerOutput 'csharpdb-migration-mysql-worker.deps.json') ) diff --git a/scripts/Test-ObservabilityNuGetPackage.ps1 b/scripts/Test-ObservabilityNuGetPackage.ps1 index 62493e32..34846bdb 100644 --- a/scripts/Test-ObservabilityNuGetPackage.ps1 +++ b/scripts/Test-ObservabilityNuGetPackage.ps1 @@ -232,7 +232,7 @@ if ($unexpectedDependencies.Count -ne 0) { } foreach ($requiredEntry in @( - 'lib/net10.0/CSharpDB.Observability.dll', + 'lib/net11.0/CSharpDB.Observability.dll', 'README.md', 'icon.png' )) { diff --git a/scripts/Test-SqlServerMigrationIsolation.ps1 b/scripts/Test-SqlServerMigrationIsolation.ps1 index 6740b251..a528ea72 100644 --- a/scripts/Test-SqlServerMigrationIsolation.ps1 +++ b/scripts/Test-SqlServerMigrationIsolation.ps1 @@ -353,12 +353,7 @@ function Assert-ReviewedWorkerPackageClosure { 'Microsoft.Data.SqlClient.Internal.Logging/7.1.1' 'Microsoft.Data.SqlClient.SNI.runtime/7.1.0' 'Microsoft.Data.SqlClient/7.1.1' - 'Microsoft.Extensions.Caching.Abstractions/9.0.18' 'Microsoft.Extensions.Caching.Memory/9.0.18' - 'Microsoft.Extensions.DependencyInjection.Abstractions/10.0.0' - 'Microsoft.Extensions.Logging.Abstractions/10.0.0' - 'Microsoft.Extensions.Options/9.0.18' - 'Microsoft.Extensions.Primitives/9.0.18' 'Microsoft.IdentityModel.Abstractions/8.16.0' 'Microsoft.IdentityModel.JsonWebTokens/8.16.0' 'Microsoft.IdentityModel.Logging/8.16.0' @@ -370,7 +365,7 @@ function Assert-ReviewedWorkerPackageClosure { 'System.Configuration.ConfigurationManager/9.0.18' 'System.Diagnostics.EventLog/9.0.18' 'System.IdentityModel.Tokens.Jwt/8.16.0' - 'System.Security.Cryptography.Pkcs/10.0.14' + 'System.Security.Cryptography.Pkcs/11.0.0' 'System.Security.Cryptography.ProtectedData/9.0.18' 'System.Threading.RateLimiting/9.0.18' ) | Sort-Object diff --git a/src/CSharpDB.Admin.Desktop/AdminHostProcess.cs b/src/CSharpDB.Admin.Desktop/AdminHostProcess.cs index 0a7d777e..7414caab 100644 --- a/src/CSharpDB.Admin.Desktop/AdminHostProcess.cs +++ b/src/CSharpDB.Admin.Desktop/AdminHostProcess.cs @@ -12,7 +12,7 @@ internal sealed class AdminHostProcess : IAsyncDisposable private const string AdminExecutableName = "CSharpDB.Admin.exe"; private const string AdminExecutableEnvironmentVariable = "CSHARPDB_ADMIN_EXE"; private const string DesktopShellTokenHeaderName = "X-CSharpDB-Desktop-Shell-Token"; - private const string AdminTargetFramework = "net10.0"; + private const string AdminTargetFramework = "net11.0"; #if DEBUG private const string BuildConfiguration = "Debug"; diff --git a/src/CSharpDB.Admin.Desktop/CSharpDB.Admin.Desktop.csproj b/src/CSharpDB.Admin.Desktop/CSharpDB.Admin.Desktop.csproj index 0767a8fb..705fbf1d 100644 --- a/src/CSharpDB.Admin.Desktop/CSharpDB.Admin.Desktop.csproj +++ b/src/CSharpDB.Admin.Desktop/CSharpDB.Admin.Desktop.csproj @@ -2,7 +2,7 @@ WinExe - net10.0-windows10.0.19041.0 + net11.0-windows10.0.19041.0 true enable enable diff --git a/src/CSharpDB.Admin.Forms.Web/CSharpDB.Admin.Forms.Web.csproj b/src/CSharpDB.Admin.Forms.Web/CSharpDB.Admin.Forms.Web.csproj index 43dc2a3f..1e4ada29 100644 --- a/src/CSharpDB.Admin.Forms.Web/CSharpDB.Admin.Forms.Web.csproj +++ b/src/CSharpDB.Admin.Forms.Web/CSharpDB.Admin.Forms.Web.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable CSharpDB.Admin.Forms.Web diff --git a/src/CSharpDB.Admin.Forms.Web/README.md b/src/CSharpDB.Admin.Forms.Web/README.md index 4265062b..d98c9580 100644 --- a/src/CSharpDB.Admin.Forms.Web/README.md +++ b/src/CSharpDB.Admin.Forms.Web/README.md @@ -45,7 +45,7 @@ The host does not create forms. The target database must already contain them. For example, the Fulfillment Hub sample seeds forms into: ```text -samples/fulfillment-hub/bin/Debug/net10.0/fulfillment-hub-demo.db +samples/fulfillment-hub/bin/Debug/net11.0/fulfillment-hub-demo.db ``` ## Configuration @@ -93,7 +93,7 @@ dotnet run --project src/CSharpDB.Admin.Forms.Web/CSharpDB.Admin.Forms.Web.cspro Run against the Fulfillment Hub sample database on an explicit local URL: ```powershell -dotnet run --project src/CSharpDB.Admin.Forms.Web/CSharpDB.Admin.Forms.Web.csproj -- --urls http://127.0.0.1:5095 --CSharpDB:DataSource=./samples/fulfillment-hub/bin/Debug/net10.0/fulfillment-hub-demo.db +dotnet run --project src/CSharpDB.Admin.Forms.Web/CSharpDB.Admin.Forms.Web.csproj -- --urls http://127.0.0.1:5095 --CSharpDB:DataSource=./samples/fulfillment-hub/bin/Debug/net11.0/fulfillment-hub-demo.db ``` After startup: diff --git a/src/CSharpDB.Admin.Forms/CSharpDB.Admin.Forms.csproj b/src/CSharpDB.Admin.Forms/CSharpDB.Admin.Forms.csproj index c9e88ff8..8d027f71 100644 --- a/src/CSharpDB.Admin.Forms/CSharpDB.Admin.Forms.csproj +++ b/src/CSharpDB.Admin.Forms/CSharpDB.Admin.Forms.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable CSharpDB.Admin.Forms diff --git a/src/CSharpDB.Admin.Forms/Evaluation/FormulaEvaluator.cs b/src/CSharpDB.Admin.Forms/Evaluation/FormulaEvaluator.cs index 75c1100d..f38d1ebb 100644 --- a/src/CSharpDB.Admin.Forms/Evaluation/FormulaEvaluator.cs +++ b/src/CSharpDB.Admin.Forms/Evaluation/FormulaEvaluator.cs @@ -1034,7 +1034,12 @@ private static bool TryInvokeBuiltInFunction( digits = (int)parsedDigits; } - return Math.Round(value, digits, MidpointRounding.ToEven); + // Access-style Round retains the scale/round/unscale behavior used + // before .NET 11 corrected Math.Round(double, digits). + if (Math.Abs(value) >= 1e16) + return value; + double factor = Math.Pow(10, digits); + return Math.Round(value * factor, MidpointRounding.ToEven) / factor; } private static object? EvaluateDomainFunction( diff --git a/src/CSharpDB.Admin.Forms/Models/FormControlValueConverter.cs b/src/CSharpDB.Admin.Forms/Models/FormControlValueConverter.cs index 15f711e2..f0cce624 100644 --- a/src/CSharpDB.Admin.Forms/Models/FormControlValueConverter.cs +++ b/src/CSharpDB.Admin.Forms/Models/FormControlValueConverter.cs @@ -130,8 +130,11 @@ private static bool TryConvertToDecimal(object? value, out decimal result) case sbyte or byte or short or ushort or int or uint or long or ulong: result = Convert.ToDecimal(value, CultureInfo.InvariantCulture); return true; - case float or double: - result = Convert.ToDecimal(value, CultureInfo.InvariantCulture); + case double real: + result = CSharpDB.Primitives.CSharpDbDecimalCodec.FromDouble(real); + return true; + case float real: + result = CSharpDB.Primitives.CSharpDbDecimalCodec.FromSingle(real); return true; case string text: return TryConvertTextToDecimal(text, out result); diff --git a/src/CSharpDB.Admin.ImportExport/CSharpDB.Admin.ImportExport.csproj b/src/CSharpDB.Admin.ImportExport/CSharpDB.Admin.ImportExport.csproj index c1de8e64..422fea03 100644 --- a/src/CSharpDB.Admin.ImportExport/CSharpDB.Admin.ImportExport.csproj +++ b/src/CSharpDB.Admin.ImportExport/CSharpDB.Admin.ImportExport.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable CSharpDB.Admin.ImportExport diff --git a/src/CSharpDB.Admin.ImportExport/Services/TableImportExportService.cs b/src/CSharpDB.Admin.ImportExport/Services/TableImportExportService.cs index 7c1f64c2..1f869edb 100644 --- a/src/CSharpDB.Admin.ImportExport/Services/TableImportExportService.cs +++ b/src/CSharpDB.Admin.ImportExport/Services/TableImportExportService.cs @@ -946,7 +946,12 @@ private static PrimitiveDbValue MapValue(PrimitiveDbType columnType, object? val { PrimitiveDbType.Integer => PrimitiveDbValue.FromInteger(Convert.ToInt64(value, CultureInfo.InvariantCulture)), PrimitiveDbType.Real => PrimitiveDbValue.FromReal(Convert.ToDouble(value, CultureInfo.InvariantCulture)), - PrimitiveDbType.Decimal => PrimitiveDbValue.FromDecimal(Convert.ToDecimal(value, CultureInfo.InvariantCulture)), + PrimitiveDbType.Decimal => PrimitiveDbValue.FromDecimal(value switch + { + double real => CSharpDB.Primitives.CSharpDbDecimalCodec.FromDouble(real), + float real => CSharpDB.Primitives.CSharpDbDecimalCodec.FromSingle(real), + _ => Convert.ToDecimal(value, CultureInfo.InvariantCulture), + }), PrimitiveDbType.Text => PrimitiveDbValue.FromText(Convert.ToString(value, CultureInfo.InvariantCulture) ?? string.Empty), PrimitiveDbType.Blob => PrimitiveDbValue.FromBlob(ConvertToBytes(value)), _ => throw new InvalidOperationException($"Unsupported column type '{columnType}'."), diff --git a/src/CSharpDB.Admin.Reports/CSharpDB.Admin.Reports.csproj b/src/CSharpDB.Admin.Reports/CSharpDB.Admin.Reports.csproj index 56136941..23b1af23 100644 --- a/src/CSharpDB.Admin.Reports/CSharpDB.Admin.Reports.csproj +++ b/src/CSharpDB.Admin.Reports/CSharpDB.Admin.Reports.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable CSharpDB.Admin.Reports diff --git a/src/CSharpDB.Admin/CSharpDB.Admin.csproj b/src/CSharpDB.Admin/CSharpDB.Admin.csproj index 88825955..a787dc4a 100644 --- a/src/CSharpDB.Admin/CSharpDB.Admin.csproj +++ b/src/CSharpDB.Admin/CSharpDB.Admin.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable CSharpDB.Admin diff --git a/src/CSharpDB.Api/CSharpDB.Api.csproj b/src/CSharpDB.Api/CSharpDB.Api.csproj index 60245967..84183337 100644 --- a/src/CSharpDB.Api/CSharpDB.Api.csproj +++ b/src/CSharpDB.Api/CSharpDB.Api.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable CSharpDB.Api @@ -9,9 +9,9 @@ - - - + + + diff --git a/src/CSharpDB.Cli/CSharpDB.Cli.csproj b/src/CSharpDB.Cli/CSharpDB.Cli.csproj index dc2d365f..b622da91 100644 --- a/src/CSharpDB.Cli/CSharpDB.Cli.csproj +++ b/src/CSharpDB.Cli/CSharpDB.Cli.csproj @@ -2,7 +2,7 @@ Exe - net10.0 + net11.0 enable enable CSharpDB.Cli diff --git a/src/CSharpDB.Client/CSharpDB.Client.csproj b/src/CSharpDB.Client/CSharpDB.Client.csproj index 5db7f3e3..a229e7fd 100644 --- a/src/CSharpDB.Client/CSharpDB.Client.csproj +++ b/src/CSharpDB.Client/CSharpDB.Client.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable CSharpDB.Client @@ -33,8 +33,6 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - - diff --git a/src/CSharpDB.Client/Internal/EngineTransportClient.ProcedureHelpers.cs b/src/CSharpDB.Client/Internal/EngineTransportClient.ProcedureHelpers.cs index 709016db..4a0799e0 100644 --- a/src/CSharpDB.Client/Internal/EngineTransportClient.ProcedureHelpers.cs +++ b/src/CSharpDB.Client/Internal/EngineTransportClient.ProcedureHelpers.cs @@ -409,8 +409,8 @@ private static bool TryCoerceDecimal(object? value, out decimal result) case decimal number: result = number; return true; case long integer: result = integer; return true; case int integer: result = integer; return true; - case double real when double.IsFinite(real): result = checked((decimal)real); return true; - case float real when float.IsFinite(real): result = checked((decimal)real); return true; + case double real when double.IsFinite(real): result = CSharpDB.Primitives.CSharpDbDecimalCodec.FromDouble(real); return true; + case float real when float.IsFinite(real): result = CSharpDB.Primitives.CSharpDbDecimalCodec.FromSingle(real); return true; case string text when decimal.TryParse( text, NumberStyles.Number, diff --git a/src/CSharpDB.Client/Pipelines/CSharpDbPipelineComponents.cs b/src/CSharpDB.Client/Pipelines/CSharpDbPipelineComponents.cs index d8904cd7..ffe98262 100644 --- a/src/CSharpDB.Client/Pipelines/CSharpDbPipelineComponents.cs +++ b/src/CSharpDB.Client/Pipelines/CSharpDbPipelineComponents.cs @@ -377,6 +377,8 @@ private static string DescribeValueType(object value) => DbType.Decimal => value switch { decimal decimalValue => decimalValue, + double real => CSharpDB.Primitives.CSharpDbDecimalCodec.FromDouble(real), + float real => CSharpDB.Primitives.CSharpDbDecimalCodec.FromSingle(real), _ => Convert.ToDecimal(value, CultureInfo.InvariantCulture), }, DbType.Text => value switch diff --git a/src/CSharpDB.CodeModules/CSharpDB.CodeModules.csproj b/src/CSharpDB.CodeModules/CSharpDB.CodeModules.csproj index 8949805d..b6782dc3 100644 --- a/src/CSharpDB.CodeModules/CSharpDB.CodeModules.csproj +++ b/src/CSharpDB.CodeModules/CSharpDB.CodeModules.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable CSharpDB.CodeModules @@ -16,7 +16,6 @@ - diff --git a/src/CSharpDB.Daemon/CSharpDB.Daemon.csproj b/src/CSharpDB.Daemon/CSharpDB.Daemon.csproj index 5a963d74..f6e3a1f9 100644 --- a/src/CSharpDB.Daemon/CSharpDB.Daemon.csproj +++ b/src/CSharpDB.Daemon/CSharpDB.Daemon.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable CSharpDB.Daemon @@ -12,8 +12,8 @@ - - + + diff --git a/src/CSharpDB.Daemon/README.md b/src/CSharpDB.Daemon/README.md index ab663013..022c94e6 100644 --- a/src/CSharpDB.Daemon/README.md +++ b/src/CSharpDB.Daemon/README.md @@ -165,7 +165,7 @@ For best remote performance: ## Requirements -- .NET SDK 10.0 or newer to build from source +- .NET SDK 11.0 or newer to build from source - no .NET SDK requirement when using the self-contained release archives - a filesystem location where the daemon can create and update: - `*.db` diff --git a/src/CSharpDB.Data/CSharpDB.Data.csproj b/src/CSharpDB.Data/CSharpDB.Data.csproj index 1ecc92bb..918317fe 100644 --- a/src/CSharpDB.Data/CSharpDB.Data.csproj +++ b/src/CSharpDB.Data/CSharpDB.Data.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable ADO.NET provider for CSharpDB. Standard DbConnection, DbCommand, and DbDataReader with parameterized queries and transactions. diff --git a/src/CSharpDB.Data/README.md b/src/CSharpDB.Data/README.md index 319de07b..cb7b469c 100644 --- a/src/CSharpDB.Data/README.md +++ b/src/CSharpDB.Data/README.md @@ -3,7 +3,7 @@ ADO.NET provider for the [CSharpDB](https://github.com/MaxAkbar/CSharpDB) embedded database engine. Standard `DbConnection`, `DbCommand`, and `DbDataReader` with parameterized queries and transactions. [![NuGet](https://img.shields.io/nuget/v/CSharpDB.Data)](https://www.nuget.org/packages/CSharpDB.Data) -[![.NET 10](https://img.shields.io/badge/.NET-10-512bd4)](https://dotnet.microsoft.com/download/dotnet/10.0) +[![.NET 11](https://img.shields.io/badge/.NET-11-512bd4)](https://dotnet.microsoft.com/download/dotnet/11.0) [![Release](https://img.shields.io/github/v/release/MaxAkbar/CSharpDB?display_name=tag&label=Release)](https://github.com/MaxAkbar/CSharpDB/releases/latest) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/MaxAkbar/CSharpDB/blob/main/LICENSE) diff --git a/src/CSharpDB.Data/SqlParameterBinder.cs b/src/CSharpDB.Data/SqlParameterBinder.cs index 841bdd65..bf699af2 100644 --- a/src/CSharpDB.Data/SqlParameterBinder.cs +++ b/src/CSharpDB.Data/SqlParameterBinder.cs @@ -94,9 +94,13 @@ private static string EscapeParameter(CSharpDbParameter parameter) decimal decimalValue; try { - decimalValue = value is decimal exact - ? exact - : Convert.ToDecimal(value, CultureInfo.InvariantCulture); + decimalValue = value switch + { + decimal exact => exact, + double real => CSharpDbDecimalCodec.FromDouble(real), + float real => CSharpDbDecimalCodec.FromSingle(real), + _ => Convert.ToDecimal(value, CultureInfo.InvariantCulture), + }; } catch (Exception ex) when (ex is FormatException or InvalidCastException or OverflowException) { diff --git a/src/CSharpDB.Data/TypeMapper.cs b/src/CSharpDB.Data/TypeMapper.cs index a257f2bb..a8ed659d 100644 --- a/src/CSharpDB.Data/TypeMapper.cs +++ b/src/CSharpDB.Data/TypeMapper.cs @@ -162,7 +162,7 @@ SqlTypeKind.Bit or { CoreDbType.Decimal => value.AsDecimal, CoreDbType.Integer => value.AsInteger, - CoreDbType.Real => checked((decimal)value.AsReal), + CoreDbType.Real => CSharpDbDecimalCodec.FromDouble(value.AsReal), _ => throw new InvalidOperationException($"Cannot read {value.Type} as Decimal."), }; diff --git a/src/CSharpDB.DataGeneration/CSharpDB.DataGeneration.csproj b/src/CSharpDB.DataGeneration/CSharpDB.DataGeneration.csproj index 9766f89c..e842b3c3 100644 --- a/src/CSharpDB.DataGeneration/CSharpDB.DataGeneration.csproj +++ b/src/CSharpDB.DataGeneration/CSharpDB.DataGeneration.csproj @@ -1,6 +1,6 @@ - net10.0 + net11.0 enable enable false diff --git a/src/CSharpDB.DataGeneration/GeneratorCatalog.cs b/src/CSharpDB.DataGeneration/GeneratorCatalog.cs index e846d512..ec74fd72 100644 --- a/src/CSharpDB.DataGeneration/GeneratorCatalog.cs +++ b/src/CSharpDB.DataGeneration/GeneratorCatalog.cs @@ -147,7 +147,7 @@ public static void Validate(ColumnGenerationRule rule, ColumnDefinition column) else if (column.Type == DbType.Integer) return random.NextInclusive(checked((long)decimal.Ceiling(rule.Minimum)), checked((long)decimal.Floor(rule.Maximum))); else if (column.Type == DbType.Decimal) - return decimal.Round(rule.Minimum + (decimal)random.NextDouble() * (rule.Maximum - rule.Minimum), column.EffectiveType.Scale ?? 2); + return decimal.Round(rule.Minimum + CSharpDbDecimalCodec.FromDouble(random.NextDouble()) * (rule.Maximum - rule.Minimum), column.EffectiveType.Scale ?? 2); else expression = new { op = "double", min = rule.Minimum, max = rule.Maximum, digits = 2 }; } else if (rule.Generator == FieldGenerator.ValueList) @@ -193,7 +193,7 @@ public static void Validate(ColumnGenerationRule rule, ColumnDefinition column) var table = new SqlTableSpec { GeneratorKey = tableId, Name = schema.TableName, Columns = [new SqlColumnSpec { Name = columnId, Generator = JsonSerializer.SerializeToElement(expression) }] }; object? result = SpecDataGenerator.GenerateRow(new GenerationOptions { Seed = profile.Seed, ReferenceUtc = profile.ReferenceUtc, Locale = profile.Locale }, table, ordinal)[columnId]; - if (column.Type == DbType.Decimal && result is double real) return decimal.Round((decimal)real, column.EffectiveType.Scale ?? 2); + if (column.Type == DbType.Decimal && result is double real) return decimal.Round(CSharpDbDecimalCodec.FromDouble(real), column.EffectiveType.Scale ?? 2); if (column.Type == DbType.Integer && result is double integer) return checked((long)Math.Round(integer)); // Text generation is explicitly sized; typed constants and lists are validated without truncation. if (rule.Generator == FieldGenerator.Email && result is string email) diff --git a/src/CSharpDB.DataGeneration/README.md b/src/CSharpDB.DataGeneration/README.md index 7dfaca1e..e54b1afe 100644 --- a/src/CSharpDB.DataGeneration/README.md +++ b/src/CSharpDB.DataGeneration/README.md @@ -3,7 +3,7 @@ Repeatable test-data generation and relationship-aware schema planning for the [CSharpDB](https://github.com/MaxAkbar/CSharpDB) embedded database engine. -[![.NET 10](https://img.shields.io/badge/.NET-10-512bd4)](https://dotnet.microsoft.com/download/dotnet/10.0) +[![.NET 11](https://img.shields.io/badge/.NET-11-512bd4)](https://dotnet.microsoft.com/download/dotnet/11.0) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/MaxAkbar/CSharpDB/blob/main/LICENSE) ## Overview diff --git a/src/CSharpDB.DataPrivacy/CSharpDB.DataPrivacy.csproj b/src/CSharpDB.DataPrivacy/CSharpDB.DataPrivacy.csproj index b0761c5b..c263dd97 100644 --- a/src/CSharpDB.DataPrivacy/CSharpDB.DataPrivacy.csproj +++ b/src/CSharpDB.DataPrivacy/CSharpDB.DataPrivacy.csproj @@ -1,6 +1,6 @@ - net10.0 + net11.0 enable enable false diff --git a/src/CSharpDB.DevOps/CSharpDB.DevOps.csproj b/src/CSharpDB.DevOps/CSharpDB.DevOps.csproj index aff9c790..56045ba1 100644 --- a/src/CSharpDB.DevOps/CSharpDB.DevOps.csproj +++ b/src/CSharpDB.DevOps/CSharpDB.DevOps.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable Database DevOps compare and deploy services for CSharpDB. diff --git a/src/CSharpDB.Engine/CSharpDB.Engine.csproj b/src/CSharpDB.Engine/CSharpDB.Engine.csproj index 66ba0074..f472e395 100644 --- a/src/CSharpDB.Engine/CSharpDB.Engine.csproj +++ b/src/CSharpDB.Engine/CSharpDB.Engine.csproj @@ -20,7 +20,7 @@ - net10.0 + net11.0 enable enable Lightweight embedded SQL database engine for .NET. Single-file storage, WAL durability, concurrent readers, and a typed Collection<T> NoSQL API. diff --git a/src/CSharpDB.Engine/README.md b/src/CSharpDB.Engine/README.md index b8592a30..2b4b52a0 100644 --- a/src/CSharpDB.Engine/README.md +++ b/src/CSharpDB.Engine/README.md @@ -3,7 +3,7 @@ Lightweight embedded SQL database engine for .NET with single-file storage, WAL durability, concurrent readers, and a typed `Collection` NoSQL API. [![NuGet](https://img.shields.io/nuget/v/CSharpDB.Engine)](https://www.nuget.org/packages/CSharpDB.Engine) -[![.NET 10](https://img.shields.io/badge/.NET-10-512bd4)](https://dotnet.microsoft.com/download/dotnet/10.0) +[![.NET 11](https://img.shields.io/badge/.NET-11-512bd4)](https://dotnet.microsoft.com/download/dotnet/11.0) [![Release](https://img.shields.io/github/v/release/MaxAkbar/CSharpDB?display_name=tag&label=Release)](https://github.com/MaxAkbar/CSharpDB/releases/latest) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/MaxAkbar/CSharpDB/blob/main/LICENSE) diff --git a/src/CSharpDB.EntityFrameworkCore.Tools/CSharpDB.EntityFrameworkCore.Tools.csproj b/src/CSharpDB.EntityFrameworkCore.Tools/CSharpDB.EntityFrameworkCore.Tools.csproj index 3e6c67a1..9d0aa920 100644 --- a/src/CSharpDB.EntityFrameworkCore.Tools/CSharpDB.EntityFrameworkCore.Tools.csproj +++ b/src/CSharpDB.EntityFrameworkCore.Tools/CSharpDB.EntityFrameworkCore.Tools.csproj @@ -2,7 +2,7 @@ Exe - net10.0 + net11.0 enable enable dotnet-csharpdb-ef diff --git a/src/CSharpDB.EntityFrameworkCore.Tools/EfCoreAnalyzeCommandRunner.cs b/src/CSharpDB.EntityFrameworkCore.Tools/EfCoreAnalyzeCommandRunner.cs index 63f780b4..4936904b 100644 --- a/src/CSharpDB.EntityFrameworkCore.Tools/EfCoreAnalyzeCommandRunner.cs +++ b/src/CSharpDB.EntityFrameworkCore.Tools/EfCoreAnalyzeCommandRunner.cs @@ -409,7 +409,7 @@ private static async ValueTask WriteWorkerFailureAsync( EfCoreWorkerClientStatus.ProjectIncompatible => ( "CSHARPDB-EF-PROJECT-003", - "The project must target only net10.0."), + "The project must target only net11.0."), EfCoreWorkerClientStatus.BuildFailed => ( "CSHARPDB-EF-BUILD-001", diff --git a/src/CSharpDB.EntityFrameworkCore.Tools/EfCoreWorkerClient.cs b/src/CSharpDB.EntityFrameworkCore.Tools/EfCoreWorkerClient.cs index d8b62178..1d36d42c 100644 --- a/src/CSharpDB.EntityFrameworkCore.Tools/EfCoreWorkerClient.cs +++ b/src/CSharpDB.EntityFrameworkCore.Tools/EfCoreWorkerClient.cs @@ -245,7 +245,7 @@ await QueryProjectPropertiesAsync( "-c", "Debug", "--framework", - "net10.0", + "net11.0", "--no-restore", "--nologo", "--verbosity", @@ -662,7 +662,7 @@ private static bool IsSupportedFramework( { return string.Equals( properties.TargetFramework, - "net10.0", + "net11.0", StringComparison.Ordinal); } @@ -673,11 +673,11 @@ private static bool IsSupportedFramework( return frameworks.Length == 1 && string.Equals( frameworks[0], - "net10.0", + "net11.0", StringComparison.Ordinal) && string.Equals( properties.TargetFramework, - "net10.0", + "net11.0", StringComparison.Ordinal); } diff --git a/src/CSharpDB.EntityFrameworkCore.Tools/README.md b/src/CSharpDB.EntityFrameworkCore.Tools/README.md index bf9fbcb2..31496bc7 100644 --- a/src/CSharpDB.EntityFrameworkCore.Tools/README.md +++ b/src/CSharpDB.EntityFrameworkCore.Tools/README.md @@ -28,7 +28,7 @@ dotnet csharpdb-ef analyze ` Use `--format json` for a deterministic machine-readable report. -The current contract accepts one restored, single-target `net10.0` project and +The current contract accepts one restored, single-target `net11.0` project and builds its Debug output with `--no-restore`. The context may be specified by its fully qualified name or by a unique simple name. diff --git a/src/CSharpDB.EntityFrameworkCore/CSharpDB.EntityFrameworkCore.csproj b/src/CSharpDB.EntityFrameworkCore/CSharpDB.EntityFrameworkCore.csproj index c096fca7..3a6a101d 100644 --- a/src/CSharpDB.EntityFrameworkCore/CSharpDB.EntityFrameworkCore.csproj +++ b/src/CSharpDB.EntityFrameworkCore/CSharpDB.EntityFrameworkCore.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable CSharpDB.EntityFrameworkCore diff --git a/src/CSharpDB.EntityFrameworkCore/README.md b/src/CSharpDB.EntityFrameworkCore/README.md index 54d9d845..02235108 100644 --- a/src/CSharpDB.EntityFrameworkCore/README.md +++ b/src/CSharpDB.EntityFrameworkCore/README.md @@ -6,7 +6,7 @@ Use standard EF Core `DbContext`, migrations, and LINQ patterns against embedded file-backed or private in-memory CSharpDB databases. [![NuGet](https://img.shields.io/nuget/v/CSharpDB.EntityFrameworkCore)](https://www.nuget.org/packages/CSharpDB.EntityFrameworkCore) -[![.NET 10](https://img.shields.io/badge/.NET-10-512bd4)](https://dotnet.microsoft.com/download/dotnet/10.0) +[![.NET 11](https://img.shields.io/badge/.NET-11-512bd4)](https://dotnet.microsoft.com/download/dotnet/11.0) [![Release](https://img.shields.io/github/v/release/MaxAkbar/CSharpDB?display_name=tag&label=Release)](https://github.com/MaxAkbar/CSharpDB/releases/latest) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/MaxAkbar/CSharpDB/blob/main/LICENSE) @@ -296,7 +296,7 @@ remote endpoint. For adoption review, the separate [`csharpdb-ef` tool](../CSharpDB.EntityFrameworkCore.Tools/README.md) analyzes a -restored, single-target `net10.0` project's compiled migrations with the +restored, single-target `net11.0` project's compiled migrations with the provider active: ```bash diff --git a/src/CSharpDB.Execution/CSharpDB.Execution.csproj b/src/CSharpDB.Execution/CSharpDB.Execution.csproj index 1a884782..9498c21e 100644 --- a/src/CSharpDB.Execution/CSharpDB.Execution.csproj +++ b/src/CSharpDB.Execution/CSharpDB.Execution.csproj @@ -19,7 +19,7 @@ - net10.0 + net11.0 enable enable Query planner, operator tree, and expression evaluator for the CSharpDB embedded database. diff --git a/src/CSharpDB.Execution/README.md b/src/CSharpDB.Execution/README.md index c69b4a27..54707eb3 100644 --- a/src/CSharpDB.Execution/README.md +++ b/src/CSharpDB.Execution/README.md @@ -3,7 +3,7 @@ Query planner, operator tree, and expression evaluator for the [CSharpDB](https://github.com/MaxAkbar/CSharpDB) embedded database engine. [![NuGet](https://img.shields.io/nuget/v/CSharpDB.Execution)](https://www.nuget.org/packages/CSharpDB.Execution) -[![.NET 10](https://img.shields.io/badge/.NET-10-512bd4)](https://dotnet.microsoft.com/download/dotnet/10.0) +[![.NET 11](https://img.shields.io/badge/.NET-11-512bd4)](https://dotnet.microsoft.com/download/dotnet/11.0) [![Release](https://img.shields.io/github/v/release/MaxAkbar/CSharpDB?display_name=tag&label=Release)](https://github.com/MaxAkbar/CSharpDB/releases/latest) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/MaxAkbar/CSharpDB/blob/main/LICENSE) diff --git a/src/CSharpDB.Execution/SqlTypeCoercion.cs b/src/CSharpDB.Execution/SqlTypeCoercion.cs index 24836181..93f9ad1e 100644 --- a/src/CSharpDB.Execution/SqlTypeCoercion.cs +++ b/src/CSharpDB.Execution/SqlTypeCoercion.cs @@ -367,7 +367,7 @@ private static DbValue CoerceDecimal( { DbType.Decimal => value.AsDecimal, DbType.Integer => value.AsInteger, - DbType.Real when double.IsFinite(value.AsReal) => checked((decimal)value.AsReal), + DbType.Real when double.IsFinite(value.AsReal) => CSharpDbDecimalCodec.FromDouble(value.AsReal), DbType.Text when explicitCast => decimal.Parse(value.AsText, NumberStyles.Number, CultureInfo.InvariantCulture), _ => throw new InvalidOperationException("A finite numeric value is required."), @@ -647,7 +647,7 @@ private static DbValue CoerceDaySecondInterval( else if (value.Type == DbType.Decimal) text = FormatSecondsInterval(value.AsDecimal); else if (value.Type == DbType.Real && explicitCast && double.IsFinite(value.AsReal)) - text = FormatSecondsInterval(checked((decimal)value.AsReal)); + text = FormatSecondsInterval(CSharpDbDecimalCodec.FromDouble(value.AsReal)); else throw new InvalidOperationException("INTERVAL DAY TO SECOND requires interval text or a numeric second count."); diff --git a/src/CSharpDB.Generators/CSharpDB.Generators.csproj b/src/CSharpDB.Generators/CSharpDB.Generators.csproj index cc0cda6a..dea9dbb0 100644 --- a/src/CSharpDB.Generators/CSharpDB.Generators.csproj +++ b/src/CSharpDB.Generators/CSharpDB.Generators.csproj @@ -14,7 +14,8 @@ - + diff --git a/src/CSharpDB.ImportExport/CSharpDB.ImportExport.csproj b/src/CSharpDB.ImportExport/CSharpDB.ImportExport.csproj index 0878efad..adae5d59 100644 --- a/src/CSharpDB.ImportExport/CSharpDB.ImportExport.csproj +++ b/src/CSharpDB.ImportExport/CSharpDB.ImportExport.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable Native table archive import/export support for CSharpDB. diff --git a/src/CSharpDB.Mcp/CSharpDB.Mcp.csproj b/src/CSharpDB.Mcp/CSharpDB.Mcp.csproj index f27e0885..ca4b5d6e 100644 --- a/src/CSharpDB.Mcp/CSharpDB.Mcp.csproj +++ b/src/CSharpDB.Mcp/CSharpDB.Mcp.csproj @@ -2,7 +2,7 @@ Exe - net10.0 + net11.0 enable enable CSharpDB.Mcp @@ -15,7 +15,7 @@ - + diff --git a/src/CSharpDB.Migration.Access.Worker/CSharpDB.Migration.Access.Worker.csproj b/src/CSharpDB.Migration.Access.Worker/CSharpDB.Migration.Access.Worker.csproj index 8ba925b7..0aa940f1 100644 --- a/src/CSharpDB.Migration.Access.Worker/CSharpDB.Migration.Access.Worker.csproj +++ b/src/CSharpDB.Migration.Access.Worker/CSharpDB.Migration.Access.Worker.csproj @@ -2,7 +2,7 @@ Exe - net10.0 + net11.0 enable enable csharpdb-migration-access-worker diff --git a/src/CSharpDB.Migration.Access/CSharpDB.Migration.Access.csproj b/src/CSharpDB.Migration.Access/CSharpDB.Migration.Access.csproj index 60cf3084..bac8f986 100644 --- a/src/CSharpDB.Migration.Access/CSharpDB.Migration.Access.csproj +++ b/src/CSharpDB.Migration.Access/CSharpDB.Migration.Access.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable CSharpDB.Migration.Access @@ -13,7 +13,7 @@ - + diff --git a/src/CSharpDB.Migration.Access/THIRD-PARTY-NOTICES.md b/src/CSharpDB.Migration.Access/THIRD-PARTY-NOTICES.md index cfdbe1c4..aa1ac481 100644 --- a/src/CSharpDB.Migration.Access/THIRD-PARTY-NOTICES.md +++ b/src/CSharpDB.Migration.Access/THIRD-PARTY-NOTICES.md @@ -7,16 +7,16 @@ prerequisite and is not redistributed. | Package | Version | License | | --- | --- | --- | -| System.Configuration.ConfigurationManager | 10.0.14 | MIT | -| System.Data.OleDb | 10.0.14 | MIT | -| System.Diagnostics.EventLog | 10.0.14 | MIT | -| System.Diagnostics.PerformanceCounter | 10.0.14 | MIT | -| System.Security.Cryptography.ProtectedData | 10.0.14 | MIT | +| System.Configuration.ConfigurationManager | 11.0.0 | MIT | +| System.Data.OleDb | 11.0.0 | MIT | +| System.Diagnostics.EventLog | 11.0.0 | MIT | +| System.Diagnostics.PerformanceCounter | 11.0.0 | MIT | +| System.Security.Cryptography.ProtectedData | 11.0.0 | MIT | ## System.Data.OleDb - Package: System.Data.OleDb -- Version: 10.0.14 +- Version: 11.0.0 - Project: https://github.com/dotnet/runtime - License: MIT diff --git a/src/CSharpDB.Migration.CSharpDb.Ddl/CSharpDB.Migration.CSharpDb.Ddl.csproj b/src/CSharpDB.Migration.CSharpDb.Ddl/CSharpDB.Migration.CSharpDb.Ddl.csproj index a318712d..b8fae71d 100644 --- a/src/CSharpDB.Migration.CSharpDb.Ddl/CSharpDB.Migration.CSharpDb.Ddl.csproj +++ b/src/CSharpDB.Migration.CSharpDb.Ddl/CSharpDB.Migration.CSharpDb.Ddl.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable CSharpDB.Migration.CSharpDb.Ddl diff --git a/src/CSharpDB.Migration.CSharpDb/CSharpDB.Migration.CSharpDb.csproj b/src/CSharpDB.Migration.CSharpDb/CSharpDB.Migration.CSharpDb.csproj index db0b25c4..a4eea7de 100644 --- a/src/CSharpDB.Migration.CSharpDb/CSharpDB.Migration.CSharpDb.csproj +++ b/src/CSharpDB.Migration.CSharpDb/CSharpDB.Migration.CSharpDb.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable CSharpDB.Migration.CSharpDb diff --git a/src/CSharpDB.Migration.Compatibility/CSharpDB.Migration.Compatibility.csproj b/src/CSharpDB.Migration.Compatibility/CSharpDB.Migration.Compatibility.csproj index f380836a..e30a2004 100644 --- a/src/CSharpDB.Migration.Compatibility/CSharpDB.Migration.Compatibility.csproj +++ b/src/CSharpDB.Migration.Compatibility/CSharpDB.Migration.Compatibility.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable CSharpDB.Migration.Compatibility diff --git a/src/CSharpDB.Migration.DualRun/CSharpDB.Migration.DualRun.csproj b/src/CSharpDB.Migration.DualRun/CSharpDB.Migration.DualRun.csproj index 8a8cf3da..70f6c26a 100644 --- a/src/CSharpDB.Migration.DualRun/CSharpDB.Migration.DualRun.csproj +++ b/src/CSharpDB.Migration.DualRun/CSharpDB.Migration.DualRun.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable CSharpDB.Migration.DualRun diff --git a/src/CSharpDB.Migration.Files/CSharpDB.Migration.Files.csproj b/src/CSharpDB.Migration.Files/CSharpDB.Migration.Files.csproj index 317466ff..bb5c60d4 100644 --- a/src/CSharpDB.Migration.Files/CSharpDB.Migration.Files.csproj +++ b/src/CSharpDB.Migration.Files/CSharpDB.Migration.Files.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable CSharpDB.Migration.Files diff --git a/src/CSharpDB.Migration.LiteDb/CSharpDB.Migration.LiteDb.csproj b/src/CSharpDB.Migration.LiteDb/CSharpDB.Migration.LiteDb.csproj index 8f27529c..43af66d6 100644 --- a/src/CSharpDB.Migration.LiteDb/CSharpDB.Migration.LiteDb.csproj +++ b/src/CSharpDB.Migration.LiteDb/CSharpDB.Migration.LiteDb.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable CSharpDB.Migration.LiteDb diff --git a/src/CSharpDB.Migration.MySql.Worker/CSharpDB.Migration.MySql.Worker.csproj b/src/CSharpDB.Migration.MySql.Worker/CSharpDB.Migration.MySql.Worker.csproj index 9ee547b2..a1697e85 100644 --- a/src/CSharpDB.Migration.MySql.Worker/CSharpDB.Migration.MySql.Worker.csproj +++ b/src/CSharpDB.Migration.MySql.Worker/CSharpDB.Migration.MySql.Worker.csproj @@ -2,7 +2,7 @@ Exe - net10.0 + net11.0 enable enable csharpdb-migration-mysql-worker diff --git a/src/CSharpDB.Migration.MySql/CSharpDB.Migration.MySql.csproj b/src/CSharpDB.Migration.MySql/CSharpDB.Migration.MySql.csproj index af72c6a0..94cb048c 100644 --- a/src/CSharpDB.Migration.MySql/CSharpDB.Migration.MySql.csproj +++ b/src/CSharpDB.Migration.MySql/CSharpDB.Migration.MySql.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable CSharpDB.Migration.MySql diff --git a/src/CSharpDB.Migration.MySql/README.md b/src/CSharpDB.Migration.MySql/README.md index 6c64f6b0..5e7b7b00 100644 --- a/src/CSharpDB.Migration.MySql/README.md +++ b/src/CSharpDB.Migration.MySql/README.md @@ -288,7 +288,7 @@ time-of-day semantic type. ## Dependencies MySqlConnector 2.6.2 is pinned directly and is managed-only. The reviewed -`net10.0` worker runtime package closure is recorded in +`net11.0` worker runtime package closure is recorded in `THIRD-PARTY-NOTICES.md` and accompanies the optional worker distribution. This project deliberately does not reference Oracle's `MySql.Data` package or optional MariaDB authentication extensions. diff --git a/src/CSharpDB.Migration.MySql/THIRD-PARTY-NOTICES.md b/src/CSharpDB.Migration.MySql/THIRD-PARTY-NOTICES.md index caf61ae0..54602351 100644 --- a/src/CSharpDB.Migration.MySql/THIRD-PARTY-NOTICES.md +++ b/src/CSharpDB.Migration.MySql/THIRD-PARTY-NOTICES.md @@ -1,12 +1,10 @@ # Third-Party Notices The optional MySQL analyzer currently resolves the following NuGet runtime -dependency closure for `net10.0`. All packages are MIT licensed. +dependency closure for `net11.0`. All packages are MIT licensed. | Package | Version | License | | --- | --- | --- | -| Microsoft.Extensions.DependencyInjection.Abstractions | 8.0.2 | MIT | -| Microsoft.Extensions.Logging.Abstractions | 8.0.2 | MIT | | MySqlConnector | 2.6.2 | MIT | ## MySqlConnector @@ -37,35 +35,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -## Microsoft.Extensions packages - -- Packages: Microsoft.Extensions.DependencyInjection.Abstractions, - Microsoft.Extensions.Logging.Abstractions -- Version: 8.0.2 -- Project: https://github.com/dotnet/runtime -- License: MIT - -The MIT License (MIT) - -Copyright (c) .NET Foundation and Contributors - -All rights reserved. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/src/CSharpDB.Migration.Retained/CSharpDB.Migration.Retained.csproj b/src/CSharpDB.Migration.Retained/CSharpDB.Migration.Retained.csproj index af4e74b7..c4d29fbb 100644 --- a/src/CSharpDB.Migration.Retained/CSharpDB.Migration.Retained.csproj +++ b/src/CSharpDB.Migration.Retained/CSharpDB.Migration.Retained.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable CSharpDB.Migration.Retained diff --git a/src/CSharpDB.Migration.SqlServer.Worker/CSharpDB.Migration.SqlServer.Worker.csproj b/src/CSharpDB.Migration.SqlServer.Worker/CSharpDB.Migration.SqlServer.Worker.csproj index f3f5e324..b2a1bb5f 100644 --- a/src/CSharpDB.Migration.SqlServer.Worker/CSharpDB.Migration.SqlServer.Worker.csproj +++ b/src/CSharpDB.Migration.SqlServer.Worker/CSharpDB.Migration.SqlServer.Worker.csproj @@ -2,7 +2,7 @@ Exe - net10.0 + net11.0 enable enable csharpdb-migration-sqlserver-worker diff --git a/src/CSharpDB.Migration.SqlServer/CSharpDB.Migration.SqlServer.csproj b/src/CSharpDB.Migration.SqlServer/CSharpDB.Migration.SqlServer.csproj index c81c4318..d2367d6c 100644 --- a/src/CSharpDB.Migration.SqlServer/CSharpDB.Migration.SqlServer.csproj +++ b/src/CSharpDB.Migration.SqlServer/CSharpDB.Migration.SqlServer.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable CSharpDB.Migration.SqlServer @@ -17,7 +17,7 @@ - + diff --git a/src/CSharpDB.Migration.SqlServer/README.md b/src/CSharpDB.Migration.SqlServer/README.md index bda13a42..2a048a6d 100644 --- a/src/CSharpDB.Migration.SqlServer/README.md +++ b/src/CSharpDB.Migration.SqlServer/README.md @@ -252,7 +252,7 @@ setting. Authentication modes that require ## Runtime and bitness status -The project targets `net10.0` and does not bundle a SQL Server engine or other +The project targets `net11.0` and does not bundle a SQL Server engine or other server-side native runtime. Microsoft.Data.SqlClient brings its own managed and platform transport dependencies, including transitive SNI runtime assets where the package requires them. The generic CLI has no SQL Server project or package diff --git a/src/CSharpDB.Migration.SqlServer/THIRD-PARTY-NOTICES.md b/src/CSharpDB.Migration.SqlServer/THIRD-PARTY-NOTICES.md index 24fc0a93..c6c94fe6 100644 --- a/src/CSharpDB.Migration.SqlServer/THIRD-PARTY-NOTICES.md +++ b/src/CSharpDB.Migration.SqlServer/THIRD-PARTY-NOTICES.md @@ -13,12 +13,7 @@ Microsoft Software License Terms included at | Microsoft.Data.SqlClient.Extensions.Abstractions | 7.1.1 | MIT | | Microsoft.Data.SqlClient.Internal.Logging | 7.1.1 | MIT | | Microsoft.Data.SqlClient.SNI.runtime | 7.1.0 | Microsoft Software License Terms | -| Microsoft.Extensions.Caching.Abstractions | 9.0.18 | MIT | | Microsoft.Extensions.Caching.Memory | 9.0.18 | MIT | -| Microsoft.Extensions.DependencyInjection.Abstractions | 10.0.0 | MIT | -| Microsoft.Extensions.Logging.Abstractions | 10.0.0 | MIT | -| Microsoft.Extensions.Options | 9.0.18 | MIT | -| Microsoft.Extensions.Primitives | 9.0.18 | MIT | | Microsoft.IdentityModel.Abstractions | 8.16.0 | MIT | | Microsoft.IdentityModel.JsonWebTokens | 8.16.0 | MIT | | Microsoft.IdentityModel.Logging | 8.16.0 | MIT | @@ -30,7 +25,7 @@ Microsoft Software License Terms included at | System.Configuration.ConfigurationManager | 9.0.18 | MIT | | System.Diagnostics.EventLog | 9.0.18 | MIT | | System.IdentityModel.Tokens.Jwt | 8.16.0 | MIT | -| System.Security.Cryptography.Pkcs | 10.0.14 | MIT | +| System.Security.Cryptography.Pkcs | 11.0.0 | MIT | | System.Security.Cryptography.ProtectedData | 9.0.18 | MIT | | System.Threading.RateLimiting | 9.0.18 | MIT | diff --git a/src/CSharpDB.Migration.Sqlite/CSharpDB.Migration.Sqlite.csproj b/src/CSharpDB.Migration.Sqlite/CSharpDB.Migration.Sqlite.csproj index 01d60fb7..0b9100c6 100644 --- a/src/CSharpDB.Migration.Sqlite/CSharpDB.Migration.Sqlite.csproj +++ b/src/CSharpDB.Migration.Sqlite/CSharpDB.Migration.Sqlite.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable CSharpDB.Migration.Sqlite diff --git a/src/CSharpDB.Migration/CSharpDB.Migration.csproj b/src/CSharpDB.Migration/CSharpDB.Migration.csproj index d69d61af..db91ff85 100644 --- a/src/CSharpDB.Migration/CSharpDB.Migration.csproj +++ b/src/CSharpDB.Migration/CSharpDB.Migration.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable CSharpDB.Migration diff --git a/src/CSharpDB.Native/CSharpDB.Native.csproj b/src/CSharpDB.Native/CSharpDB.Native.csproj index cfa01ddf..b4b6d8e8 100644 --- a/src/CSharpDB.Native/CSharpDB.Native.csproj +++ b/src/CSharpDB.Native/CSharpDB.Native.csproj @@ -14,7 +14,7 @@ --> - net10.0 + net11.0 enable enable true @@ -23,6 +23,8 @@ NativeAOT shared library exposing CSharpDB as a C-compatible API for cross-language consumption via FFI. Shared + + false true diff --git a/src/CSharpDB.Native/README.md b/src/CSharpDB.Native/README.md index ece604b9..f21908d0 100644 --- a/src/CSharpDB.Native/README.md +++ b/src/CSharpDB.Native/README.md @@ -46,7 +46,7 @@ A NativeAOT-compiled shared library that exposes the CSharpDB embedded database ### All Platforms -- [.NET 10 SDK](https://dotnet.microsoft.com/download/dotnet/10.0) or later +- [.NET 11 SDK](https://dotnet.microsoft.com/download/dotnet/11.0) or later ### Windows @@ -88,7 +88,7 @@ xcode-select --install dotnet publish src/CSharpDB.Native -c Release -r win-x64 ``` -Output: `src/CSharpDB.Native/bin/Release/net10.0/win-x64/publish/CSharpDB.Native.dll` +Output: `src/CSharpDB.Native/bin/Release/net11.0/win-x64/publish/CSharpDB.Native.dll` For ARM64 Windows: @@ -102,7 +102,7 @@ dotnet publish src/CSharpDB.Native -c Release -r win-arm64 dotnet publish src/CSharpDB.Native -c Release -r linux-x64 ``` -Output: `src/CSharpDB.Native/bin/Release/net10.0/linux-x64/publish/CSharpDB.Native.so` +Output: `src/CSharpDB.Native/bin/Release/net11.0/linux-x64/publish/CSharpDB.Native.so` For ARM64 (e.g., Raspberry Pi, AWS Graviton): @@ -120,7 +120,9 @@ dotnet publish src/CSharpDB.Native -c Release -r osx-arm64 dotnet publish src/CSharpDB.Native -c Release -r osx-x64 ``` -Output: `src/CSharpDB.Native/bin/Release/net10.0/osx-arm64/publish/CSharpDB.Native.dylib` +Output: `src/CSharpDB.Native/bin/Release/net11.0/osx-arm64/publish/CSharpDB.Native.dylib` + +The project sets `UseNativeLibPrefix=false` to preserve these public filenames on Unix; .NET 11 otherwise adds a `lib` prefix. ### Android @@ -149,7 +151,7 @@ dotnet publish src/CSharpDB.Native -c Release -r ios-arm64 You can cross-compile from one platform to another if the appropriate toolchain is installed. For example, to build a Linux library from Windows using WSL or a Docker container: ```bash -docker run --rm -v $(pwd):/src -w /src mcr.microsoft.com/dotnet/sdk:10.0 \ +docker run --rm -v $(pwd):/src -w /src mcr.microsoft.com/dotnet/sdk:11.0 \ dotnet publish src/CSharpDB.Native -c Release -r linux-x64 ``` @@ -747,9 +749,9 @@ class CSharpDB: if sys.platform == "win32": lib_path = "./CSharpDB.Native.dll" elif sys.platform == "darwin": - lib_path = "./libCSharpDB.Native.dylib" + lib_path = "./CSharpDB.Native.dylib" else: - lib_path = "./libCSharpDB.Native.so" + lib_path = "./CSharpDB.Native.so" self._lib = ctypes.CDLL(lib_path) self._setup_signatures() @@ -1196,8 +1198,8 @@ typedef CsharpdbClose = void Function(Pointer); void main() { final lib = DynamicLibrary.open( Platform.isWindows ? 'CSharpDB.Native.dll' : - Platform.isMacOS ? 'libCSharpDB.Native.dylib' : - 'libCSharpDB.Native.so' + Platform.isMacOS ? 'CSharpDB.Native.dylib' : + 'CSharpDB.Native.so' ); final open = lib.lookupFunction('csharpdb_open'); @@ -1273,8 +1275,8 @@ const DbType = { NULL: 0, INTEGER: 1, REAL: 2, TEXT: 3, BLOB: 4, DECIMAL: 5 }; function loadLibrary(libPath) { if (!libPath) { if (process.platform === "win32") libPath = "./CSharpDB.Native.dll"; - else if (process.platform === "darwin") libPath = "./libCSharpDB.Native.dylib"; - else libPath = "./libCSharpDB.Native.so"; + else if (process.platform === "darwin") libPath = "./CSharpDB.Native.dylib"; + else libPath = "./CSharpDB.Native.so"; } return koffi.load(libPath); } @@ -1881,8 +1883,11 @@ On Windows, ensure the DLL is in the same folder as the `.exe` or in `PATH`. Verify the library was published with NativeAOT: ```bash -# Linux/macOS -nm -D libCSharpDB.Native.so | grep csharpdb_ +# Linux +nm -D CSharpDB.Native.so | grep csharpdb_ + +# macOS +nm -gU CSharpDB.Native.dylib | grep csharpdb_ # Windows (from VS Developer Command Prompt) dumpbin /exports CSharpDB.Native.dll diff --git a/src/CSharpDB.Observability/CSharpDB.Observability.csproj b/src/CSharpDB.Observability/CSharpDB.Observability.csproj index 7817b2c2..e83a91be 100644 --- a/src/CSharpDB.Observability/CSharpDB.Observability.csproj +++ b/src/CSharpDB.Observability/CSharpDB.Observability.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable CSharpDB.Observability diff --git a/src/CSharpDB.Observability/README.md b/src/CSharpDB.Observability/README.md index baa61562..0eab4710 100644 --- a/src/CSharpDB.Observability/README.md +++ b/src/CSharpDB.Observability/README.md @@ -4,7 +4,7 @@ BCL-only observability contracts and safe runtime-diagnostics models for [CSharpDB](https://github.com/MaxAkbar/CSharpDB). [![NuGet](https://img.shields.io/nuget/v/CSharpDB.Observability)](https://www.nuget.org/packages/CSharpDB.Observability) -[![.NET 10](https://img.shields.io/badge/.NET-10-512bd4)](https://dotnet.microsoft.com/download/dotnet/10.0) +[![.NET 11](https://img.shields.io/badge/.NET-11-512bd4)](https://dotnet.microsoft.com/download/dotnet/11.0) [![Release](https://img.shields.io/github/v/release/MaxAkbar/CSharpDB?display_name=tag&label=Release)](https://github.com/MaxAkbar/CSharpDB/releases/latest) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/MaxAkbar/CSharpDB/blob/main/LICENSE) diff --git a/src/CSharpDB.Pipelines/CSharpDB.Pipelines.csproj b/src/CSharpDB.Pipelines/CSharpDB.Pipelines.csproj index 78af763c..64fe3b50 100644 --- a/src/CSharpDB.Pipelines/CSharpDB.Pipelines.csproj +++ b/src/CSharpDB.Pipelines/CSharpDB.Pipelines.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable Package contracts and runtime foundation for CSharpDB ETL pipelines. diff --git a/src/CSharpDB.Pipelines/README.md b/src/CSharpDB.Pipelines/README.md index 78a55a9f..5a960cdd 100644 --- a/src/CSharpDB.Pipelines/README.md +++ b/src/CSharpDB.Pipelines/README.md @@ -3,7 +3,7 @@ Package contracts and runtime foundation for CSharpDB ETL pipelines. [![NuGet](https://img.shields.io/nuget/v/CSharpDB.Pipelines)](https://www.nuget.org/packages/CSharpDB.Pipelines) -[![.NET 10](https://img.shields.io/badge/.NET-10-512bd4)](https://dotnet.microsoft.com/download/dotnet/10.0) +[![.NET 11](https://img.shields.io/badge/.NET-11-512bd4)](https://dotnet.microsoft.com/download/dotnet/11.0) [![Release](https://img.shields.io/github/v/release/MaxAkbar/CSharpDB?display_name=tag&label=Release)](https://github.com/MaxAkbar/CSharpDB/releases/latest) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/MaxAkbar/CSharpDB/blob/main/LICENSE) diff --git a/src/CSharpDB.Pipelines/Runtime/BuiltIns/TransformSupport.cs b/src/CSharpDB.Pipelines/Runtime/BuiltIns/TransformSupport.cs index 98a5264b..ff4238cc 100644 --- a/src/CSharpDB.Pipelines/Runtime/BuiltIns/TransformSupport.cs +++ b/src/CSharpDB.Pipelines/Runtime/BuiltIns/TransformSupport.cs @@ -36,6 +36,8 @@ internal static class TransformSupport DbType.Decimal => value switch { decimal decimalValue => decimalValue, + double real => CSharpDbDecimalCodec.FromDouble(real), + float real => CSharpDbDecimalCodec.FromSingle(real), _ => Convert.ToDecimal(value, CultureInfo.InvariantCulture), }, DbType.Text => value switch diff --git a/src/CSharpDB.Primitives/CSharpDB.Primitives.csproj b/src/CSharpDB.Primitives/CSharpDB.Primitives.csproj index 46522084..cdd1f9f2 100644 --- a/src/CSharpDB.Primitives/CSharpDB.Primitives.csproj +++ b/src/CSharpDB.Primitives/CSharpDB.Primitives.csproj @@ -1,7 +1,7 @@ - + - net10.0 + net11.0 enable enable CSharpDB.Primitives diff --git a/src/CSharpDB.Primitives/CSharpDbDecimalCodec.cs b/src/CSharpDB.Primitives/CSharpDbDecimalCodec.cs index 6e89c0c0..8517b7f1 100644 --- a/src/CSharpDB.Primitives/CSharpDbDecimalCodec.cs +++ b/src/CSharpDB.Primitives/CSharpDbDecimalCodec.cs @@ -1,3 +1,5 @@ +using System.Globalization; + namespace CSharpDB.Primitives; /// @@ -12,6 +14,41 @@ public static class CSharpDbDecimalCodec private static readonly decimal[] ScaleFactors = CreateScaleFactors(); + /// + /// Converts a SQL REAL to DECIMAL using 15 significant decimal digits. + /// This keeps binary floating-point tails out of decimal assignments after + /// .NET 11 changed casts to preserve the full binary value. + /// + public static decimal FromDouble(double value) + { + if (!double.IsFinite(value)) + throw new OverflowException("A non-finite value cannot be converted to DECIMAL."); + + // These floating-point bounds round outward to +/-2^96, so equality + // already overflows. Check before precision rounding can hide it. + if (value <= (double)decimal.MinValue || value >= (double)decimal.MaxValue) + throw new OverflowException("The floating-point value is outside the DECIMAL range."); + + Span text = stackalloc char[32]; + value.TryFormat(text, out int written, "G15", CultureInfo.InvariantCulture); + return decimal.Parse(text[..written], NumberStyles.Float, CultureInfo.InvariantCulture); + } + + /// Converts a single-precision value using 7 significant decimal digits. + public static decimal FromSingle(float value) + { + if (!float.IsFinite(value)) + throw new OverflowException("A non-finite value cannot be converted to DECIMAL."); + + // The rounded floating-point bounds are exclusive here as well. + if (value <= (float)decimal.MinValue || value >= (float)decimal.MaxValue) + throw new OverflowException("The floating-point value is outside the DECIMAL range."); + + Span text = stackalloc char[32]; + value.TryFormat(text, out int written, "G7", CultureInfo.InvariantCulture); + return decimal.Parse(text[..written], NumberStyles.Float, CultureInfo.InvariantCulture); + } + public static (int Precision, int Scale) ResolveFacets(int? precision, int? scale) { int resolvedPrecision = precision ?? DefaultPrecision; diff --git a/src/CSharpDB.Primitives/README.md b/src/CSharpDB.Primitives/README.md index 24e10491..2057f84a 100644 --- a/src/CSharpDB.Primitives/README.md +++ b/src/CSharpDB.Primitives/README.md @@ -3,7 +3,7 @@ Shared types, schema definitions, and error codes for the [CSharpDB](https://github.com/MaxAkbar/CSharpDB) embedded database engine. [![NuGet](https://img.shields.io/nuget/v/CSharpDB.Primitives)](https://www.nuget.org/packages/CSharpDB.Primitives) -[![.NET 10](https://img.shields.io/badge/.NET-10-512bd4)](https://dotnet.microsoft.com/download/dotnet/10.0) +[![.NET 11](https://img.shields.io/badge/.NET-11-512bd4)](https://dotnet.microsoft.com/download/dotnet/11.0) [![Release](https://img.shields.io/github/v/release/MaxAkbar/CSharpDB?display_name=tag&label=Release)](https://github.com/MaxAkbar/CSharpDB/releases/latest) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/MaxAkbar/CSharpDB/blob/main/LICENSE) diff --git a/src/CSharpDB.Sql/CSharpDB.Sql.csproj b/src/CSharpDB.Sql/CSharpDB.Sql.csproj index 286a7650..776fd0a3 100644 --- a/src/CSharpDB.Sql/CSharpDB.Sql.csproj +++ b/src/CSharpDB.Sql/CSharpDB.Sql.csproj @@ -6,7 +6,7 @@ - net10.0 + net11.0 enable enable SQL tokenizer, recursive-descent parser, and AST for the CSharpDB embedded database. diff --git a/src/CSharpDB.Sql/README.md b/src/CSharpDB.Sql/README.md index f13e8cf2..aa9daabe 100644 --- a/src/CSharpDB.Sql/README.md +++ b/src/CSharpDB.Sql/README.md @@ -3,7 +3,7 @@ SQL tokenizer, recursive-descent parser, and abstract syntax tree (AST) for the [CSharpDB](https://github.com/MaxAkbar/CSharpDB) embedded database engine. [![NuGet](https://img.shields.io/nuget/v/CSharpDB.Sql)](https://www.nuget.org/packages/CSharpDB.Sql) -[![.NET 10](https://img.shields.io/badge/.NET-10-512bd4)](https://dotnet.microsoft.com/download/dotnet/10.0) +[![.NET 11](https://img.shields.io/badge/.NET-11-512bd4)](https://dotnet.microsoft.com/download/dotnet/11.0) [![Release](https://img.shields.io/github/v/release/MaxAkbar/CSharpDB?display_name=tag&label=Release)](https://github.com/MaxAkbar/CSharpDB/releases/latest) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/MaxAkbar/CSharpDB/blob/main/LICENSE) diff --git a/src/CSharpDB.Storage.Diagnostics/CSharpDB.Storage.Diagnostics.csproj b/src/CSharpDB.Storage.Diagnostics/CSharpDB.Storage.Diagnostics.csproj index 5008bb34..d8f2f3e2 100644 --- a/src/CSharpDB.Storage.Diagnostics/CSharpDB.Storage.Diagnostics.csproj +++ b/src/CSharpDB.Storage.Diagnostics/CSharpDB.Storage.Diagnostics.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable Read-only storage diagnostics toolkit for CSharpDB database and WAL files. diff --git a/src/CSharpDB.Storage.Diagnostics/README.md b/src/CSharpDB.Storage.Diagnostics/README.md index 441668cb..64240003 100644 --- a/src/CSharpDB.Storage.Diagnostics/README.md +++ b/src/CSharpDB.Storage.Diagnostics/README.md @@ -3,7 +3,7 @@ Read-only storage diagnostics and integrity checking toolkit for [CSharpDB](https://github.com/MaxAkbar/CSharpDB) database files. [![NuGet](https://img.shields.io/nuget/v/CSharpDB.Storage.Diagnostics)](https://www.nuget.org/packages/CSharpDB.Storage.Diagnostics) -[![.NET 10](https://img.shields.io/badge/.NET-10-512bd4)](https://dotnet.microsoft.com/download/dotnet/10.0) +[![.NET 11](https://img.shields.io/badge/.NET-11-512bd4)](https://dotnet.microsoft.com/download/dotnet/11.0) [![Release](https://img.shields.io/github/v/release/MaxAkbar/CSharpDB?display_name=tag&label=Release)](https://github.com/MaxAkbar/CSharpDB/releases/latest) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/MaxAkbar/CSharpDB/blob/main/LICENSE) diff --git a/src/CSharpDB.Storage/CSharpDB.Storage.csproj b/src/CSharpDB.Storage/CSharpDB.Storage.csproj index 0ef0ba06..cb351560 100644 --- a/src/CSharpDB.Storage/CSharpDB.Storage.csproj +++ b/src/CSharpDB.Storage/CSharpDB.Storage.csproj @@ -11,7 +11,7 @@ - net10.0 + net11.0 enable enable true diff --git a/src/CSharpDB.Storage/Paging/Pager.cs b/src/CSharpDB.Storage/Paging/Pager.cs index 0b0c2ab7..5cb252cb 100644 --- a/src/CSharpDB.Storage/Paging/Pager.cs +++ b/src/CSharpDB.Storage/Paging/Pager.cs @@ -2148,6 +2148,7 @@ private async ValueTask BeginExplicitCommitAsync(PagerTransac while (true) { bool waitForCommitStateChange = false; + Task? commitStateChange = null; long commitLockWaitStartTicks = Stopwatch.GetTimestamp(); IDisposable? commitLock = _transactions is not null ? await _transactions.AcquireCommitLockAsync(ct) @@ -2156,6 +2157,10 @@ private async ValueTask BeginExplicitCommitAsync(PagerTransac long commitLockHoldStartTicks = commitLock is not null ? Stopwatch.GetTimestamp() : 0; try { + // Capture the signal before checking pending conflicts. + // A commit can publish after that check but before this + // transaction releases the commit lock and starts waiting. + commitStateChange = _transactions?.CaptureCommitStateChangeTask(); long conflictResolutionStartTicks = Stopwatch.GetTimestamp(); bool needsFreelistRebase = tx.ConsumedFreelistPageIds.Count > 0 || tx.PendingFreelistPageIds.Count > 0; while (true) @@ -2293,7 +2298,7 @@ private async ValueTask BeginExplicitCommitAsync(PagerTransac if (!waitForCommitStateChange) break; - await _transactions!.WaitForCommitStateChangeAsync(ct); + await commitStateChange!.WaitAsync(ct); } } catch diff --git a/src/CSharpDB.Storage/Transactions/TransactionCoordinator.cs b/src/CSharpDB.Storage/Transactions/TransactionCoordinator.cs index e25dfc7e..3c9504cb 100644 --- a/src/CSharpDB.Storage/Transactions/TransactionCoordinator.cs +++ b/src/CSharpDB.Storage/Transactions/TransactionCoordinator.cs @@ -446,15 +446,12 @@ internal bool TryGetPendingPageImage(uint pageId, long commitVersion, out ReadOn return false; } - public async ValueTask WaitForCommitStateChangeAsync(CancellationToken ct = default) + public Task CaptureCommitStateChangeTask() { - Task waitTask; lock (_pageVersionGate) { - waitTask = _commitStateChanged.Task; + return _commitStateChanged.Task; } - - await waitTask.WaitAsync(ct); } public bool HasLogicalConflict( diff --git a/src/CSharpDB/CSharpDB.csproj b/src/CSharpDB/CSharpDB.csproj index 77e6c865..ad0c5cab 100644 --- a/src/CSharpDB/CSharpDB.csproj +++ b/src/CSharpDB/CSharpDB.csproj @@ -1,7 +1,7 @@ - net10.0 + net11.0 enable enable CSharpDB diff --git a/src/CSharpDB/README.md b/src/CSharpDB/README.md index 5b2e5957..79c2f79c 100644 --- a/src/CSharpDB/README.md +++ b/src/CSharpDB/README.md @@ -3,7 +3,7 @@ A zero-dependency embedded database engine for .NET with a documented CSharpDB SQL subset, a typed NoSQL Collection API, built-in full-text search, ETL pipelines, and an ADO.NET provider — all in a single NuGet package. [![NuGet](https://img.shields.io/nuget/v/CSharpDB)](https://www.nuget.org/packages/CSharpDB) -[![.NET 10](https://img.shields.io/badge/.NET-10-512bd4)](https://dotnet.microsoft.com/download/dotnet/10.0) +[![.NET 11](https://img.shields.io/badge/.NET-11-512bd4)](https://dotnet.microsoft.com/download/dotnet/11.0) [![Release](https://img.shields.io/github/v/release/MaxAkbar/CSharpDB?display_name=tag&label=Release)](https://github.com/MaxAkbar/CSharpDB/releases/latest) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/MaxAkbar/CSharpDB/blob/main/LICENSE) diff --git a/tests/CSharpDB.Admin.Forms.Tests/CSharpDB.Admin.Forms.Tests.csproj b/tests/CSharpDB.Admin.Forms.Tests/CSharpDB.Admin.Forms.Tests.csproj index 206262b9..526dcf26 100644 --- a/tests/CSharpDB.Admin.Forms.Tests/CSharpDB.Admin.Forms.Tests.csproj +++ b/tests/CSharpDB.Admin.Forms.Tests/CSharpDB.Admin.Forms.Tests.csproj @@ -4,7 +4,7 @@ Exe - net10.0 + net11.0 enable enable false @@ -19,7 +19,7 @@ - + diff --git a/tests/CSharpDB.Admin.Reports.Tests/CSharpDB.Admin.Reports.Tests.csproj b/tests/CSharpDB.Admin.Reports.Tests/CSharpDB.Admin.Reports.Tests.csproj index 226a7055..4fee6038 100644 --- a/tests/CSharpDB.Admin.Reports.Tests/CSharpDB.Admin.Reports.Tests.csproj +++ b/tests/CSharpDB.Admin.Reports.Tests/CSharpDB.Admin.Reports.Tests.csproj @@ -4,7 +4,7 @@ Exe - net10.0 + net11.0 enable enable false diff --git a/tests/CSharpDB.Api.Tests/CSharpDB.Api.Tests.csproj b/tests/CSharpDB.Api.Tests/CSharpDB.Api.Tests.csproj index 4f2ee1ed..d102e74a 100644 --- a/tests/CSharpDB.Api.Tests/CSharpDB.Api.Tests.csproj +++ b/tests/CSharpDB.Api.Tests/CSharpDB.Api.Tests.csproj @@ -9,14 +9,14 @@ Exe - net10.0 + net11.0 enable enable false - + diff --git a/tests/CSharpDB.Api.Tests/HealthHostTests.cs b/tests/CSharpDB.Api.Tests/HealthHostTests.cs index 78dd11c1..3e2de932 100644 --- a/tests/CSharpDB.Api.Tests/HealthHostTests.cs +++ b/tests/CSharpDB.Api.Tests/HealthHostTests.cs @@ -339,8 +339,12 @@ public async Task AuthenticatedDetailedHealth_DoesNotResolveOrCallDatabase() var initialization = NewInfoCompletion(); proxy.GetInfoHandler = (_, _) => initialization.Task; + // Keep initialization pending while the endpoint assertions run; its + // timeout/retry behavior is covered by separate deadline tests. + CSharpDbObservabilityOptions options = DisabledObservabilityOptions(); + options.Health.ReadinessTimeout = TimeSpan.FromSeconds(30); WebApplicationBuilder builder = CreateBuilder(); - builder.Services.AddSingleton(DisabledObservabilityOptions()); + builder.Services.AddSingleton(options); builder.Services.AddSingleton(client); builder.Services.AddCSharpDbHealth(DiagnosticsSource.Api); builder.Services.AddCSharpDbRestApi(security => diff --git a/tests/CSharpDB.Benchmarks.Tests/BenchmarkRuntimeCompatibilityTests.cs b/tests/CSharpDB.Benchmarks.Tests/BenchmarkRuntimeCompatibilityTests.cs new file mode 100644 index 00000000..93c654d3 --- /dev/null +++ b/tests/CSharpDB.Benchmarks.Tests/BenchmarkRuntimeCompatibilityTests.cs @@ -0,0 +1,17 @@ +using BenchmarkDotNet.Environments; +using BenchmarkDotNet.Toolchains.InProcess.NoEmit; + +namespace CSharpDB.Benchmarks.Tests; + +public sealed class BenchmarkRuntimeCompatibilityTests +{ + [Fact] + public void DefaultToolchainRecognizesCurrentRuntime() + { + CoreRuntime runtime = Assert.IsType( + InProcessNoEmitToolchain.Default.Runtime); + + Assert.Equal(Environment.Version.Major, runtime.Version.Major); + Assert.Equal(Environment.Version.Minor, runtime.Version.Minor); + } +} diff --git a/tests/CSharpDB.Benchmarks.Tests/CSharpDB.Benchmarks.Tests.csproj b/tests/CSharpDB.Benchmarks.Tests/CSharpDB.Benchmarks.Tests.csproj index 20c7d50c..329c1f15 100644 --- a/tests/CSharpDB.Benchmarks.Tests/CSharpDB.Benchmarks.Tests.csproj +++ b/tests/CSharpDB.Benchmarks.Tests/CSharpDB.Benchmarks.Tests.csproj @@ -4,7 +4,7 @@ Exe - net10.0 + net11.0 enable enable false diff --git a/tests/CSharpDB.Benchmarks.Tests/SqliteComparisonBenchmarkTests.cs b/tests/CSharpDB.Benchmarks.Tests/SqliteComparisonBenchmarkTests.cs index a463d6c6..b3588c8d 100644 --- a/tests/CSharpDB.Benchmarks.Tests/SqliteComparisonBenchmarkTests.cs +++ b/tests/CSharpDB.Benchmarks.Tests/SqliteComparisonBenchmarkTests.cs @@ -398,6 +398,79 @@ public async Task SequentialMeasurement_PreservesSynchronousWorkerFailure() Assert.Equal("operation failed before cap", exception.Message); } + [Theory] + [InlineData(false)] + [InlineData(true)] + public async Task Measurement_DurationReachedAfterProgressRead_DoesNotLoseWakeup(bool concurrent) + { + SqliteComparisonBenchmark.MeasurementPolicy policy = CreateFastPolicy(); + var sampleRecorded = new TaskCompletionSource( + TaskCreationOptions.RunContinuationsAsynchronously); + using var deadline = new DurationCompletingAfterProgressReadDeadline(sampleRecorded.Task); + + async Task<(TimeSpan Elapsed, int Samples)> RunMeasurementAsync() + { + if (concurrent) + { + SqliteComparisonBenchmark.ConcurrentReaderPhaseResult result = + await SqliteComparisonBenchmark.RunConcurrentReaderWorkersAsync( + "sqlite-concurrent-duration-notification", + readerCount: 1, + policy, + async (_, tryRecord, ct) => + { + Assert.True(tryRecord(static () => { }, retainsLatencySample: true).Accepted); + sampleRecorded.TrySetResult(); + await WaitForCoordinatedCancellationAsync(ct); + }, + deadline, + BenchmarkTestWatchdog.SchedulingTimeout); + return (result.Elapsed, result.RetainedLatencySamples); + } + + int operationCount = 0; + BenchmarkResult sequentialResult = await SqliteComparisonBenchmark.RunSequentialScenarioCoreAsync( + "sqlite-sequential-duration-notification", + ct => + { + if (Interlocked.Increment(ref operationCount) == 1) + return Task.CompletedTask; + + // Starting the next operation proves the first sample was recorded. + sampleRecorded.TrySetResult(); + return Task.Delay(Timeout.InfiniteTimeSpan, ct); + }, + policy, + deadline, + BenchmarkTestWatchdog.SchedulingTimeout); + return (TimeSpan.FromMilliseconds(sequentialResult.ElapsedMs), sequentialResult.LatencySamples); + } + + Task<(TimeSpan Elapsed, int Samples)> phaseTask = RunMeasurementAsync(); + try + { + (TimeSpan elapsed, int samples) = await phaseTask.WaitAsync( + BenchmarkTestWatchdog.SchedulingTimeout, + TestContext.Current.CancellationToken); + Assert.Equal(policy.MinimumMeasuredDuration, elapsed); + Assert.Equal(policy.MinimumLatencySamples, samples); + Assert.True(deadline.CompletedDurationAfterProgressRead); + Assert.False(deadline.Expired.IsCompleted); + } + finally + { + // Release a broken controller as well, so a regression leaves no workers behind. + deadline.AdvanceTo(policy.MaximumMeasuredDuration, expire: true); + try + { + await phaseTask.WaitAsync( + BenchmarkTestWatchdog.SchedulingTimeout, + TestContext.Current.CancellationToken); + } + catch (InvalidOperationException) { } + } + } + [Fact] public async Task ConcurrentReaders_DelayedSchedulingStartsEveryWorkerBeforeMeasurement() { @@ -821,6 +894,52 @@ private static async Task WaitForCoordinatedCancellationAsync(CancellationToken } } + private sealed class DurationCompletingAfterProgressReadDeadline(Task sampleRecorded) : + SqliteComparisonBenchmark.IMeasurementDeadline + { + private readonly ManualMeasurementDeadline _inner = new(); + private TimeSpan _minimumDuration; + private int _completeDurationOnNextRead; + + public TimeSpan Elapsed + { + get + { + TimeSpan elapsed = _inner.Elapsed; + if (Interlocked.Exchange(ref _completeDurationOnNextRead, 0) != 0) + { + _inner.AdvanceTo(_minimumDuration); + CompletedDurationAfterProgressRead = true; + } + return elapsed; + } + } + + public CancellationToken Token => _inner.Token; + public Task Expired => _inner.Expired; + internal bool CompletedDurationAfterProgressRead { get; private set; } + + public void Start() => _inner.Start(); + + public Task WaitUntilAsync(TimeSpan elapsed) + { + Task durationReached = _inner.WaitUntilAsync(elapsed); + // Keep worker reads outside the injected controller interleaving. + sampleRecorded.WaitAsync( + BenchmarkTestWatchdog.SchedulingTimeout, + TestContext.Current.CancellationToken).GetAwaiter().GetResult(); + _minimumDuration = elapsed; + Volatile.Write(ref _completeDurationOnNextRead, 1); + return durationReached; + } + + internal void AdvanceTo(TimeSpan elapsed, bool expire = false) + => _inner.AdvanceTo(elapsed, expire); + + public void Cancel() => _inner.Cancel(); + public void Dispose() => _inner.Dispose(); + } + private sealed class ManualMeasurementDeadline : SqliteComparisonBenchmark.IMeasurementDeadline { diff --git a/tests/CSharpDB.Benchmarks/CSharpDB.Benchmarks.csproj b/tests/CSharpDB.Benchmarks/CSharpDB.Benchmarks.csproj index 7b415fb4..a067bc0f 100644 --- a/tests/CSharpDB.Benchmarks/CSharpDB.Benchmarks.csproj +++ b/tests/CSharpDB.Benchmarks/CSharpDB.Benchmarks.csproj @@ -2,7 +2,7 @@ Exe - net10.0 + net11.0 enable enable false @@ -10,9 +10,9 @@ - + - + diff --git a/tests/CSharpDB.Benchmarks/Infrastructure/CollectionInProcessBenchmarkConfig.cs b/tests/CSharpDB.Benchmarks/Infrastructure/CollectionInProcessBenchmarkConfig.cs index 2be1bdc5..8d9a43d1 100644 --- a/tests/CSharpDB.Benchmarks/Infrastructure/CollectionInProcessBenchmarkConfig.cs +++ b/tests/CSharpDB.Benchmarks/Infrastructure/CollectionInProcessBenchmarkConfig.cs @@ -15,7 +15,7 @@ private CollectionInProcessBenchmarkConfig(int warmupCount, int iterationCount) { AddJob( Job.Default - .WithToolchain(InProcessNoEmitToolchain.Instance) + .WithToolchain(InProcessNoEmitToolchain.Default) .WithWarmupCount(warmupCount) .WithIterationCount(iterationCount)); } diff --git a/tests/CSharpDB.Benchmarks/Macro/NativeAotInsertComparisonBenchmark.cs b/tests/CSharpDB.Benchmarks/Macro/NativeAotInsertComparisonBenchmark.cs index 85993450..035c92fb 100644 --- a/tests/CSharpDB.Benchmarks/Macro/NativeAotInsertComparisonBenchmark.cs +++ b/tests/CSharpDB.Benchmarks/Macro/NativeAotInsertComparisonBenchmark.cs @@ -894,7 +894,7 @@ private static string ResolveLibraryPath() "CSharpDB.Native", "bin", "Release", - "net10.0", + "net11.0", rid, "publish", "CSharpDB.Native" + extension); diff --git a/tests/CSharpDB.Benchmarks/Macro/SqliteComparisonBenchmark.cs b/tests/CSharpDB.Benchmarks/Macro/SqliteComparisonBenchmark.cs index d95c43fb..127379b6 100644 --- a/tests/CSharpDB.Benchmarks/Macro/SqliteComparisonBenchmark.cs +++ b/tests/CSharpDB.Benchmarks/Macro/SqliteComparisonBenchmark.cs @@ -442,6 +442,10 @@ internal static async Task RunSequentialScenarioCoreAsync( break; } + // Ignore only signals that completed before this progress snapshot. + // A later completion must wake the controller to read progress again. + bool durationSignalAlreadyCompleted = minimumDurationReached.IsCompleted; + bool sampleSignalAlreadyCompleted = minimumSamplesReached.Task.IsCompleted; measurementElapsed = deadline.Elapsed; int sampleCount = sampleCounter.RetainedLatencySamples; if (!deadline.Expired.IsCompleted && @@ -481,10 +485,10 @@ internal static async Task RunSequentialScenarioCoreAsync( break; } - Task durationSignal = minimumDurationReached.IsCompleted + Task durationSignal = durationSignalAlreadyCompleted ? Task.Delay(Timeout.InfiniteTimeSpan) : minimumDurationReached; - Task sampleSignal = minimumSamplesReached.Task.IsCompleted + Task sampleSignal = sampleSignalAlreadyCompleted ? Task.Delay(Timeout.InfiniteTimeSpan) : minimumSamplesReached.Task; await Task.WhenAny( @@ -751,6 +755,10 @@ ConcurrentRecordResult TryRecordAndObserveStop( break; } + // Ignore only signals that completed before this progress snapshot. + // A later completion must wake the controller to read progress again. + bool durationSignalAlreadyCompleted = minimumDurationReached.IsCompleted; + bool sampleSignalAlreadyCompleted = minimumSamplesReached.Task.IsCompleted; measurementElapsed = deadline.Elapsed; int sampleCount = sampleCounter.RetainedLatencySamples; if (!deadline.Expired.IsCompleted && @@ -786,10 +794,10 @@ ConcurrentRecordResult TryRecordAndObserveStop( break; } - Task durationSignal = minimumDurationReached.IsCompleted + Task durationSignal = durationSignalAlreadyCompleted ? Task.Delay(Timeout.InfiniteTimeSpan) : minimumDurationReached; - Task sampleSignal = minimumSamplesReached.Task.IsCompleted + Task sampleSignal = sampleSignalAlreadyCompleted ? Task.Delay(Timeout.InfiniteTimeSpan) : minimumSamplesReached.Task; await Task.WhenAny( diff --git a/tests/CSharpDB.Benchmarks/scripts/Capture-Baseline.ps1 b/tests/CSharpDB.Benchmarks/scripts/Capture-Baseline.ps1 index cac5ec40..ad6164c8 100644 --- a/tests/CSharpDB.Benchmarks/scripts/Capture-Baseline.ps1 +++ b/tests/CSharpDB.Benchmarks/scripts/Capture-Baseline.ps1 @@ -85,7 +85,7 @@ function Invoke-BenchmarkRun if ($Arguments -contains '--micro') { $count = Get-PerfExecutedMicroCases $logPath } else { $count = 0 - $resultsDir = Join-Path $benchDir "bin/$Configuration/net10.0/results" + $resultsDir = Join-Path $benchDir "bin/$Configuration/net11.0/results" foreach ($csv in @(Get-ChildItem -LiteralPath $resultsDir -Filter '*.csv' -File | Where-Object LastWriteTimeUtc -ge $runStart)) { $count += @(Import-Csv -LiteralPath $csv.FullName).Count } @@ -197,7 +197,7 @@ if (-not $SkipWriteDiagnostics) $writeDiagnosticsStartUtc = (Get-Date).ToUniversalTime() Invoke-BenchmarkRun -Label "Write Diagnostics" -Arguments $writeDiagnosticsArgs $writeDiagnosticsCapturePath = Copy-LatestArtifactToSnapshot ` - -SourceDir (Join-Path $benchDir ("bin/{0}/net10.0/results" -f $Configuration)) ` + -SourceDir (Join-Path $benchDir ("bin/{0}/net11.0/results" -f $Configuration)) ` -Pattern ("write-diagnostics-*-median-of-{0}.csv" -f $DurabilityRepeatCount) ` -NotBeforeUtc $writeDiagnosticsStartUtc ` -TargetSubDir "macro-stress-scaling" ` @@ -220,7 +220,7 @@ if (-not $SkipDurableSqlBatching) $durableSqlBatchingStartUtc = (Get-Date).ToUniversalTime() Invoke-BenchmarkRun -Label "Durable SQL Batching" -Arguments $durableSqlBatchingArgs $durableSqlBatchingCapturePath = Copy-LatestArtifactToSnapshot ` - -SourceDir (Join-Path $benchDir ("bin/{0}/net10.0/results" -f $Configuration)) ` + -SourceDir (Join-Path $benchDir ("bin/{0}/net11.0/results" -f $Configuration)) ` -Pattern ("durable-sql-batching-*-median-of-{0}.csv" -f $DurabilityRepeatCount) ` -NotBeforeUtc $durableSqlBatchingStartUtc ` -TargetSubDir "macro-stress-scaling" ` @@ -243,7 +243,7 @@ if (-not $SkipWriteTransactionDiagnostics) $writeTransactionDiagnosticsStartUtc = (Get-Date).ToUniversalTime() Invoke-BenchmarkRun -Label "WriteTransaction Diagnostics" -Arguments $writeTransactionDiagnosticsArgs $writeTransactionDiagnosticsCapturePath = Copy-LatestArtifactToSnapshot ` - -SourceDir (Join-Path $benchDir ("bin/{0}/net10.0/results" -f $Configuration)) ` + -SourceDir (Join-Path $benchDir ("bin/{0}/net11.0/results" -f $Configuration)) ` -Pattern ("write-transaction-diagnostics-*-median-of-{0}.csv" -f $DurabilityRepeatCount) ` -NotBeforeUtc $writeTransactionDiagnosticsStartUtc ` -TargetSubDir "macro-stress-scaling" ` @@ -266,7 +266,7 @@ if (-not $SkipConcurrentWriteDiagnostics) $concurrentWriteDiagnosticsStartUtc = (Get-Date).ToUniversalTime() Invoke-BenchmarkRun -Label "Concurrent Write Diagnostics" -Arguments $concurrentWriteDiagnosticsArgs $concurrentWriteDiagnosticsCapturePath = Copy-LatestArtifactToSnapshot ` - -SourceDir (Join-Path $benchDir ("bin/{0}/net10.0/results" -f $Configuration)) ` + -SourceDir (Join-Path $benchDir ("bin/{0}/net11.0/results" -f $Configuration)) ` -Pattern ("concurrent-write-diagnostics-*-median-of-{0}.csv" -f $DurabilityRepeatCount) ` -NotBeforeUtc $concurrentWriteDiagnosticsStartUtc ` -TargetSubDir "macro-stress-scaling" ` @@ -301,7 +301,7 @@ function Copy-NewArtifacts } $bdnRoot = Join-Path $repoRoot "BenchmarkDotNet.Artifacts" -$benchResults = Join-Path $benchDir ("bin/{0}/net10.0/results" -f $Configuration) +$benchResults = Join-Path $benchDir ("bin/{0}/net11.0/results" -f $Configuration) $copiedMicroCsv = 0 $copiedMicroLogs = 0 diff --git a/tests/CSharpDB.Benchmarks/scripts/Run-FullTextHotTokenBeforeAfter.ps1 b/tests/CSharpDB.Benchmarks/scripts/Run-FullTextHotTokenBeforeAfter.ps1 index 58e932b7..82accf7b 100644 --- a/tests/CSharpDB.Benchmarks/scripts/Run-FullTextHotTokenBeforeAfter.ps1 +++ b/tests/CSharpDB.Benchmarks/scripts/Run-FullTextHotTokenBeforeAfter.ps1 @@ -266,7 +266,7 @@ function New-RunnerProject Exe - net10.0 + net11.0 enable enable false @@ -448,7 +448,7 @@ function Build-Runner New-RunnerProject -RunnerDir $runnerDir -TargetRepo $TargetRepo $project = Join-Path $runnerDir "FtsHotTokenRunner.csproj" Invoke-Checked -FilePath $DotNet -ArgumentList @("build", $project, "-c", $Configuration, "--nologo") -WorkingDirectory $runnerDir -TimeoutSeconds 1800 | Out-Null - return Join-Path $runnerDir "bin\$Configuration\net10.0\FtsHotTokenRunner.dll" + return Join-Path $runnerDir "bin\$Configuration\net11.0\FtsHotTokenRunner.dll" } function Convert-JsonResultToRow diff --git a/tests/CSharpDB.Benchmarks/scripts/Run-PairedPerfGuardrails.ps1 b/tests/CSharpDB.Benchmarks/scripts/Run-PairedPerfGuardrails.ps1 index b1b5d4a8..85f18301 100644 --- a/tests/CSharpDB.Benchmarks/scripts/Run-PairedPerfGuardrails.ps1 +++ b/tests/CSharpDB.Benchmarks/scripts/Run-PairedPerfGuardrails.ps1 @@ -8,6 +8,7 @@ param( [string]$Configuration = 'Release', [string]$ThresholdsPath = '', [string[]]$MicroArguments = @(), + [switch]$UseHarnessSdk, [switch]$NoFailOnRegression ) Set-StrictMode -Version Latest @@ -29,6 +30,13 @@ foreach ($role in @('base', 'head')) { if ($LASTEXITCODE -ne 0) { throw "Could not resolve $role product SHA." } } $harnessRoot = [IO.Path]::GetFullPath((Join-Path $scriptDir '..')) +$commonSdkManifest = Join-Path $OutputPath 'common-global.json' +if ($UseHarnessSdk) { + # A new harness TFM may require a newer SDK than the base product pins. + # Keep the product TFMs intact and build both with the harness SDK. + $harnessSdkManifest = [IO.Path]::GetFullPath((Join-Path $harnessRoot '../../global.json')) + Copy-Item -LiteralPath $harnessSdkManifest -Destination $commonSdkManifest +} $records = @(Get-PerfHarnessRecords $harnessRoot) $identity = Get-PerfHarnessIdentity $records if ([string]::IsNullOrWhiteSpace($ThresholdsPath)) { @@ -51,6 +59,13 @@ foreach ($role in @('base', 'head')) { Copy-Item -LiteralPath (Join-Path $harnessRoot $record.path) -Destination $destination } if ((Get-PerfHarnessIdentity @(Get-PerfHarnessRecords $target)) -cne $identity) { throw "$role harness synchronization failed." } + if ($UseHarnessSdk) { + $productSdkManifest = Join-Path $roots[$role] 'global.json' + if (Test-Path -LiteralPath $productSdkManifest) { + Copy-Item -LiteralPath $productSdkManifest -Destination (Join-Path $OutputPath "$role-original-global.json") + } + Copy-Item -LiteralPath $commonSdkManifest -Destination $productSdkManifest + } $buildInputs = @(& git -C $roots[$role] ls-files '*.props' '*.targets' 'global.json' '*NuGet.config' '*.csproj' '*packages.lock.json') if ($LASTEXITCODE -ne 0) { throw 'Could not enumerate product build inputs.' } @($buildInputs | ForEach-Object { @@ -83,6 +98,7 @@ foreach ($definition in @(Get-PerfPairSchedule)) { } [ordered]@{ schemaVersion = 1 + sdkPolicy = $(if ($UseHarnessSdk) { 'common-harness-sdk' } else { 'product-sdk' }) baseCommit = $commits.base headCommit = $commits.head harnessIdentity = $identity diff --git a/tests/CSharpDB.Benchmarks/scripts/Run-Perf-Guardrails.ps1 b/tests/CSharpDB.Benchmarks/scripts/Run-Perf-Guardrails.ps1 index 4adfc666..cefe64c3 100644 --- a/tests/CSharpDB.Benchmarks/scripts/Run-Perf-Guardrails.ps1 +++ b/tests/CSharpDB.Benchmarks/scripts/Run-Perf-Guardrails.ps1 @@ -345,7 +345,7 @@ $scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path $benchDir = (Resolve-Path (Join-Path $scriptDir "..")).Path $repoRoot = (Resolve-Path (Join-Path $benchDir "..\\..")).Path $benchmarkProject = Join-Path $benchDir "CSharpDB.Benchmarks.csproj" -$benchResultsDir = Join-Path $benchDir ("bin/{0}/net10.0/results" -f $Configuration) +$benchResultsDir = Join-Path $benchDir ("bin/{0}/net11.0/results" -f $Configuration) $compareScript = Join-Path $scriptDir "Compare-Baseline.ps1" $reportPath = Join-Path $benchDir "results\\perf-guardrails-last.md" $runLogsDir = Join-Path $benchDir "results\\perf-guardrails-run-logs" diff --git a/tests/CSharpDB.Benchmarks/scripts/Test-LocalDurablePerformance.ps1 b/tests/CSharpDB.Benchmarks/scripts/Test-LocalDurablePerformance.ps1 index 9c0ff025..9966964e 100644 --- a/tests/CSharpDB.Benchmarks/scripts/Test-LocalDurablePerformance.ps1 +++ b/tests/CSharpDB.Benchmarks/scripts/Test-LocalDurablePerformance.ps1 @@ -8,6 +8,8 @@ param( [string] $OutputPath = '', + [switch] $UseHarnessSdk, + [ValidateSet(3, 5, 7, 9)] [int] $RepeatCount = 3, @@ -950,6 +952,9 @@ try { $parameters.ProhibitedExternalProcessNames = $ProhibitedExternalProcessNames } + if ($UseHarnessSdk) { + $parameters.UseHarnessSdk = $true + } if (-not [string]::IsNullOrWhiteSpace($previousCommit)) { $parameters.PreviousRef = $previousCommit } diff --git a/tests/CSharpDB.Benchmarks/scripts/Test-PerfGuardrails.ps1 b/tests/CSharpDB.Benchmarks/scripts/Test-PerfGuardrails.ps1 index ebf6d0d0..04589bea 100644 --- a/tests/CSharpDB.Benchmarks/scripts/Test-PerfGuardrails.ps1 +++ b/tests/CSharpDB.Benchmarks/scripts/Test-PerfGuardrails.ps1 @@ -357,7 +357,7 @@ try { $plan | ConvertTo-Json -Depth 8 | Set-Content $path Assert-Fails { & (Join-Path $scriptDir 'Compare-PairedPerfGuardrails.ps1') -OutputPath $root -NoFailOnRegression } 'Both balanced execution orders' } - Test-Case 'Real paired driver synchronizes harness, captures ABBA, and rejects zero execution' { + Test-Case 'Real paired driver records common SDK inputs, captures ABBA, and rejects zero execution' { $root = Join-Path $testRoot 'driver' foreach ($role in @('base', 'head')) { $repo = Join-Path $root $role @@ -365,6 +365,7 @@ try { New-Item -ItemType Directory -Path $bench -Force | Out-Null '// obsolete synthetic harness' | Set-Content (Join-Path $bench 'Program.cs') '' | Set-Content (Join-Path $bench 'CSharpDB.Benchmarks.csproj') + '{"sdk":{"version":"10.0.401"}}' | Set-Content (Join-Path $repo 'global.json') @('**/bin/', '**/obj/', '**/results/', '**/BenchmarkDotNet.Artifacts/') | Set-Content (Join-Path $repo '.gitignore') & git -C $repo init --quiet & git -C $repo add . @@ -395,13 +396,18 @@ try { @('Method,Mean,Allocated', 'A,100 ns,100 B') | Set-Content (Join-Path $artifacts $csvName) return "Global total time: 00:00:01, executed benchmarks: $(if ($global:PerfFixtureZero) { 0 } else { 1 })" } - $artifacts = Join-Path $bench 'bin/Release/net10.0/results' + $artifacts = Join-Path $bench 'bin/Release/net11.0/results' New-Item -ItemType Directory -Path $artifacts -Force | Out-Null @('Method,Mean,Allocated', 'A,100 ns,100 B') | Set-Content (Join-Path $artifacts ('suite-' + [Guid]::NewGuid().ToString('N') + '.csv')) return 'Synthetic suite executed' } try { - & (Join-Path $scriptDir 'Run-PairedPerfGuardrails.ps1') -BaseRoot (Join-Path $root 'base') -HeadRoot (Join-Path $root 'head') -OutputPath (Join-Path $root 'evidence') -ThresholdsPath (Join-Path $root 'policy.json') -NoFailOnRegression + & (Join-Path $scriptDir 'Run-PairedPerfGuardrails.ps1') -BaseRoot (Join-Path $root 'base') -HeadRoot (Join-Path $root 'head') -OutputPath (Join-Path $root 'evidence') -ThresholdsPath (Join-Path $root 'policy.json') -UseHarnessSdk -NoFailOnRegression + $commonSdk = Get-Content (Join-Path $root 'evidence/common-global.json') -Raw + foreach ($role in @('base', 'head')) { + if ((Get-Content (Join-Path $root "$role/global.json") -Raw) -cne $commonSdk) { throw 'Product build did not use the recorded common SDK manifest.' } + if ((Get-Content (Join-Path $root "evidence/$role-original-global.json") -Raw) -notmatch '10.0.401') { throw 'Original SDK provenance was lost.' } + } $roles = @($global:PerfFixtureInvocations | ForEach-Object { if ($_ -like '*driver\base\*' -or $_ -like '*driver/base/*') { 'base' } else { 'head' } }) if (($roles -join ',') -ne 'base,base,head,head,head,head,base,base') { throw "Incorrect real driver execution order: $($roles -join ',')" } if (($global:PerfFixtureBuildDirectories -join ',') -cne (@((Join-Path $root 'base'), (Join-Path $root 'head')) -join ',')) { throw 'Product builds did not select SDKs from their own directories.' } @@ -409,6 +415,7 @@ try { if (($global:PerfFixtureRuntimeDirectories -join ',') -cne ($captureDirectories -join ',')) { throw 'Runtime probes did not use each product SDK context.' } if (($global:PerfFixtureSdkDirectories -join ',') -cne ($captureDirectories -join ',')) { throw 'Fingerprint SDK capture did not use each product SDK context.' } $plan = Get-Content (Join-Path $root 'evidence/paired.json') -Raw | ConvertFrom-Json + if ($plan.sdkPolicy -cne 'common-harness-sdk') { throw 'Common SDK policy was not recorded.' } if ($plan.pairs.Count -ne 2) { throw 'Driver did not persist both orders.' } $global:PerfFixtureZero = $true $runner = Join-Path $root 'base/tests/CSharpDB.Benchmarks/scripts/Run-Perf-Guardrails.ps1' diff --git a/tests/CSharpDB.Benchmarks/scripts/Test-PreviousReleasePerformance.ps1 b/tests/CSharpDB.Benchmarks/scripts/Test-PreviousReleasePerformance.ps1 index b17bdc8b..cb76d45e 100644 --- a/tests/CSharpDB.Benchmarks/scripts/Test-PreviousReleasePerformance.ps1 +++ b/tests/CSharpDB.Benchmarks/scripts/Test-PreviousReleasePerformance.ps1 @@ -68,6 +68,8 @@ param( [switch] $PreflightOnly, + [switch] $UseHarnessSdk, + [switch] $BuildOnly ) @@ -3465,6 +3467,23 @@ try { } $candidateAdded = $true + if ($UseHarnessSdk) { + # A synchronized candidate harness may target a framework newer than + # the historical product's SDK supports. Preserve that SDK provenance, + # then capture effective build inputs after selecting the common SDK. + $commonSdkPath = Join-Path $logRoot 'common-global.json' + Copy-Item -LiteralPath (Join-Path $candidateWorktree 'global.json') -Destination $commonSdkPath + foreach ($sdkWorktree in @($baselineWorktree, $candidateWorktree)) { + $sdkLabel = if ($sdkWorktree -eq $baselineWorktree) { 'previous' } else { 'candidate' } + $sdkPath = Join-Path $sdkWorktree 'global.json' + if (Test-Path -LiteralPath $sdkPath -PathType Leaf) { + Copy-Item -LiteralPath $sdkPath -Destination (Join-Path $logRoot "$sdkLabel-original-global.json") + } + Copy-Item -LiteralPath $commonSdkPath -Destination $sdkPath + } + Add-Content -LiteralPath $preflightPath -Value '- SDK policy: common candidate/harness SDK; original SDK manifests are retained in logs.' + } + $previousBuildInputsIdentity = Write-EffectiveBuildInputManifest ` -SourceRoot $baselineWorktree ` -Commit $previousCommit ` @@ -3556,6 +3575,7 @@ try { '- Result: **PASS**', '- Mode: build-only; benchmark measurements were not executed', '- MSBuild release-core profile: ``CSharpDbReleaseCoreOnly=true``', + "- SDK selection: $(if ($UseHarnessSdk) { 'common candidate/harness SDK' } else { 'per-revision SDK' })", "- Previous ref: ``$PreviousRef`` (``$previousCommit``)", "- Candidate ref: ``$CandidateRef`` (``$candidateCommit``)", "- Candidate benchmark harness SHA-256: ``$candidateHarnessIdentity``", diff --git a/tests/CSharpDB.Cli.Tests/CSharpDB.Cli.Tests.csproj b/tests/CSharpDB.Cli.Tests/CSharpDB.Cli.Tests.csproj index 7a96c0af..7a07aa88 100644 --- a/tests/CSharpDB.Cli.Tests/CSharpDB.Cli.Tests.csproj +++ b/tests/CSharpDB.Cli.Tests/CSharpDB.Cli.Tests.csproj @@ -4,7 +4,7 @@ Exe - net10.0 + net11.0 enable enable false diff --git a/tests/CSharpDB.Cli.Tests/MigrationReleasePackagingTests.cs b/tests/CSharpDB.Cli.Tests/MigrationReleasePackagingTests.cs index ec8d790c..5fc7a2d0 100644 --- a/tests/CSharpDB.Cli.Tests/MigrationReleasePackagingTests.cs +++ b/tests/CSharpDB.Cli.Tests/MigrationReleasePackagingTests.cs @@ -122,7 +122,7 @@ public void PublishScript_ComposesAuditedFrameworkDependentBundles() StringComparison.Ordinal); Assert.Contains( - "Assert-DotNetTenRuntimeConfig", + "Assert-DotNetElevenRuntimeConfig", releaseScript, StringComparison.Ordinal); Assert.Contains( @@ -130,7 +130,7 @@ public void PublishScript_ComposesAuditedFrameworkDependentBundles() releaseScript, StringComparison.Ordinal); Assert.Contains( - "framework-dependent (.NET 10 runtime required)", + "framework-dependent (.NET 11 runtime required)", releaseScript, StringComparison.Ordinal); Assert.DoesNotContain( @@ -547,7 +547,7 @@ public void Installers_DefaultToNoOverwriteAndPreserveAdapterLayout() foreach (string installer in new[] { windows, posix }) { Assert.Contains( - ".NET 10 runtime", + ".NET 11 runtime", installer, StringComparison.Ordinal); Assert.Contains( diff --git a/tests/CSharpDB.Cli.Tests/MySqlWorkerClientTests.cs b/tests/CSharpDB.Cli.Tests/MySqlWorkerClientTests.cs index 1e86134e..74df10ee 100644 --- a/tests/CSharpDB.Cli.Tests/MySqlWorkerClientTests.cs +++ b/tests/CSharpDB.Cli.Tests/MySqlWorkerClientTests.cs @@ -832,7 +832,7 @@ private static string FindHarnessDirectory() "CSharpDB.Migration.MySql.WorkerHarness", "bin", BuildConfiguration, - "net10.0"); + "net11.0"); string appHost = Path.Combine( candidate, OperatingSystem.IsWindows() diff --git a/tests/CSharpDB.Cli.Tests/SqlServerWorkerClientTests.cs b/tests/CSharpDB.Cli.Tests/SqlServerWorkerClientTests.cs index 88af22b8..e037b744 100644 --- a/tests/CSharpDB.Cli.Tests/SqlServerWorkerClientTests.cs +++ b/tests/CSharpDB.Cli.Tests/SqlServerWorkerClientTests.cs @@ -1292,7 +1292,7 @@ private static string FindHarnessDirectory() "CSharpDB.Migration.SqlServer.WorkerHarness", "bin", BuildConfiguration, - "net10.0"); + "net11.0"); string appHost = Path.Combine( candidate, OperatingSystem.IsWindows() diff --git a/tests/CSharpDB.CodeModules.Tests/CSharpDB.CodeModules.Tests.csproj b/tests/CSharpDB.CodeModules.Tests/CSharpDB.CodeModules.Tests.csproj index aec389db..dd986538 100644 --- a/tests/CSharpDB.CodeModules.Tests/CSharpDB.CodeModules.Tests.csproj +++ b/tests/CSharpDB.CodeModules.Tests/CSharpDB.CodeModules.Tests.csproj @@ -4,7 +4,7 @@ Exe - net10.0 + net11.0 enable enable false diff --git a/tests/CSharpDB.Daemon.Tests/CSharpDB.Daemon.Tests.csproj b/tests/CSharpDB.Daemon.Tests/CSharpDB.Daemon.Tests.csproj index ba5c5638..9e9193a4 100644 --- a/tests/CSharpDB.Daemon.Tests/CSharpDB.Daemon.Tests.csproj +++ b/tests/CSharpDB.Daemon.Tests/CSharpDB.Daemon.Tests.csproj @@ -9,7 +9,7 @@ Exe - net10.0 + net11.0 enable enable false @@ -22,7 +22,7 @@ - + diff --git a/tests/CSharpDB.Daemon.Tests/PreviousReleasePairedRunnerScriptTests.cs b/tests/CSharpDB.Daemon.Tests/PreviousReleasePairedRunnerScriptTests.cs index 9a6be720..f1cba443 100644 --- a/tests/CSharpDB.Daemon.Tests/PreviousReleasePairedRunnerScriptTests.cs +++ b/tests/CSharpDB.Daemon.Tests/PreviousReleasePairedRunnerScriptTests.cs @@ -582,7 +582,7 @@ public async Task SharedArtifactScenarioRunner_UsesOneCandidateArtifactForBothLa "CSharpDB.Benchmarks", "bin", "Release", - "net10.0", + "net11.0", "CSharpDB.Benchmarks.dll")), invokedArtifact); @@ -794,7 +794,7 @@ public async Task PairedRunner_UsesRevisionSpecificDirectArtifactsAndProducesAdj "CSharpDB.Benchmarks", "bin", "Release", - "net10.0", + "net11.0", "CSharpDB.Benchmarks.dll")); string candidateArtifact = Path.GetFullPath(Path.Combine( evidence, @@ -803,7 +803,7 @@ public async Task PairedRunner_UsesRevisionSpecificDirectArtifactsAndProducesAdj "CSharpDB.Benchmarks", "bin", "Release", - "net10.0", + "net11.0", "CSharpDB.Benchmarks.dll")); string previousArtifactHash = GetFakeArtifactHash("baseline-source"); string candidateArtifactHash = GetFakeArtifactHash("candidate-source"); @@ -1519,7 +1519,7 @@ public async Task PairedRunner_RejectsDependencyChangedBeforeInvocation() "CSharpDB.Benchmarks", "bin", "Release", - "net10.0", + "net11.0", "CSharpDB.Fake.Dependency.dll")); Dictionary environment = new() { @@ -1995,7 +1995,7 @@ exit 0 if ($command -eq 'build') { $artifactRoot = Join-Path ` (Get-Location).Path ` - 'tests/CSharpDB.Benchmarks/bin/Release/net10.0' + 'tests/CSharpDB.Benchmarks/bin/Release/net11.0' New-Item -ItemType Directory -Path $artifactRoot -Force | Out-Null [IO.File]::WriteAllText( (Join-Path $artifactRoot 'CSharpDB.Benchmarks.dll'), @@ -2192,7 +2192,7 @@ exit 1 else { Join-Path ` (Get-Location).Path ` - 'tests/CSharpDB.Benchmarks/bin/Release/net10.0/results' + 'tests/CSharpDB.Benchmarks/bin/Release/net11.0/results' } New-Item -ItemType Directory -Path $resultRoot -Force | Out-Null $resultPath = Join-Path ` diff --git a/tests/CSharpDB.Daemon.Tests/PreviousReleasePerformanceScriptTests.cs b/tests/CSharpDB.Daemon.Tests/PreviousReleasePerformanceScriptTests.cs index 2ff1ef1b..20d26d77 100644 --- a/tests/CSharpDB.Daemon.Tests/PreviousReleasePerformanceScriptTests.cs +++ b/tests/CSharpDB.Daemon.Tests/PreviousReleasePerformanceScriptTests.cs @@ -1,5 +1,6 @@ using System.Diagnostics; using System.Globalization; +using System.Security.Cryptography; namespace CSharpDB.Daemon.Tests; @@ -966,6 +967,7 @@ function Get-MsiInstallerTransactionEvents { [string] $OutputPath = '', [int] $QualificationPass = 1, [switch] $Paired, + [switch] $UseHarnessSdk, [string[]] $SuiteName = @(), [int] $RepeatCount = 3, [int] $PostBuildQuiescenceSeconds = 0, @@ -984,6 +986,9 @@ function Get-MsiInstallerTransactionEvents { [string] $ProhibitedExternalProcessNames = '') $ErrorActionPreference = 'Stop' + if ($env:FAKE_REQUIRE_COMMON_SDK -eq '1' -and -not $UseHarnessSdk) { + throw 'The local wrapper did not forward the common SDK option.' + } New-Item -ItemType Directory -Path $OutputPath -Force | Out-Null $logRoot = Join-Path $OutputPath 'logs' New-Item -ItemType Directory -Path $logRoot -Force | Out-Null @@ -1120,6 +1125,7 @@ @echo off new Dictionary { ["FAKE_PREVIOUS_COMMIT"] = previousCommit, + ["FAKE_REQUIRE_COMMON_SDK"] = "1", ["FAKE_LOCAL_DURABLE_LOG"] = successLog, ["FAKE_GH_LOG"] = githubLog, ["FAKE_PENDING_FILE_RENAMES"] = "stable-delete", @@ -1136,6 +1142,7 @@ @echo off "HEAD", "-OutputPath", successEvidence, + "-UseHarnessSdk", "-ConfirmDedicatedFixedSsd", "-GitHubRepository", "example/csharpdb"); @@ -1839,6 +1846,8 @@ public async Task Wrapper_ExecutesInterleavedSuitesAndRejectsDuplicateMedians() "internal static class Program { private static void Main() { } }"); string trackedFile = Path.Combine(sourceRoot, "release.txt"); File.WriteAllText(trackedFile, "previous"); + string sdkManifest = Path.Combine(sourceRoot, "global.json"); + File.WriteAllText(sdkManifest, """{"sdk":{"version":"10.0.203"}}"""); await AssertProcessSucceeded("git", "-C", sourceRoot, "init"); await AssertProcessSucceeded("git", "-C", sourceRoot, "config", "user.email", "test@example.invalid"); @@ -1848,7 +1857,8 @@ public async Task Wrapper_ExecutesInterleavedSuitesAndRejectsDuplicateMedians() await AssertProcessSucceeded("git", "-C", sourceRoot, "commit", "-m", "previous release"); await AssertProcessSucceeded("git", "-C", sourceRoot, "tag", "v4.3.0"); File.WriteAllText(trackedFile, "candidate"); - await AssertProcessSucceeded("git", "-C", sourceRoot, "add", "release.txt"); + File.WriteAllText(sdkManifest, """{"sdk":{"version":"11.0.100"}}"""); + await AssertProcessSucceeded("git", "-C", sourceRoot, "add", "release.txt", "global.json"); await AssertProcessSucceeded("git", "-C", sourceRoot, "commit", "-m", "candidate"); await AssertProcessSucceeded("git", "-C", sourceRoot, "tag", "v4.4.0"); @@ -2042,6 +2052,7 @@ public async Task Wrapper_ExecutesInterleavedSuitesAndRejectsDuplicateMedians() "HEAD", "-OutputPath", buildOnlyEvidence, + "-UseHarnessSdk", "-BuildOnly"); Assert.True(buildOnly.ExitCode == 0, buildOnly.CombinedOutput); @@ -2061,6 +2072,24 @@ public async Task Wrapper_ExecutesInterleavedSuitesAndRejectsDuplicateMedians() "- Mode: build-only; benchmark measurements were not executed", buildOnlyReport); Assert.Contains("CSharpDbReleaseCoreOnly=true", buildOnlyReport); + Assert.Contains("- SDK selection: common candidate/harness SDK", buildOnlyReport); + Assert.Contains( + "common candidate/harness SDK", + File.ReadAllText(Path.Combine(buildOnlyEvidence, "previous-release-performance-preflight.md"))); + Assert.Contains("10.0.203", File.ReadAllText(Path.Combine( + buildOnlyEvidence, "logs", "previous-original-global.json"))); + Assert.Contains("11.0.100", File.ReadAllText(Path.Combine( + buildOnlyEvidence, "logs", "candidate-original-global.json"))); + string commonSdk = File.ReadAllText(Path.Combine(buildOnlyEvidence, "logs", "common-global.json")); + Assert.Contains("11.0.100", commonSdk); + string commonSdkHash = Convert.ToHexString(SHA256.HashData( + File.ReadAllBytes(Path.Combine(buildOnlyEvidence, "logs", "common-global.json")))).ToLowerInvariant(); + foreach (string revision in new[] { "previous", "candidate" }) + { + Assert.Contains( + commonSdkHash + " *global.json", + File.ReadAllText(Path.Combine(buildOnlyEvidence, "logs", revision + "-effective-build-inputs.sha256"))); + } Assert.False(Directory.Exists(Path.Combine( buildOnlyEvidence, "baseline-source"))); @@ -2288,7 +2317,7 @@ exit 1 $repeatCount = $CommandArgs[$repeatIndex + 1] $resultRoot = Join-Path ` (Get-Location).Path ` - 'tests/CSharpDB.Benchmarks/bin/Release/net10.0/results' + 'tests/CSharpDB.Benchmarks/bin/Release/net11.0/results' New-Item -ItemType Directory -Path $resultRoot -Force | Out-Null $runStamp = '20260731-120000' $header = 'Name,TotalOps,LatencySamples,ElapsedMs,OpsPerSec,P50,P90,P95,P99,P999,Min,Max,Mean,StdDev,ExtraInfo' diff --git a/tests/CSharpDB.Data.Tests/CSharpDB.Data.Tests.csproj b/tests/CSharpDB.Data.Tests/CSharpDB.Data.Tests.csproj index aa5df56d..59bb5fb0 100644 --- a/tests/CSharpDB.Data.Tests/CSharpDB.Data.Tests.csproj +++ b/tests/CSharpDB.Data.Tests/CSharpDB.Data.Tests.csproj @@ -1,10 +1,10 @@ - + Exe - net10.0 + net11.0 enable enable false @@ -18,7 +18,7 @@ - + diff --git a/tests/CSharpDB.Data.Tests/DataReaderTests.cs b/tests/CSharpDB.Data.Tests/DataReaderTests.cs index e7090315..b5dddc25 100644 --- a/tests/CSharpDB.Data.Tests/DataReaderTests.cs +++ b/tests/CSharpDB.Data.Tests/DataReaderTests.cs @@ -462,6 +462,48 @@ public async Task GetValues_FillsArray() Assert.Equal("Alice", values[1]); } + [Theory] + [InlineData(1)] + [InlineData(-1)] + public async Task GetDecimal_RejectsRealOverflowBeforePrecisionRounding(int sign) + { + double value = sign * Math.ScaleB(1d, 96); + using var command = _conn.CreateCommand(); + command.CommandText = "SELECT @value AS amount;"; + command.Parameters.Add(new CSharpDbParameter + { + ParameterName = "@value", + DbType = System.Data.DbType.Double, + Value = value, + }); + await using var reader = await command.ExecuteReaderAsync(Ct); + + Assert.True(await reader.ReadAsync(Ct)); + Assert.Equal(value, reader.GetDouble(0)); + Assert.Throws(() => reader.GetDecimal(0)); + } + + [Theory] + [InlineData(1)] + [InlineData(-1)] + public async Task GetDecimal_AcceptsRealNearestToDecimalRangeBoundary(int sign) + { + double value = sign * Math.BitDecrement(Math.ScaleB(1d, 96)); + using var command = _conn.CreateCommand(); + command.CommandText = "SELECT @value AS amount;"; + command.Parameters.Add(new CSharpDbParameter + { + ParameterName = "@value", + DbType = System.Data.DbType.Double, + Value = value, + }); + await using var reader = await command.ExecuteReaderAsync(Ct); + + Assert.True(await reader.ReadAsync(Ct)); + Assert.Equal(value, reader.GetDouble(0)); + Assert.Equal(sign * 79228162514264300000000000000m, reader.GetDecimal(0)); + } + [Fact] public async Task LogicalTypes_ControlMetadataAndClrMaterialization() { diff --git a/tests/CSharpDB.DataGen/CSharpDB.DataGen.csproj b/tests/CSharpDB.DataGen/CSharpDB.DataGen.csproj index fb1cfb05..66b78cde 100644 --- a/tests/CSharpDB.DataGen/CSharpDB.DataGen.csproj +++ b/tests/CSharpDB.DataGen/CSharpDB.DataGen.csproj @@ -2,7 +2,7 @@ Exe - net10.0 + net11.0 enable enable false diff --git a/tests/CSharpDB.DataGen/Specs/SqlSpecBuilder.cs b/tests/CSharpDB.DataGen/Specs/SqlSpecBuilder.cs index 3889ff18..3b3b5809 100644 --- a/tests/CSharpDB.DataGen/Specs/SqlSpecBuilder.cs +++ b/tests/CSharpDB.DataGen/Specs/SqlSpecBuilder.cs @@ -112,7 +112,7 @@ private static DbValue ConvertToDbValue(SqlColumnSpec column, object? value) }); if (type.StorageType == DbType.Blob && value is string text && type.Kind is not SqlTypeKind.Uuid) value = System.Text.Encoding.UTF8.GetBytes(text); - if (type.StorageType == DbType.Decimal && value is double number) value = (decimal)number; + if (type.StorageType == DbType.Decimal && value is double number) value = CSharpDbDecimalCodec.FromDouble(number); return CSharpDB.DataGeneration.GenerationValues.Assign(value, new ColumnDefinition { Name = column.Name, Type = type.StorageType, DeclaredType = type, diff --git a/tests/CSharpDB.DataGeneration.Tests/CSharpDB.DataGeneration.Tests.csproj b/tests/CSharpDB.DataGeneration.Tests/CSharpDB.DataGeneration.Tests.csproj index 8340ee87..98b29d27 100644 --- a/tests/CSharpDB.DataGeneration.Tests/CSharpDB.DataGeneration.Tests.csproj +++ b/tests/CSharpDB.DataGeneration.Tests/CSharpDB.DataGeneration.Tests.csproj @@ -2,7 +2,7 @@ Exe - net10.0 + net11.0 enable enable false diff --git a/tests/CSharpDB.DataPrivacy.Tests/CSharpDB.DataPrivacy.Tests.csproj b/tests/CSharpDB.DataPrivacy.Tests/CSharpDB.DataPrivacy.Tests.csproj index 8f9162c3..aa33143e 100644 --- a/tests/CSharpDB.DataPrivacy.Tests/CSharpDB.DataPrivacy.Tests.csproj +++ b/tests/CSharpDB.DataPrivacy.Tests/CSharpDB.DataPrivacy.Tests.csproj @@ -1,7 +1,7 @@ - Exenet10.0enableenablefalse + Exenet11.0enableenablefalse diff --git a/tests/CSharpDB.DevOps.Tests/CSharpDB.DevOps.Tests.csproj b/tests/CSharpDB.DevOps.Tests/CSharpDB.DevOps.Tests.csproj index 9ed64a9b..824f8650 100644 --- a/tests/CSharpDB.DevOps.Tests/CSharpDB.DevOps.Tests.csproj +++ b/tests/CSharpDB.DevOps.Tests/CSharpDB.DevOps.Tests.csproj @@ -3,7 +3,7 @@ - net10.0 + net11.0 enable enable false diff --git a/tests/CSharpDB.EntityFrameworkCore.Tests/CSharpDB.EntityFrameworkCore.Tests.csproj b/tests/CSharpDB.EntityFrameworkCore.Tests/CSharpDB.EntityFrameworkCore.Tests.csproj index 999fb669..78d14279 100644 --- a/tests/CSharpDB.EntityFrameworkCore.Tests/CSharpDB.EntityFrameworkCore.Tests.csproj +++ b/tests/CSharpDB.EntityFrameworkCore.Tests/CSharpDB.EntityFrameworkCore.Tests.csproj @@ -4,7 +4,7 @@ Exe - net10.0 + net11.0 enable enable false @@ -17,7 +17,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/tests/CSharpDB.EntityFrameworkCore.Tools.Fixtures/CSharpDB.EntityFrameworkCore.Tools.Fixtures.csproj b/tests/CSharpDB.EntityFrameworkCore.Tools.Fixtures/CSharpDB.EntityFrameworkCore.Tools.Fixtures.csproj index 0aec92f7..00debc0b 100644 --- a/tests/CSharpDB.EntityFrameworkCore.Tools.Fixtures/CSharpDB.EntityFrameworkCore.Tools.Fixtures.csproj +++ b/tests/CSharpDB.EntityFrameworkCore.Tools.Fixtures/CSharpDB.EntityFrameworkCore.Tools.Fixtures.csproj @@ -2,7 +2,7 @@ Exe - net10.0 + net11.0 enable enable false @@ -16,7 +16,7 @@ runtime; build; native; contentfiles; analyzers; buildtransitive - + diff --git a/tests/CSharpDB.EntityFrameworkCore.Tools.Tests/CSharpDB.EntityFrameworkCore.Tools.Tests.csproj b/tests/CSharpDB.EntityFrameworkCore.Tools.Tests/CSharpDB.EntityFrameworkCore.Tools.Tests.csproj index 32411852..9afb5c92 100644 --- a/tests/CSharpDB.EntityFrameworkCore.Tools.Tests/CSharpDB.EntityFrameworkCore.Tools.Tests.csproj +++ b/tests/CSharpDB.EntityFrameworkCore.Tools.Tests/CSharpDB.EntityFrameworkCore.Tools.Tests.csproj @@ -3,7 +3,7 @@ - net10.0 + net11.0 enable enable false diff --git a/tests/CSharpDB.ExtensionSandbox.Worker/CSharpDB.ExtensionSandbox.Worker.csproj b/tests/CSharpDB.ExtensionSandbox.Worker/CSharpDB.ExtensionSandbox.Worker.csproj index e1645b65..0cd7efe8 100644 --- a/tests/CSharpDB.ExtensionSandbox.Worker/CSharpDB.ExtensionSandbox.Worker.csproj +++ b/tests/CSharpDB.ExtensionSandbox.Worker/CSharpDB.ExtensionSandbox.Worker.csproj @@ -2,7 +2,7 @@ Exe - net10.0 + net11.0 enable enable false diff --git a/tests/CSharpDB.GeneratedCollections.TrimSmoke/CSharpDB.GeneratedCollections.TrimSmoke.csproj b/tests/CSharpDB.GeneratedCollections.TrimSmoke/CSharpDB.GeneratedCollections.TrimSmoke.csproj index 35d072ee..945a397e 100644 --- a/tests/CSharpDB.GeneratedCollections.TrimSmoke/CSharpDB.GeneratedCollections.TrimSmoke.csproj +++ b/tests/CSharpDB.GeneratedCollections.TrimSmoke/CSharpDB.GeneratedCollections.TrimSmoke.csproj @@ -2,7 +2,7 @@ Exe - net10.0 + net11.0 enable enable true diff --git a/tests/CSharpDB.GeneratedCollections.TrimSmoke/README.md b/tests/CSharpDB.GeneratedCollections.TrimSmoke/README.md index 2cc4feb2..1e8f6388 100644 --- a/tests/CSharpDB.GeneratedCollections.TrimSmoke/README.md +++ b/tests/CSharpDB.GeneratedCollections.TrimSmoke/README.md @@ -12,7 +12,7 @@ Run: ```powershell dotnet publish .\tests\CSharpDB.GeneratedCollections.TrimSmoke\CSharpDB.GeneratedCollections.TrimSmoke.csproj -c Release -r win-x64 --self-contained true -.\tests\CSharpDB.GeneratedCollections.TrimSmoke\bin\Release\net10.0\win-x64\publish\CSharpDB.GeneratedCollections.TrimSmoke.exe +.\tests\CSharpDB.GeneratedCollections.TrimSmoke\bin\Release\net11.0\win-x64\publish\CSharpDB.GeneratedCollections.TrimSmoke.exe ``` Optional NativeAOT probe: diff --git a/tests/CSharpDB.Mcp.Tests/CSharpDB.Mcp.Tests.csproj b/tests/CSharpDB.Mcp.Tests/CSharpDB.Mcp.Tests.csproj index d1b9bb1f..13a37b28 100644 --- a/tests/CSharpDB.Mcp.Tests/CSharpDB.Mcp.Tests.csproj +++ b/tests/CSharpDB.Mcp.Tests/CSharpDB.Mcp.Tests.csproj @@ -3,7 +3,7 @@ - net10.0 + net11.0 enable enable false diff --git a/tests/CSharpDB.Migration.Access.Tests/CSharpDB.Migration.Access.Tests.csproj b/tests/CSharpDB.Migration.Access.Tests/CSharpDB.Migration.Access.Tests.csproj index 96411c5e..727523f6 100644 --- a/tests/CSharpDB.Migration.Access.Tests/CSharpDB.Migration.Access.Tests.csproj +++ b/tests/CSharpDB.Migration.Access.Tests/CSharpDB.Migration.Access.Tests.csproj @@ -3,7 +3,7 @@ - net10.0 + net11.0 enable enable false diff --git a/tests/CSharpDB.Migration.Compatibility.Tests/CSharpDB.Migration.Compatibility.Tests.csproj b/tests/CSharpDB.Migration.Compatibility.Tests/CSharpDB.Migration.Compatibility.Tests.csproj index b1f8e0d4..b5f31f61 100644 --- a/tests/CSharpDB.Migration.Compatibility.Tests/CSharpDB.Migration.Compatibility.Tests.csproj +++ b/tests/CSharpDB.Migration.Compatibility.Tests/CSharpDB.Migration.Compatibility.Tests.csproj @@ -3,7 +3,7 @@ - net10.0 + net11.0 enable enable false diff --git a/tests/CSharpDB.Migration.CrashHarness/CSharpDB.Migration.CrashHarness.csproj b/tests/CSharpDB.Migration.CrashHarness/CSharpDB.Migration.CrashHarness.csproj index a768358b..ea95f182 100644 --- a/tests/CSharpDB.Migration.CrashHarness/CSharpDB.Migration.CrashHarness.csproj +++ b/tests/CSharpDB.Migration.CrashHarness/CSharpDB.Migration.CrashHarness.csproj @@ -2,7 +2,7 @@ Exe - net10.0 + net11.0 enable enable false diff --git a/tests/CSharpDB.Migration.DualRun.Tests/CSharpDB.Migration.DualRun.Tests.csproj b/tests/CSharpDB.Migration.DualRun.Tests/CSharpDB.Migration.DualRun.Tests.csproj index ac85dd29..92d238fd 100644 --- a/tests/CSharpDB.Migration.DualRun.Tests/CSharpDB.Migration.DualRun.Tests.csproj +++ b/tests/CSharpDB.Migration.DualRun.Tests/CSharpDB.Migration.DualRun.Tests.csproj @@ -3,7 +3,7 @@ - net10.0 + net11.0 enable enable false diff --git a/tests/CSharpDB.Migration.Files.Tests/CSharpDB.Migration.Files.Tests.csproj b/tests/CSharpDB.Migration.Files.Tests/CSharpDB.Migration.Files.Tests.csproj index 65493363..10efe720 100644 --- a/tests/CSharpDB.Migration.Files.Tests/CSharpDB.Migration.Files.Tests.csproj +++ b/tests/CSharpDB.Migration.Files.Tests/CSharpDB.Migration.Files.Tests.csproj @@ -3,7 +3,7 @@ - net10.0 + net11.0 enable enable false diff --git a/tests/CSharpDB.Migration.Files.Tests/CsvExportProcessCrashRecoveryTests.cs b/tests/CSharpDB.Migration.Files.Tests/CsvExportProcessCrashRecoveryTests.cs index be98feec..dd92b079 100644 --- a/tests/CSharpDB.Migration.Files.Tests/CsvExportProcessCrashRecoveryTests.cs +++ b/tests/CSharpDB.Migration.Files.Tests/CsvExportProcessCrashRecoveryTests.cs @@ -1093,7 +1093,7 @@ private static string FindCrashHarnessAssembly() "CSharpDB.Migration.CrashHarness", "bin", BuildConfiguration, - "net10.0", + "net11.0", "CSharpDB.Migration.CrashHarness.dll"); if (File.Exists(candidate)) return candidate; diff --git a/tests/CSharpDB.Migration.Files.Tests/JsonExportProcessCrashRecoveryTests.cs b/tests/CSharpDB.Migration.Files.Tests/JsonExportProcessCrashRecoveryTests.cs index 98c0d3b8..d97fceb4 100644 --- a/tests/CSharpDB.Migration.Files.Tests/JsonExportProcessCrashRecoveryTests.cs +++ b/tests/CSharpDB.Migration.Files.Tests/JsonExportProcessCrashRecoveryTests.cs @@ -784,7 +784,7 @@ private static string FindCrashHarnessAssembly() "CSharpDB.Migration.CrashHarness", "bin", BuildConfiguration, - "net10.0", + "net11.0", "CSharpDB.Migration.CrashHarness.dll"); if (File.Exists(candidate)) return candidate; diff --git a/tests/CSharpDB.Migration.Files.Tests/JsonSnapshotPackageProcessTests.cs b/tests/CSharpDB.Migration.Files.Tests/JsonSnapshotPackageProcessTests.cs index 0b5cc637..489ffe0f 100644 --- a/tests/CSharpDB.Migration.Files.Tests/JsonSnapshotPackageProcessTests.cs +++ b/tests/CSharpDB.Migration.Files.Tests/JsonSnapshotPackageProcessTests.cs @@ -380,7 +380,7 @@ private static string FindCrashHarnessAssembly() "CSharpDB.Migration.CrashHarness", "bin", BuildConfiguration, - "net10.0", + "net11.0", "CSharpDB.Migration.CrashHarness.dll"); if (File.Exists(candidate)) return candidate; diff --git a/tests/CSharpDB.Migration.Files.Tests/JsonTypedSnapshotPackageProcessTests.cs b/tests/CSharpDB.Migration.Files.Tests/JsonTypedSnapshotPackageProcessTests.cs index 93cdfeda..2ea0da41 100644 --- a/tests/CSharpDB.Migration.Files.Tests/JsonTypedSnapshotPackageProcessTests.cs +++ b/tests/CSharpDB.Migration.Files.Tests/JsonTypedSnapshotPackageProcessTests.cs @@ -404,7 +404,7 @@ private static string FindCrashHarnessAssembly() "CSharpDB.Migration.CrashHarness", "bin", BuildConfiguration, - "net10.0", + "net11.0", "CSharpDB.Migration.CrashHarness.dll"); if (File.Exists(candidate)) return candidate; diff --git a/tests/CSharpDB.Migration.LiteDb.Tests/CSharpDB.Migration.LiteDb.Tests.csproj b/tests/CSharpDB.Migration.LiteDb.Tests/CSharpDB.Migration.LiteDb.Tests.csproj index e36bd11a..ef3be2f1 100644 --- a/tests/CSharpDB.Migration.LiteDb.Tests/CSharpDB.Migration.LiteDb.Tests.csproj +++ b/tests/CSharpDB.Migration.LiteDb.Tests/CSharpDB.Migration.LiteDb.Tests.csproj @@ -3,7 +3,7 @@ - net10.0 + net11.0 enable enable false diff --git a/tests/CSharpDB.Migration.MySql.Tests/CSharpDB.Migration.MySql.Tests.csproj b/tests/CSharpDB.Migration.MySql.Tests/CSharpDB.Migration.MySql.Tests.csproj index d71f4e37..02afe196 100644 --- a/tests/CSharpDB.Migration.MySql.Tests/CSharpDB.Migration.MySql.Tests.csproj +++ b/tests/CSharpDB.Migration.MySql.Tests/CSharpDB.Migration.MySql.Tests.csproj @@ -3,7 +3,7 @@ - net10.0 + net11.0 enable enable false diff --git a/tests/CSharpDB.Migration.MySql.WorkerHarness/CSharpDB.Migration.MySql.WorkerHarness.csproj b/tests/CSharpDB.Migration.MySql.WorkerHarness/CSharpDB.Migration.MySql.WorkerHarness.csproj index 4bd22265..09ae4dcc 100644 --- a/tests/CSharpDB.Migration.MySql.WorkerHarness/CSharpDB.Migration.MySql.WorkerHarness.csproj +++ b/tests/CSharpDB.Migration.MySql.WorkerHarness/CSharpDB.Migration.MySql.WorkerHarness.csproj @@ -2,7 +2,7 @@ Exe - net10.0 + net11.0 enable enable csharpdb-migration-mysql-worker diff --git a/tests/CSharpDB.Migration.Retained.Tests/CSharpDB.Migration.Retained.Tests.csproj b/tests/CSharpDB.Migration.Retained.Tests/CSharpDB.Migration.Retained.Tests.csproj index 477d477d..759bac89 100644 --- a/tests/CSharpDB.Migration.Retained.Tests/CSharpDB.Migration.Retained.Tests.csproj +++ b/tests/CSharpDB.Migration.Retained.Tests/CSharpDB.Migration.Retained.Tests.csproj @@ -3,7 +3,7 @@ - net10.0 + net11.0 enable enable false diff --git a/tests/CSharpDB.Migration.SqlServer.Tests/CSharpDB.Migration.SqlServer.Tests.csproj b/tests/CSharpDB.Migration.SqlServer.Tests/CSharpDB.Migration.SqlServer.Tests.csproj index 63665f7a..0addbc2f 100644 --- a/tests/CSharpDB.Migration.SqlServer.Tests/CSharpDB.Migration.SqlServer.Tests.csproj +++ b/tests/CSharpDB.Migration.SqlServer.Tests/CSharpDB.Migration.SqlServer.Tests.csproj @@ -3,7 +3,7 @@ - net10.0 + net11.0 enable enable false diff --git a/tests/CSharpDB.Migration.SqlServer.WorkerHarness/CSharpDB.Migration.SqlServer.WorkerHarness.csproj b/tests/CSharpDB.Migration.SqlServer.WorkerHarness/CSharpDB.Migration.SqlServer.WorkerHarness.csproj index 8fc19958..453a2d13 100644 --- a/tests/CSharpDB.Migration.SqlServer.WorkerHarness/CSharpDB.Migration.SqlServer.WorkerHarness.csproj +++ b/tests/CSharpDB.Migration.SqlServer.WorkerHarness/CSharpDB.Migration.SqlServer.WorkerHarness.csproj @@ -2,7 +2,7 @@ Exe - net10.0 + net11.0 enable enable csharpdb-migration-sqlserver-worker diff --git a/tests/CSharpDB.Migration.Sqlite.Tests/CSharpDB.Migration.Sqlite.Tests.csproj b/tests/CSharpDB.Migration.Sqlite.Tests/CSharpDB.Migration.Sqlite.Tests.csproj index 2fab20fc..5ef2d77f 100644 --- a/tests/CSharpDB.Migration.Sqlite.Tests/CSharpDB.Migration.Sqlite.Tests.csproj +++ b/tests/CSharpDB.Migration.Sqlite.Tests/CSharpDB.Migration.Sqlite.Tests.csproj @@ -3,7 +3,7 @@ - net10.0 + net11.0 enable enable false diff --git a/tests/CSharpDB.Migration.Tests/CSharpDB.Migration.Tests.csproj b/tests/CSharpDB.Migration.Tests/CSharpDB.Migration.Tests.csproj index 63e0f9d0..6d16ed5d 100644 --- a/tests/CSharpDB.Migration.Tests/CSharpDB.Migration.Tests.csproj +++ b/tests/CSharpDB.Migration.Tests/CSharpDB.Migration.Tests.csproj @@ -3,7 +3,7 @@ - net10.0 + net11.0 enable enable false diff --git a/tests/CSharpDB.Migration.Tests/MigrationProcessCrashRecoveryTests.cs b/tests/CSharpDB.Migration.Tests/MigrationProcessCrashRecoveryTests.cs index 5e78e2a5..a8d683da 100644 --- a/tests/CSharpDB.Migration.Tests/MigrationProcessCrashRecoveryTests.cs +++ b/tests/CSharpDB.Migration.Tests/MigrationProcessCrashRecoveryTests.cs @@ -702,7 +702,7 @@ private static string FindCrashHarnessAssembly() "CSharpDB.Migration.CrashHarness", "bin", BuildConfiguration, - "net10.0", + "net11.0", "CSharpDB.Migration.CrashHarness.dll"); if (File.Exists(candidate)) return candidate; diff --git a/tests/CSharpDB.Native.ArchiveSmoke/CSharpDB.Native.ArchiveSmoke.csproj b/tests/CSharpDB.Native.ArchiveSmoke/CSharpDB.Native.ArchiveSmoke.csproj index 3898f17d..90738c8b 100644 --- a/tests/CSharpDB.Native.ArchiveSmoke/CSharpDB.Native.ArchiveSmoke.csproj +++ b/tests/CSharpDB.Native.ArchiveSmoke/CSharpDB.Native.ArchiveSmoke.csproj @@ -1,7 +1,7 @@ Exe - net10.0 + net11.0 enable enable true diff --git a/tests/CSharpDB.Native.ArchiveSmoke/README.md b/tests/CSharpDB.Native.ArchiveSmoke/README.md index f607002c..bb8725ad 100644 --- a/tests/CSharpDB.Native.ArchiveSmoke/README.md +++ b/tests/CSharpDB.Native.ArchiveSmoke/README.md @@ -11,7 +11,7 @@ Run it after publishing both projects for the current machine, for example: ```powershell dotnet publish src/CSharpDB.Native/CSharpDB.Native.csproj -c Release -r win-x64 -p:ILLinkTreatWarningsAsErrors=true -p:IlcTreatWarningsAsErrors=true dotnet publish tests/CSharpDB.Native.ArchiveSmoke/CSharpDB.Native.ArchiveSmoke.csproj -c Release -r win-x64 --self-contained true -p:PublishAot=true -o artifacts/native-archive-smoke/win-x64 -./artifacts/native-archive-smoke/win-x64/CSharpDB.Native.ArchiveSmoke.exe (Resolve-Path src/CSharpDB.Native/bin/Release/net10.0/win-x64/publish/CSharpDB.Native.dll) +./artifacts/native-archive-smoke/win-x64/CSharpDB.Native.ArchiveSmoke.exe (Resolve-Path src/CSharpDB.Native/bin/Release/net11.0/win-x64/publish/CSharpDB.Native.dll) ``` CI runs the corresponding `linux-x64`, `win-x64` and `osx-arm64` builds. The diff --git a/tests/CSharpDB.NetworkBenchmarks/CSharpDB.NetworkBenchmarks.csproj b/tests/CSharpDB.NetworkBenchmarks/CSharpDB.NetworkBenchmarks.csproj index 7cf958ee..9dd32caa 100644 --- a/tests/CSharpDB.NetworkBenchmarks/CSharpDB.NetworkBenchmarks.csproj +++ b/tests/CSharpDB.NetworkBenchmarks/CSharpDB.NetworkBenchmarks.csproj @@ -1,7 +1,7 @@ Exe - net10.0 + net11.0 enable enable false @@ -11,7 +11,7 @@ - + diff --git a/tests/CSharpDB.NetworkBenchmarks/README.md b/tests/CSharpDB.NetworkBenchmarks/README.md index 6508815a..89e34a81 100644 --- a/tests/CSharpDB.NetworkBenchmarks/README.md +++ b/tests/CSharpDB.NetworkBenchmarks/README.md @@ -43,7 +43,7 @@ Build once, then run the frozen executable from the repository root: ```powershell dotnet build tests/CSharpDB.NetworkBenchmarks/CSharpDB.NetworkBenchmarks.csproj -c Release -dotnet tests/CSharpDB.NetworkBenchmarks/bin/Release/net10.0/CSharpDB.NetworkBenchmarks.dll --output C:/benchmarks/network-pilot-new --iterations 2000 --open-iterations 300 --rounds 4 --settle-seconds 10 +dotnet tests/CSharpDB.NetworkBenchmarks/bin/Release/net11.0/CSharpDB.NetworkBenchmarks.dll --output C:/benchmarks/network-pilot-new --iterations 2000 --open-iterations 300 --rounds 4 --settle-seconds 10 ``` Choose a fresh output directory outside the repository for every run. The @@ -81,7 +81,7 @@ opens must send zero `GetInfo` RPCs; unpooled opens must send one each. All arms use the same one-row query, host, and fixed iteration count. ```powershell -dotnet tests/CSharpDB.NetworkBenchmarks/bin/Release/net10.0/CSharpDB.NetworkBenchmarks.dll --experiment pooling --output C:/benchmarks/pooling-pilot-new --iterations 1000 --rounds 6 --settle-seconds 10 +dotnet tests/CSharpDB.NetworkBenchmarks/bin/Release/net11.0/CSharpDB.NetworkBenchmarks.dll --experiment pooling --output C:/benchmarks/pooling-pilot-new --iterations 1000 --rounds 6 --settle-seconds 10 ``` Each arm settles for ten seconds before the six rounds. Round orders are @@ -107,7 +107,7 @@ gRPC-Web/HTTP/1.1 and Native gRPC/HTTP/2, giving 12 cases. Pooled cases use the same SDK-owned pool with `Max Pool Size=1` for each endpoint and mode. ```powershell -dotnet tests/CSharpDB.NetworkBenchmarks/bin/Release/net10.0/CSharpDB.NetworkBenchmarks.dll --experiment shared --output C:/benchmarks/shared-pool-new --iterations 1000 --open-iterations 100 --rounds 12 --settle-seconds 10 +dotnet tests/CSharpDB.NetworkBenchmarks/bin/Release/net11.0/CSharpDB.NetworkBenchmarks.dll --experiment shared --output C:/benchmarks/shared-pool-new --iterations 1000 --open-iterations 100 --rounds 12 --settle-seconds 10 ``` Reused/pooled cases settle for ten seconds; fresh-client cases settle with @@ -143,7 +143,7 @@ causal improvement. ## Persistent command session experiment ```powershell -dotnet tests/CSharpDB.NetworkBenchmarks/bin/Release/net10.0/CSharpDB.NetworkBenchmarks.dll --experiment session --output C:/benchmarks/session-new +dotnet tests/CSharpDB.NetworkBenchmarks/bin/Release/net11.0/CSharpDB.NetworkBenchmarks.dll --experiment session --output C:/benchmarks/session-new ``` This fixed C1 experiment compares pooled, reused SDK and ADO.NET calls over @@ -197,7 +197,7 @@ as an additive component of client latency. ### Separate client and daemon processes ```powershell -dotnet tests/CSharpDB.NetworkBenchmarks/bin/Release/net10.0/CSharpDB.NetworkBenchmarks.dll --experiment session-isolated --output C:/benchmarks/session-isolated-new +dotnet tests/CSharpDB.NetworkBenchmarks/bin/Release/net11.0/CSharpDB.NetworkBenchmarks.dll --experiment session-isolated --output C:/benchmarks/session-isolated-new ``` This is a separate deployment experiment: the parent runs SDK/ADO.NET and @@ -220,7 +220,7 @@ records the separate process IDs and server runtime. ### Eight concurrent pooled sessions ```powershell -dotnet tests/CSharpDB.NetworkBenchmarks/bin/Release/net10.0/CSharpDB.NetworkBenchmarks.dll --experiment session-c8 --output C:/benchmarks/session-c8-new +dotnet tests/CSharpDB.NetworkBenchmarks/bin/Release/net11.0/CSharpDB.NetworkBenchmarks.dll --experiment session-c8 --output C:/benchmarks/session-c8-new ``` This fixed C8 experiment runs eight workers against the same separate-process @@ -266,7 +266,7 @@ validation and must not be treated as exact memory savings. ### Complete pooled request lifecycle ```powershell -dotnet tests/CSharpDB.NetworkBenchmarks/bin/Release/net10.0/CSharpDB.NetworkBenchmarks.dll --experiment pooled-lifecycle-c8 --output C:/benchmarks/pooled-lifecycle-c8-new +dotnet tests/CSharpDB.NetworkBenchmarks/bin/Release/net11.0/CSharpDB.NetworkBenchmarks.dll --experiment pooled-lifecycle-c8 --output C:/benchmarks/pooled-lifecycle-c8-new ``` This diagnostic compares a held rental with a complete short-lived pooled diff --git a/tests/CSharpDB.Observability.Tests/CSharpDB.Observability.Tests.csproj b/tests/CSharpDB.Observability.Tests/CSharpDB.Observability.Tests.csproj index 4752f1be..6a9948bb 100644 --- a/tests/CSharpDB.Observability.Tests/CSharpDB.Observability.Tests.csproj +++ b/tests/CSharpDB.Observability.Tests/CSharpDB.Observability.Tests.csproj @@ -4,7 +4,7 @@ Exe - net10.0 + net11.0 enable enable false diff --git a/tests/CSharpDB.Observability.TrimSmoke/CSharpDB.Observability.TrimSmoke.csproj b/tests/CSharpDB.Observability.TrimSmoke/CSharpDB.Observability.TrimSmoke.csproj index 3edaab6f..32a0598a 100644 --- a/tests/CSharpDB.Observability.TrimSmoke/CSharpDB.Observability.TrimSmoke.csproj +++ b/tests/CSharpDB.Observability.TrimSmoke/CSharpDB.Observability.TrimSmoke.csproj @@ -2,7 +2,7 @@ Exe - net10.0 + net11.0 enable enable true diff --git a/tests/CSharpDB.Pipelines.Tests/CSharpDB.Pipelines.Tests.csproj b/tests/CSharpDB.Pipelines.Tests/CSharpDB.Pipelines.Tests.csproj index 120272d6..d55938af 100644 --- a/tests/CSharpDB.Pipelines.Tests/CSharpDB.Pipelines.Tests.csproj +++ b/tests/CSharpDB.Pipelines.Tests/CSharpDB.Pipelines.Tests.csproj @@ -4,7 +4,7 @@ Exe - net10.0 + net11.0 enable enable false diff --git a/tests/CSharpDB.Tests/CSharpDB.Tests.csproj b/tests/CSharpDB.Tests/CSharpDB.Tests.csproj index 602aa61d..990edfba 100644 --- a/tests/CSharpDB.Tests/CSharpDB.Tests.csproj +++ b/tests/CSharpDB.Tests/CSharpDB.Tests.csproj @@ -3,7 +3,7 @@ Exe - net10.0 + net11.0 enable enable false diff --git a/tests/CSharpDB.Tests/DecimalStorageTests.cs b/tests/CSharpDB.Tests/DecimalStorageTests.cs index 5bf239e0..8fb388f7 100644 --- a/tests/CSharpDB.Tests/DecimalStorageTests.cs +++ b/tests/CSharpDB.Tests/DecimalStorageTests.cs @@ -5,6 +5,78 @@ namespace CSharpDB.Tests; public sealed class DecimalStorageTests { + [Theory] + [InlineData(1.23, "1.23")] + [InlineData(42.42, "42.42")] + [InlineData(-0.1, "-0.1")] + [InlineData(1.2345678901234567, "1.23456789012346")] + [InlineData(1e-20, "0.00000000000000000001")] + public void RealToDecimal_UsesExplicitDecimalPrecision(double value, string expected) + { + decimal converted = CSharpDbDecimalCodec.FromDouble(value); + Assert.Equal(decimal.Parse(expected, System.Globalization.CultureInfo.InvariantCulture), converted); + } + + [Theory] + [InlineData(double.NaN)] + [InlineData(double.PositiveInfinity)] + [InlineData(double.NegativeInfinity)] + [InlineData(double.MaxValue)] + [InlineData(-double.MaxValue)] + public void RealToDecimal_RejectsNonFiniteOrOutOfRangeValues(double value) + => Assert.Throws(() => CSharpDbDecimalCodec.FromDouble(value)); + + [Theory] + [InlineData(1)] + [InlineData(-1)] + public void RealToDecimal_RejectsOverflowBeforePrecisionRounding(int sign) + { + double boundary = Math.ScaleB(1d, 96); + Assert.Throws(() => CSharpDbDecimalCodec.FromDouble(sign * boundary)); + Assert.Throws(() => CSharpDbDecimalCodec.FromDouble(sign * Math.BitIncrement(boundary))); + } + + [Theory] + [InlineData(1)] + [InlineData(-1)] + public void RealToDecimal_AcceptsNearestValueInsideDecimalRange(int sign) + { + double value = sign * Math.BitDecrement(Math.ScaleB(1d, 96)); + Assert.Equal(sign * 79228162514264300000000000000m, CSharpDbDecimalCodec.FromDouble(value)); + } + + [Fact] + public void SingleToDecimal_UsesExplicitDecimalPrecision() + => Assert.Equal(1.23m, CSharpDbDecimalCodec.FromSingle(1.23f)); + + [Theory] + [InlineData(float.NaN)] + [InlineData(float.PositiveInfinity)] + [InlineData(float.NegativeInfinity)] + [InlineData(float.MaxValue)] + [InlineData(-float.MaxValue)] + public void SingleToDecimal_RejectsNonFiniteOrOutOfRangeValues(float value) + => Assert.Throws(() => CSharpDbDecimalCodec.FromSingle(value)); + + [Theory] + [InlineData(1)] + [InlineData(-1)] + public void SingleToDecimal_RejectsOverflowBeforePrecisionRounding(int sign) + { + float boundary = MathF.ScaleB(1f, 96); + Assert.Throws(() => CSharpDbDecimalCodec.FromSingle(sign * boundary)); + Assert.Throws(() => CSharpDbDecimalCodec.FromSingle(sign * MathF.BitIncrement(boundary))); + } + + [Theory] + [InlineData(1)] + [InlineData(-1)] + public void SingleToDecimal_AcceptsNearestValueInsideDecimalRange(int sign) + { + float value = sign * MathF.BitDecrement(MathF.ScaleB(1f, 96)); + Assert.Equal(sign * 79228160000000000000000000000m, CSharpDbDecimalCodec.FromSingle(value)); + } + [Fact] public void DbValue_NormalizesDecimalCoefficientAndScale() { diff --git a/tests/CSharpDB.Tests/ExtensionSandbox/OutOfProcessCommandSandboxPrototype.cs b/tests/CSharpDB.Tests/ExtensionSandbox/OutOfProcessCommandSandboxPrototype.cs index 4fea4f47..13b6d2e3 100644 --- a/tests/CSharpDB.Tests/ExtensionSandbox/OutOfProcessCommandSandboxPrototype.cs +++ b/tests/CSharpDB.Tests/ExtensionSandbox/OutOfProcessCommandSandboxPrototype.cs @@ -83,7 +83,7 @@ private static string GetWorkerAssemblyPath() "CSharpDB.ExtensionSandbox.Worker", "bin", GetConfiguration(), - "net10.0", + "net11.0", "CSharpDB.ExtensionSandbox.Worker.dll"); private static string GetWorkerProjectPath() diff --git a/tests/CSharpDB.Tests/ProcessCrashDurabilityTests.cs b/tests/CSharpDB.Tests/ProcessCrashDurabilityTests.cs index e4883d0d..a4b4204e 100644 --- a/tests/CSharpDB.Tests/ProcessCrashDurabilityTests.cs +++ b/tests/CSharpDB.Tests/ProcessCrashDurabilityTests.cs @@ -240,7 +240,7 @@ private static bool HasBenchmarksBuildOutput(string benchmarksProjectPath) benchmarksProjectDirectory, "bin", BuildConfiguration, - "net10.0", + "net11.0", "CSharpDB.Benchmarks.dll"); return File.Exists(benchmarksAssemblyPath); diff --git a/tests/CSharpDB.Tests/SampleSmokeTests.cs b/tests/CSharpDB.Tests/SampleSmokeTests.cs index 82dbcca6..2822ab22 100644 --- a/tests/CSharpDB.Tests/SampleSmokeTests.cs +++ b/tests/CSharpDB.Tests/SampleSmokeTests.cs @@ -15,7 +15,7 @@ public sealed class SampleSmokeTests : IAsyncLifetime private const string SampleConfiguration = "Release"; #endif - private const string SampleTargetFramework = "net10.0"; + private const string SampleTargetFramework = "net11.0"; private static readonly TimeSpan SampleProcessTimeout = TimeSpan.FromMinutes(2); private readonly string _dbPath; diff --git a/tests/CSharpDB.Tests/TransactionCoordinatorTests.cs b/tests/CSharpDB.Tests/TransactionCoordinatorTests.cs index 1de7af76..da7d64cb 100644 --- a/tests/CSharpDB.Tests/TransactionCoordinatorTests.cs +++ b/tests/CSharpDB.Tests/TransactionCoordinatorTests.cs @@ -4,6 +4,32 @@ namespace CSharpDB.Tests; public sealed class TransactionCoordinatorTests { + [Theory] + [InlineData(false)] + [InlineData(true)] + public async Task CapturedCommitStateChange_Completes_WhenPendingCommitFinishesBeforeAwait(bool revert) + { + using var coordinator = new TransactionCoordinator(); + coordinator.RegisterExplicitTransaction(transactionId: 1, startVersion: 0); + TransactionCoordinator.PendingCommitReservation reservation = coordinator.ReservePendingCommit( + new uint[] { 1u }, Array.Empty()); + + Task stateChange = coordinator.CaptureCommitStateChangeTask(); + Assert.True(coordinator.TryGetPageLastWriteVersion(1u, out long pendingVersion)); + Assert.True(pendingVersion > coordinator.CurrentCommitVersion); + + // Reproduce the completion between observing a pending conflict and + // actually awaiting its signal, without another commit to wake us. + if (revert) + coordinator.RevertPendingCommit(reservation); + else + coordinator.PublishPendingCommit(reservation); + + Assert.True(stateChange.IsCompletedSuccessfully); + await stateChange.WaitAsync(TestContext.Current.CancellationToken); + Assert.False(coordinator.CaptureCommitStateChangeTask().IsCompleted); + } + [Fact] public void PublishPendingCommit_PrunesConflictState_WhenNoExplicitTransactionsRemain() { diff --git a/tests/CSharpDB.WalPrototype.CrashHarness/CSharpDB.WalPrototype.CrashHarness.csproj b/tests/CSharpDB.WalPrototype.CrashHarness/CSharpDB.WalPrototype.CrashHarness.csproj index a00f60bd..17b4dce5 100644 --- a/tests/CSharpDB.WalPrototype.CrashHarness/CSharpDB.WalPrototype.CrashHarness.csproj +++ b/tests/CSharpDB.WalPrototype.CrashHarness/CSharpDB.WalPrototype.CrashHarness.csproj @@ -1,7 +1,7 @@ Exe - net10.0 + net11.0 enable enable false diff --git a/tests/CSharpDB.WalPrototype.Tests/CSharpDB.WalPrototype.Tests.csproj b/tests/CSharpDB.WalPrototype.Tests/CSharpDB.WalPrototype.Tests.csproj index 045a28bb..4ac15ef1 100644 --- a/tests/CSharpDB.WalPrototype.Tests/CSharpDB.WalPrototype.Tests.csproj +++ b/tests/CSharpDB.WalPrototype.Tests/CSharpDB.WalPrototype.Tests.csproj @@ -2,7 +2,7 @@ Exe - net10.0 + net11.0 enable enable false @@ -15,7 +15,7 @@ - + diff --git a/tests/package-smoke/efcore-provider/CSharpDB.EntityFrameworkCore.PackageSmoke.csproj b/tests/package-smoke/efcore-provider/CSharpDB.EntityFrameworkCore.PackageSmoke.csproj index c83ef96c..2b9eba50 100644 --- a/tests/package-smoke/efcore-provider/CSharpDB.EntityFrameworkCore.PackageSmoke.csproj +++ b/tests/package-smoke/efcore-provider/CSharpDB.EntityFrameworkCore.PackageSmoke.csproj @@ -2,7 +2,7 @@ Exe - net10.0 + net11.0 enable enable true diff --git a/tests/package-smoke/observability/metapackage/CSharpDB.Observability.MetaPackageSmoke.csproj b/tests/package-smoke/observability/metapackage/CSharpDB.Observability.MetaPackageSmoke.csproj index 71c6e7d4..f35f346d 100644 --- a/tests/package-smoke/observability/metapackage/CSharpDB.Observability.MetaPackageSmoke.csproj +++ b/tests/package-smoke/observability/metapackage/CSharpDB.Observability.MetaPackageSmoke.csproj @@ -2,7 +2,7 @@ Exe - net10.0 + net11.0 enable enable true diff --git a/tests/package-smoke/observability/standalone/CSharpDB.Observability.PackageSmoke.csproj b/tests/package-smoke/observability/standalone/CSharpDB.Observability.PackageSmoke.csproj index b5999164..98b6fba1 100644 --- a/tests/package-smoke/observability/standalone/CSharpDB.Observability.PackageSmoke.csproj +++ b/tests/package-smoke/observability/standalone/CSharpDB.Observability.PackageSmoke.csproj @@ -2,7 +2,7 @@ Exe - net10.0 + net11.0 enable enable true diff --git a/vscode-extension/DEVELOPMENT.md b/vscode-extension/DEVELOPMENT.md index e8339381..70d7c045 100644 --- a/vscode-extension/DEVELOPMENT.md +++ b/vscode-extension/DEVELOPMENT.md @@ -9,7 +9,7 @@ The extension is implemented in [`vscode-extension/`](./), runs inside the VS Co - VS Code - Node.js 18 or later - npm -- .NET 10 SDK +- .NET 11 SDK - NativeAOT toolchain for your platform - Windows: Visual Studio or Build Tools with C++ workload - See [`src/CSharpDB.Native/README.md`](../src/CSharpDB.Native/README.md) for platform-specific details