Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend benchmark_generator to more macros #146

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

davidmorgan
Copy link
Contributor

Note that the first commit is sent as a separate PR #145.

Fix the built_value macro handling of null fields.

This allows generating benchmarks applying JsonCodable, BuiltValue or both.

I tried some initial runs with both, and ... I guess I shouldn't be surprised, running both does not share much work today, e.g. time to first analysis with 64 files is

JsonCodable: 6.4s
BuiltValue: 7.4s
Both: 12.8s

which saves 1s over 6.4s+7.4s=13.8s.

For comparison the "without macros" time to first analysis is

JsonCodable: 2.1s
BuiltValue: 3.9s
Both: 4.2s

@davidmorgan davidmorgan force-pushed the built-value-benchmark branch from 04fb59d to c94ef79 Compare November 25, 2024 15:48
@davidmorgan davidmorgan merged commit 66baf8b into dart-lang:main Dec 3, 2024
51 checks passed
@davidmorgan davidmorgan deleted the built-value-benchmark branch December 3, 2024 11:02
@davidmorgan davidmorgan restored the built-value-benchmark branch December 4, 2024 09:11
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.

2 participants