Skip to content

feat: import from/export results to ZON files#85

Open
WillLillis wants to merge 1 commit intoandrewrk:mainfrom
WillLillis:saved_baseline
Open

feat: import from/export results to ZON files#85
WillLillis wants to merge 1 commit intoandrewrk:mainfrom
WillLillis:saved_baseline

Conversation

@WillLillis
Copy link

@WillLillis WillLillis commented Mar 8, 2026

This PR is intended as an alternative to #67, using ZON rather than JSON. In addition to exporting results, this also allows poop to import previously exported results files.

To be concrete, the motivating use case for this change is that while trying to optimize a project, I find myself making many small changes and comparing that to some known baseline. Having to re-compute the baseline every time I want to test a change wastes time, as we're recomputing essentially the same data. Instead, the baseline can be computed once and re-used as a comparison multiple times. This also allows users to re-display results from previous runs by only providing a -i arg.

Sample usage:

image

I built and tested this locally with zig 0.15.2.

Thanks for making such a great tool! It has been invaluable to me.

@WillLillis
Copy link
Author

It looks like CI is failing because it's using 0.16.0-dev.2694+74f361a5c. I'm assuming updating to zig 16 should wait until that's released, so I'll leave this until that happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant