Initially posted at tauri-apps/wry#761 (reply in thread).
cargo build -r
It takes about one second to render HTML with JS and return back the HTML string. Only started checking the profiler.
time ./target/release/wry_test_render
0.17user 0.07system 0:00.81elapsed 30%CPU (0avgtext+0avgdata 80388maxresident)k
0inputs+0outputs (172major+7466minor)pagefaults 0swaps
du -sh source.html rendered.html
688K source.html
752K rendered.html