The emscripten module from C SHA256 code is much faster than the pure ES6 SHA256 code. But the emxcripten module required async initialization and explicit cleanup calls. In this article, Implement SHA256 in WebAssembly directly (with no emscripten).