Research results · Reproducible studies
Where did the saving come from?
Four STEP files saved 7,103 packed bytes between codec previews 0.2 and 0.3 with Brotli enabled in both. Follow the bytes file by file, or inspect a separate timing study in which the processor changes the result.
The daylight replay
475 of 11,993Lossless CAD · version 0.3
What changed in the third preview?
On four further STEP files, preview 0.2 used 452,008 packed bytes and 0.3 used 444,905 with optional Brotli enabled in both. That saved 7,103 bytes (1.57%). Using the built-in encoders alone saved 292 bytes. Each file restored byte for byte.
By default, the totals were 452,008 bytes for 0.2 and 451,716 for 0.3. The three NIST inputs are available for independent replication. The fourth input is private and only its byte counts are shown.
View the four files
| STEP file | 0.2 default | 0.3 default | 0.2 with Brotli | 0.3 with Brotli |
|---|---|---|---|---|
| nist_ctc_04_asme1_ap242-e1.stp | 89,633 | 89,633 | 89,633 | 89,374 |
| nist_ftc_07_asme1_ap242-e2.stp | 157,465 | 157,465 | 157,465 | 153,997 |
| nist_stc_07_asme1_ap242-e3.stp | 196,937 | 196,937 | 196,937 | 193,983 |
| Private engineering file | 7,973 | 7,681 | 7,973 | 7,551 |
The 15 previously studied files went from 3,047,965 to 3,033,999 bytes with optional Brotli (0.46% smaller), and from 3,050,071 to 3,042,023 with the defaults. The counts include framing and assume the recipient has a decoder. Trying extra encodings costs time.
Lossless CAD · version 0.2
How much smaller is the second preview?
Six open-bench hardware models. 953,704 original bytes. Preview 0.1 used 32,416 bytes. Preview 0.2 used 28,382 by default and 26,550 when allowed to try Brotli. The best of eight conventional encodings, selected per file, used 98,933 bytes.
Six public AP242 models. 10,292,540 original bytes. Preview 0.1 used 1,743,508 bytes. Preview 0.2 used 1,647,898 by default and 1,647,624 when allowed to try Brotli. The best of eight conventional encodings, selected per file, used 1,846,095 bytes.
Three held-out NIST models. 7,520,094 original bytes. Preview 0.1 used 1,428,936 bytes. Preview 0.2 used 1,373,791 by default and 1,373,791 when allowed to try Brotli. The best of eight conventional encodings, selected per file, used 1,457,000 bytes.
Compare all 15 individual files
| STEP file | Original | Best control | 0.1 | 0.2 default | 0.2 with Brotli |
|---|---|---|---|---|---|
| A1_RECT_cassette.step | 142,986 | 14,298 | 4,300 | 3,393 | 3,267 |
| A1_SQ_cassette.step | 142,870 | 14,329 | 4,212 | 3,433 | 3,286 |
| A2_DARK_reference.step | 113,091 | 12,441 | 4,996 | 4,601 | 4,237 |
| A2_RECT_reference.step | 128,572 | 13,920 | 5,476 | 5,037 | 4,642 |
| A2_SQ_reference.step | 128,567 | 13,914 | 5,476 | 5,029 | 4,646 |
| A3_installed_fixture.step | 297,618 | 30,031 | 7,956 | 6,889 | 6,472 |
| nist_ctc_01_asme1_ap242-e1.stp | 396,445 | 58,300 | 54,916 | 51,341 | 51,341 |
| nist_ctc_02_asme1_ap242-e2.stp | 1,981,342 | 264,552 | 246,352 | 227,877 | 227,877 |
| nist_ftc_08_asme1_ap242-e1-tg.stp | 2,120,356 | 343,100 | 314,184 | 290,333 | 290,333 |
| nist_ftc_08_asme1_ap242-e2.stp | 4,722,264 | 1,016,780 | 1,001,716 | 963,021 | 963,021 |
| nist_stc_06_asme1_ap242-e3.stp | 1,006,401 | 155,173 | 123,328 | 112,489 | 112,489 |
| MBDTest01_1.step | 65,732 | 8,190 | 3,012 | 2,837 | 2,563 |
| nist_ctc_03_asme1_ap242-e2.stp | 673,846 | 93,816 | 89,076 | 84,109 | 84,109 |
| nist_ftc_06_asme1_ap242-e2.stp | 1,971,192 | 288,492 | 278,780 | 269,097 | 269,097 |
| nist_stc_10_asme1_ap242-e2.stp | 4,875,056 | 1,074,692 | 1,061,080 | 1,020,585 | 1,020,585 |
All 15 files restored byte for byte with each preview 0.2 setting. Sizes include the complete file framing and assume the decoder is already installed. The six bench models share an exporter and several parts. The three held-out models give a separate check on how well the saving transfers. These results measure storage on STEP files. The aperture predictions and hardware timings below answer different questions.
Computational replay
Six windows, one weather year.
We replayed 11,993 direct-sun queries from an EnergyPlus example building under a Chicago weather year. We modeled each opening as a straight absorbing recess. Of those queries, 475 (3.96%) could safely skip integration. In the original paired M3 run, the CPU was 1.041× as fast and the Metal dispatch-through-completion ratio was 0.967×. Above 1 means faster.
R11’s replay stores the six geometries in 49 GX01 bytes. The largest sampled change in whole-opening transmission from decoding was 0.29534 percentage points. The host supplies placement and weather. Read the building replay in R11, section 9.4, or compare two outgoing receivers. This measures the solver operating on a published model. Real windows, glass, wall reflections and measured energy consumption would require separate tests.
Controlled change in workload
When does the GPU benefit?
A second M3 run kept 11,993 queries per panel and changed the fraction of whole solar-disk queries that qualified for skipping in controlled mixtures. At the original 3.96% share, the ratios were 1.036× on one CPU thread and 0.980× for Metal dispatch through completion. At 25% they were 1.298× and 1.063× respectively.
At 16% skipped, the middle half of paired GPU speed ratios favored culling in each of three runs, the first tested share to meet that criterion. That is a measured point on this workload and machine. A different GPU, scene or batch size can move it.
Independent file tests
Test a different CAD collection.
Six additional AP242 files covered three editions of the schema. Five came from a NIST manufacturing corpus and one from a FreeCAD example. Together the original files occupied 10,292,540 bytes. Preview 0.1 used 1,743,508 bytes, versus 2,729,226 for single-file STEP ZIP at Deflate level 9 and 1,846,095 for the smallest of eight conventional choices per file.
That is a 5.56% advantage over the stronger per-file comparison. All 54 restoration checks matched. Timing used the preview command with process startup and file I/O, while the ZIP control ran in memory. Those timings describe the two workflows. An Alpine Linux arm64 virtual machine on the same M3 restored all six Mac-packed files exactly and independently produced the same six frame hashes. Different processors and exporters are useful next replications.
Version 0.1 · other formats
Beyond STEP files.
In the first preview, 18 mixed local files packed to 31,345,625 bytes against 31,399,047 for the best conventional choice per file, a 0.17% difference. Six NOAA station-days took 128,902 bytes with XZ or 126,787 with optional Brotli, against 129,892 for the Zarr comparison. These separate first-preview studies illustrate how much the outcome depends on the file format.