mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-28 04:56:51 +08:00
benchmark
This commit is contained in:
@@ -5,6 +5,7 @@ let testgroups = eval(join(filter(split(substitute(join(readfile(expand('<sfile>
|
||||
for testgroup in testgroups
|
||||
echohl Visual | echon "[" testgroup.category."]\n" | echohl None
|
||||
let tests = testgroup.tests
|
||||
let start = reltime()
|
||||
for n in range(len(tests))
|
||||
let testtitle = tests[n].name
|
||||
let testtitle = len(testtitle) < 57 ? (testtitle.repeat(' ', 57-len(testtitle))) : strpart(testtitle, 0, 57)
|
||||
@@ -20,6 +21,7 @@ for testgroup in testgroups
|
||||
echo ""
|
||||
endif
|
||||
endfor
|
||||
echo "past:".reltimestr(reltime(start))."\n"
|
||||
endfor
|
||||
|
||||
finish
|
||||
|
||||
Reference in New Issue
Block a user