Artifact of "What Field Enumeration Costs to Compile in C++26"
Description
Code and data of the paper "What Field Enumeration Costs to Compile in C++26: Native Reflection, Structured-Binding Packs, Reflection Libraries and Hand-Written Serializers on GCC 16" (Denys Kachalenko, 2026).
The paper measures the compile-time cost of enumerating the fields of a struct for serialization with C++26 static reflection (P2996, P3394), structured-binding packs (P1061), Boost.PFR, reflect-cpp and Glaze (each on its pre-C++26 and C++26 path), X-macros and hand-written code, on GCC 16.2.0 with GCC 16.1.0 alongside.
Contents: the benchmark generator, the serializer arms, the measurement harness with its correctness and manipulation checks; the raw data of three measurement sessions (every compile with its full -ftime-report, the machine record and a copy of the measured code); the analysis, figure and LaTeX scripts; the paper source; and minimal reproducers of GCC Bugzilla PR128928. Boost.PFR, reflect-cpp and Glaze are not redistributed; their pinned versions are in Deps.json.
Every number and figure of the paper can be regenerated from the raw data without a compiler, with Python, NumPy and Matplotlib (see README.md). Code: MIT. Data and text: CC BY 4.0.
Files
CPP26FieldEnumerationCompileCostArtifact-1.0.0.zip
Additional details
Related works
- Is supplement to
- Software: https://github.com/DenysKachalenko/CPP26FieldEnumerationCompileCostArtifact/tree/v1.0.0 (URL)
- Preprint: arXiv:2611.30250 (arXiv)
Software
- Repository URL
- https://github.com/DenysKachalenko/CPP26FieldEnumerationCompileCostArtifact
- Programming language
- C++ , Python
- Development Status
- Inactive