You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.
time wasmtime markdown.wasm --invoke render "# Hello"
warning: using `--invoke` with a function that takes arguments is experimental and may break in the future
warning: using `--invoke` with a function that returns values is experimental and may break in the future
<h1>Hello</h1>
real 0m0.041s
user 0m0.039s
sys 0m0.005s
Rust:
time ./target/release/markdown
Loaded in 475 ms
Rendered <h1>Hello, Rust!</h1>
in 1 ms
real 0m0.484s
user 0m1.674s
sys 0m0.040s
I have added a stopwatch around load_file and render method. What could be the issue?
The text was updated successfully, but these errors were encountered:
Passing --disable-cache to wasmtime binary only accounts for 100-150ms:
time wasmtime --disable-cache ./pkg/markdown.wasm --invoke render "# hello"
warning: using `--invoke` with a function that takes arguments is experimental and may break in the future
warning: using `--invoke` with a function that returns values is experimental and may break in the future
<h1>hello</h1>
real 0m0.161s
user 0m0.431s
sys 0m0.024s
Rust:
I have added a stopwatch around
load_file
andrender
method. What could be the issue?The text was updated successfully, but these errors were encountered: