1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 06:30:03 +08:00
SpaceVim/bundle/vimproc.vim/tools/benchmark.vim
2020-06-14 23:42:40 +08:00

18 lines
289 B
VimL
Vendored

let cnt = 25
let start = reltime()
for i in range(1, cnt)
call system('ls')
endfor
echomsg 'system() = ' . reltimestr(reltime(start))
let start = reltime()
for i in range(1, cnt)
call vimproc#system('ls')
endfor
echomsg 'vimproc#system() = ' . reltimestr(reltime(start))