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

derive: add benchmark #14

Merged
merged 1 commit into from
Jun 22, 2024

Conversation

Kijewski
Copy link
Collaborator

This PR adds the crate "rinja_derive_standalone", which is just like "rinja_derive", though not a "proc_macro". This way we can easily expose it's internals for testing and benchmarking.

Right now, the PR is more or less a prove of concept, and it probably needs a handful more useful benchmark use cases to be worth the hassle.

Resolves #12.

[features]
default = ["__standalone"]
__standalone = []
config = ["serde", "basic-toml"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing the :dep part you mentioned. ;)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hehe, yeah. I leave this task to tomorrow-me. :D

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I approve this way of seeing things! 😆

@GuillaumeGomez
Copy link
Contributor

Looks like a great start! Can you add documentation on how to run these benchmarks as well please?

@Kijewski Kijewski force-pushed the pr-benchmark-derive branch 2 times, most recently from 1719626 to e8e59fc Compare June 18, 2024 16:37
@Kijewski
Copy link
Collaborator Author

Can you add documentation on how to run these benchmarks as well please?

Yup, added.

@GuillaumeGomez
Copy link
Contributor

Awesome, when the Cargo.toml features are updated, then let's merge!

@GuillaumeGomez
Copy link
Contributor

Just need to fix the merge conflict and it can get merged. :)

This PR adds the crate "rinja_derive_standalone", which is just like
"rinja_derive", though not a "proc_macro". This way we can easily expose
it's internals for testing and benchmarking.

Right now, the PR is more or less a prove of concept, and it probably
needs a handful more useful benchmark use cases to be worth the hassle.
@Kijewski Kijewski force-pushed the pr-benchmark-derive branch from e8e59fc to 1ce549d Compare June 22, 2024 00:49
@GuillaumeGomez
Copy link
Contributor

Thanks!

@GuillaumeGomez GuillaumeGomez merged commit 62b891f into rinja-rs:master Jun 22, 2024
17 checks passed
@Kijewski Kijewski deleted the pr-benchmark-derive branch July 4, 2024 08:47
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.

Add benchmarks for derive macro
2 participants