rinja-rs / rinja

A template rendering engine based on Jinja, generating type-safe Rust code at compile time.
https://rinja.readthedocs.io
Apache License 2.0
28 stars 4 forks source link

derive: add benchmark #14

Closed Kijewski closed 2 weeks ago

Kijewski commented 2 weeks ago

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.

GuillaumeGomez commented 2 weeks ago

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

Kijewski commented 2 weeks ago

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

Yup, added.

GuillaumeGomez commented 2 weeks ago

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

GuillaumeGomez commented 2 weeks ago

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

GuillaumeGomez commented 2 weeks ago

Thanks!