flutter_ecommerce_app icon indicating copy to clipboard operation
flutter_ecommerce_app copied to clipboard

Benchmark comparison with Go jump

Open dufferzafar opened this issue 5 years ago • 2 comments

There is a section on comparison with other such utilities, but @gsamokovarov/jump seems to be missing. It's written in Go and also has some fuzzy matching. It would be nice to see how z.lua compares with that.

dufferzafar avatar Feb 07 '19 14:02 dufferzafar

if you wish:

skywind@weilin0:~/.local/etc$ time _zlua --add /tmp

real    0m0.024s
user    0m0.000s
sys     0m0.031s
skywind@weilin0:~/.local/etc$ time _zlua --add /tmp

real    0m0.027s
user    0m0.000s
sys     0m0.000s
skywind@weilin0:~/.local/etc$ time _zlua --add /tmp

real    0m0.023s
user    0m0.000s
sys     0m0.000s
skywind@weilin0:~/.local/etc$ time jump chdir

real    0m0.029s
user    0m0.000s
sys     0m0.016s
skywind@weilin0:~/.local/etc$ time jump chdir

real    0m0.026s
user    0m0.000s
sys     0m0.000s
skywind@weilin0:~/.local/etc$ time jump chdir

real    0m0.034s
user    0m0.000s
sys     0m0.000s

I found that jump chdir is the database updating command, it will save the current working directory in the history database.

skywind3000 avatar Feb 07 '19 14:02 skywind3000

skywind@weilin0:~/.local/etc$ ls -lh ~/go/bin/jump
-rwxr-xr-x 1 skywind skywind 3.5M Feb  7 22:40 /home/skywind/go/bin/jump
skywind@weilin0:~/.local/etc$ ls -lh /usr/bin/lua5.3
-rwxr-xr-x 1 root root 228K Dec 19  2016 /usr/bin/lua5.3

Maybe the executable file size is the reason ??

skywind3000 avatar Feb 07 '19 14:02 skywind3000