Published November 22, 2026 | Version 1.0.0

Artifact of "What Field Enumeration Costs to Compile in C++26"

Authors/Creators

  • 1. Independent researcher

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

Files (4.2 MB)

Name Size
md5:2fcbd455f1ed298a92c472642cf324ae
4.2 MB Preview Download

Additional details

Software