From 50cc0229f0e061698a06536f7f748798cdbf107f Mon Sep 17 00:00:00 2001 From: mattn Date: Mon, 1 Mar 2010 17:59:19 +0900 Subject: [PATCH] benchmark --- unittest.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unittest.vim b/unittest.vim index 6d33db6..9bdfbf0 100644 --- a/unittest.vim +++ b/unittest.vim @@ -5,6 +5,7 @@ let testgroups = eval(join(filter(split(substitute(join(readfile(expand(' 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