Py2wasm – A Python to WASM Compiler
71–80 of 175 posts
Re: Py2wasm – A Python to WASM Compiler
#72Re: Py2wasm – A Python to WASM Compiler
#73Re: Py2wasm – A Python to WASM Compiler
#74Re: Py2wasm – A Python to WASM Compiler
#75Re: Py2wasm – A Python to WASM Compiler
#76Re: Py2wasm – A Python to WASM Compiler
#77Re: Py2wasm – A Python to WASM Compiler
#78Earlier quoted context omitted.
even more specifically, 3 times faster than wasmer's build of cpython (whatever that is), running on their runtime. i'd be curious to see this benchmark extended, as in my own experience toying with python-like interpreters, you get ~2x slowdown (like their end result) from just compiling to wasm/wasi with clang and running in any 'fast' runtime (e.g. node or wasmtime).
Hey, I'd love to reproduce the ~2x slowdown you commented from running the workload in Native CPython compared to Wasm CPython (in any runtime, browser or outside). Any tip would be helpful so we can debug it. If your claims are accurate, we can easily get py2wasm even running faster than native CPython! Note: we benchmarked in a M3 Max laptop, so maybe there's some difference there?
Re: Py2wasm – A Python to WASM Compiler
#79Earlier quoted context omitted.
even more specifically, 3 times faster than wasmer's build of cpython (whatever that is), running on their runtime. i'd be curious to see this benchmark extended, as in my own experience toying with python-like interpreters, you get ~2x slowdown (like their end result) from just compiling to wasm/wasi with clang and running in any 'fast' runtime (e.g. node or wasmtime).
Hey, I'd love to reproduce the ~2x slowdown you commented from running the workload in Native CPython compared to Wasm CPython (in any runtime, browser or outside). Any tip would be helpful so we can debug it. If your claims are accurate, we can easily get py2wasm even running faster than native CPython! Note: we benchmarked in a M3 Max laptop, so maybe there's some difference there?
cat hello.py
print("Hello, Wasm!")
time python3 ./hello.py
Hello, Wasm!
________________________________________________________
Executed in 26.86 millis fish external
usr time 16.37 millis 0.13 millis 16.24 millis
sys time 7.25 millis 1.14 millis 6.11 millis
time wasmer hello.wasm
Hello, Wasm!
________________________________________________________
Executed in 84.77 millis fish external
usr time 50.26 millis 0.14 millis 50.12 millis
sys time 28.97 millis 1.21 millis 27.76 millis
time wasmtime hello.wasm
Hello, Wasm!
________________________________________________________
Executed in 141.72 millis fish external
usr time 120.86 millis 0.13 millis 120.72 millis
sys time 16.65 millis 1.20 millis 15.45 millis