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.
I don't think it's necessarily a good idea to add other languages, but I had put together a local implementation for comparison and @DylanPiercey asked to take a look. I do see #23 adding Dioxus as well, so I thought I'd just open this. Feel free to close if you want to keep it JS-specific.
There's no difference in the HTML rendered for this example for our with-hydration vs no-hydration versions except for very small script tag, so I just did no-hydration for the sake of simplicity in building/running it.
If you have a Rust toolchain installed this is just
cargo run --release
. I have it running on nightly Rust, it should work with stable if you just remove thenightly
feature inCargo.toml
.local
autocannon
results:(For the truly curious, I have a local version with a non-allocating version for the
style
that went up to 6k rps, but I thought it was a bit cheesy. This is the idiomatic version.)