Hello,
I am the author of the JS version of LZ4.
Indeed, as you have found out, the pure JS version (not the node one which uses bindings to the C API), is slower than the C/C++ implementations, partly due to the way JS handles unsigned integers (see the cuint library to emulate C behaviour).
There is not much you can do (at least that I could) to improve further although it is not that bad?
Any input to improve it is welcome though!
Pierre