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

Add markout shard to benchmark #14

Merged
merged 4 commits into from
Jul 24, 2024
Merged

Add markout shard to benchmark #14

merged 4 commits into from
Jul 24, 2024

Conversation

sbsoftware
Copy link
Owner

Branch benchmark can be found in the changes.

What stands out is the drastically increased performance of blueprint once I didn't reuse the same object for rendering all over again but instantiated a new one each run. This didn't have any effect on all the other shards tested here. I can't explain why this is, but I'll leave it that way now. (cc @stephannv sorry I made your shard look worse than it actually is until now, that wasn't on purpose)

`markout` returns HTML with only single quotes for some reason. To make
the equality checks work in the benchmark, we need to swap them to
double quotes.
The list now includes the `markout` shard. The numbers have changed
since I ran them on a new machine.
@sbsoftware sbsoftware merged commit 054e346 into main Jul 24, 2024
1 check passed
@sbsoftware sbsoftware deleted the feature/HTML-39 branch July 24, 2024 20:52
@stephannv
Copy link

stephannv commented Jul 24, 2024

No problem @sbsoftware, nice to know that blueprint isn't so unoptimized as I thought. Btw, nice job with to_html.cr, I learn a lot of Crystal reading your code.

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