Benchmark stabilization & charset-param workload support Major overhaul of the custom benchmark harness: - Per-serializer warmup, GC isolation, pilot discard, and CPU pinning for stable, reproducible results - Adaptive per-cell iteration targeting (~250ms/sample) and statistical reporting (min/max/stddev/CV) - CLI/menu support for single-cell A/B runs - Test data refactored to ASCII baselines with configurable charset suffix (6 presets), selectable via menu; charset recorded in all outputs - Markdown/console output now includes per-op µs, inter-sample range, CV warnings, and iteration counts - Documentation updated with rationale, methodology, and notes on reverted/experimental optimizations Enables reliable, cross-charset, release-grade performance measurement for AcBinary. |
||
|---|---|---|
| .. | ||
| Compression | ||
| GeneratedWriters | ||
| Serialization | ||
| TestModels | ||
| AyCode.Core.Tests.csproj | ||
| GlobalUsings.cs | ||
| JsonExtensionTests.cs | ||
| README.md | ||
| TestModelBase.cs | ||
README.md
AyCode.Core.Tests
MSTest unit tests for AyCode.Core serialization, compression, and utilities. Covers binary/JSON round-trips, reference handling, nullable types, source generator integration, and performance benchmarks.
Folder Structure
| Folder | Purpose |
|---|---|
Serialization/ |
Binary and JSON serialization tests (20+ test classes) |
Compression/ |
GZip compression tests |
TestModels/ |
Shared test entities, enums, data factories, SignalR infrastructure |
GeneratedWriters/ |
Hand-written source generator output examples |
Key Files (Root)
GlobalUsings.cs— Global MSTest using.TestModelBase.cs— Abstract base for test models with configuration support.JsonExtensionTests.cs— JSON extension method tests.
Dependencies
| Dependency | Purpose |
|---|---|
MSTest |
Test framework |
MessagePack |
Serialization comparison |
MemoryPack |
Serialization comparison |
MongoDB.Bson |
BSON comparison |