emscripten-core / emscripten-core/emscripten
WasmFS slower than IDBFS on small reads and small writes
- Dominant language
- C++
- Stars
- 27.6k
- Forks
- 3.6k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 105
Description
Hi,
I've read in the docs that WasmFS is a new filesystem that can be used to persist the virtual filesystem in emscripten. I also read in many articles online that WasmFS is about 2x faster than IDBFS.
However, I have an app that's doing small reads and small writes (less than 512 bytes) and I've noticed that WasmFS+OPFS is more than 2x slower on this scenario than IDBFS.
Is there some special config or compiler flag that I need to enable to make small reads and small writes on WasmFS+OPFS have similar performance to IDBFS?
**Version of emscripten/emsdk:**
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 4.0.7 (8dc91db45bf96c174531006839472a3924d105aa)
clang version 21.0.0git (https:/github.com/llvm/llvm-project 57025b42c43b2f14f7e58692bc19cd53d1b8a45e)
Target: wasm32-unknown-emscripten
Thread model: posix
Contributor guide
Assessment
This issue has not been assessed yet.