Add complex-expression benchmark#691
Merged
Kijewski merged 2 commits intoaskama-rs:mainfrom Feb 4, 2026
Merged
Conversation
| } | ||
|
|
||
| fn binary_ops(c: &mut Criterion) { | ||
| let mut rng = Xoroshiro64StarStar::seed_from_u64(PRIME64); |
Check failure
Code scanning / devskim
Use cryptographic random numbers generators for anything even close to a security function. Error
Member
Author
There was a problem hiding this comment.
No security needed in a benchmark, only repeatability.
Member
Author
|
Hm, again the problem with truncated error messages in the UI tests. Seems like sometimes the terminal width is taken into account and sometimes not. Different action runner versions? The terminal width seems to be 141 columns on the current runner. We should override the default terminal width in UI tests to something huge. Will have a look tomorrow. |
* Break overly long lines that are truncated in trybuild [v1.0.105] * Fix mistakes that are not part of the test, mostly missing return values * Require more current trybuild dev-dependency [v1.0.105]: <https://redirect.github.com/dtolnay/trybuild/releases/tag/1.0.115>
A simple benchmark to test how fast the parser and generator can handle
a template with a complex binary operator expression (`{{ a + b * c / d
... }}`).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A simple benchmark to test how fast the parser and generator can handle a template with a complex binary operator expression (
{{ a + b * c / d ... }}).