Repository navigation
Open
Labels
area: coreNino.Core: the runtime, formatters, Reader and Writerkind: bugWrong behavior or wrong byteskind: perfSpeed, allocations or runner numbers
Milestone
Description
The runner A/B of feat/storage-layer against the previous main (run 44979508452) finds cases that are slower than main beyond the noise floor. This blocks #355's pull request into main.
Setup. Head is c6eff3b. Base is bcc00f8: main 9540e0b with LuminPack 2.0.0-rc.2, so that head's benchmark project builds; Nino's code is main's. The whole Nino suite, 3 rounds.
Floors (base against base) are clean:
| CPU | Geomean | Largest |
|---|---|---|
| Neoverse-N2 | 0.991 | |
| Xeon | 1.009 | 1.22 (bimodal Scattered) |
| EPYC 7763 | 0.998 | 1.20 |
| EPYC 9V74 | 0.995–1.002 | 1.33 |
Regressions
| Group | Cases | head ÷ base |
|---|---|---|
| (a) small string collections inside objects | SimpleClass, TolerantClass, Players, Articles, NullableObjects, ExternalClasses, and WorkloadTest's ProfileCache, LogBatch, EventStream and MediaContent serialize | 1.3–2.5 on every x64 runner; N2 1.15–1.57 |
(b) HashSet<int?> read |
CollectionsTest.NinoDeserializeNullableHashSetInts | 2.2–2.6 on all CPUs |
| (c) FixedStruct read | FixedSizeTest.NinoDeserializeFixedStruct | Xeon 2.6–3.0, EPYC 9V74 1.4–1.85 (AVX-512 machines only) |
| (d) NullableStruct read (NinoNullable) | NullableTest.NinoNullableDeserializeNullableStruct | EPYC 7763 only (AVX2, no AVX-512): 6.2–12.4 |
| (e) Scattered write | ScatteredTest.NinoSerializeScatteredItems | EPYC 1.6–2.3 |
Bisect so far (local Xeon, alternating processes)
Groups (a) and (b) reproduce locally: SimpleClass 1.37, Players 2.0, MediaContent 1.45, NullableHashSetInts 2.3.
- Up to and including feat(core)!: composites compose their block from their items #408: everything about 1.00.
- feat(core)!: one run cursor and one write loop per element kind #409 (one run cursor and one write loop per element kind): SimpleClass 1.18, Players 1.32.
- feat(core): strings and their pairs take the run loops through a cursor form #412 (strings take the run loops through a cursor form): Players 1.63.
- refactor(core): pairs are elements of the <T, TFormatter> loops #423 (pairs are elements of the
<T, TFormatter>loops): SimpleClass 2.64, and all of group (b). - perf(core): strings are a bottom-layer element kind with run kernels #427 (string run kernels): SimpleClass partly recovers to 1.35, MediaContent 1.54.
- perf(core): string runs read each length as they go #428 to perf(generator): flat classes go through Nino.Core's flat kernels #443: flat.
The cause is a fixed setup cost per run on entering the string and pair kernels. A top-level Dictionary<int, string> of one entry costs +30 ns (1.8×), while 1,000 elements are on par or faster.
Done means
- (a) and (b): the shared kernel's entry is cheap at every length (no separate small-collection path), shown in listings against main and in local numbers at 1, 3, 32 and 1,000 elements.
- (c) and (d) reproduced on matching hardware settings (
DOTNET_EnableAVX512F=0for the 7763), with the cause found and fixed. - (e) checked.
- A runner A/B of the fixed branch against main shows no case slower beyond the floor.
Part of #355.
Generated by Claude Code
Metadata
Metadata
Assignees
Labels
area: coreNino.Core: the runtime, formatters, Reader and Writerkind: bugWrong behavior or wrong byteskind: perfSpeed, allocations or runner numbers
Activity
JasonXuDeveloper commentedon Nov 22, 2026
Per-CPU summary of run 44979508452 from the 17 jobs finished so far (head min ÷ base min over 3 rounds; "> 1.05" counts the cases above 1.05):
The geomeans are on par. The regressions are the 40 to 60 cases above 1.05 that the floor lacks, listed in this issue's groups; each group repeats across jobs on the same CPU.
Progress on the fix (WIP on
claude/storage-fix, local, alternating, ÷ main):Dictionary<int, string>, 1 entryList<string>, 3 elementsHashSet<int?>read, 1,000 elementsWhat changed:
int?inHashTables.Hash.NinoRunandWriterby value, so their copies hit store-forwarding stalls.A whole-codebase boxing sweep with allocation guard tests now runs on
claude/storage-nobox.Generated by Claude Code
test(core): WIP: allocation tests over the benchmark's set, on .NET 1…