Re:WebAssembly: Docker Without Containers
by riddleronroof on Wednesday December 21, 2022 @09:36AM
(#34081221)
Thank you for these details.
Always suspected these claims but hadn’t dug deep enough.
Seems like some X can now run in wasm should come with disclaimer (includes Linux)
To get an impression of the performance penalty, just run the following query:
This simple query completes in 100ms locally on my laptop, but takes 17265ms in postgres-wasm. That is a slowdown of 170x.Now that is not WASM's fault - when running the same query in duckdb-wasm [1] on my laptop the query takes 10ms using WASM, and 5ms when run locally, with a slow-down of only a factor of 2. But in order to achieve those results we did have to adopt the DuckDB codebase to compile natively to WASM. That is absolutely possible but it does take engineering effort - particularly when it comes to larger older projects that are not designed from the ground up with this in mind.
[1] https://shell.duckdb.org