2 ms·
wow that wasmer thing is _SLOW_.. we are talking about 57x time slow! (granted most of this is likely startup delay). Here is a random benchmark with warmed-up
by theamk 3y ago
wow that wasmer thing is _SLOW_.. we are talking about 57x time slow! (granted most of this is likely startup delay). Here is a random benchmark with warmed-up cache:
$ time cat /var/lib/dpkg/status | wasmer run syrusakbary/pypipe@0.1.0 -- 'i, line.upper()' | wc -l
39175
real 0m5.761s
user 1m15.071s
sys 0m4.838s
vs regular python:
$ time cat /var/lib/dpkg/status | python3 pypipe.py 'i, line.upper()' | wc -l
39175
real 0m0.107s
user 0m0.096s
sys 0m0.026s
and the wasmer install procedure.. not a deb file in sight, adds itself to ~/.bashrc (of course...) and apparently requires two environment variables to even work.
Compare this to OP's instructions: (1) check out the repo (2) execute the file directly.
Not sure why would anyone want wasmer for simple command like tools like those.