aboutsummaryrefslogtreecommitdiff
path: root/test/benchmark
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-11-17 00:33:45 +0100
committerJustin M. Keyes <justinkz@gmail.com>2016-11-17 00:55:39 +0100
commit44e6ee930fff5bf42178e5555b4a7c3467cb66c8 (patch)
tree158e48cdaa336c5837d4af455357d19fdb76f9de /test/benchmark
parent5e241b5f50833afd920d37fa8b2bb24a30827406 (diff)
downloadrneovim-44e6ee930fff5bf42178e5555b4a7c3467cb66c8.tar.gz
rneovim-44e6ee930fff5bf42178e5555b4a7c3467cb66c8.tar.bz2
rneovim-44e6ee930fff5bf42178e5555b4a7c3467cb66c8.zip
build: Target luacheck HEAD.
https://github.com/mpeterv/luacheck/pull/81#issuecomment-261099606 > If you really want to use bleeding-edge version you should get the > rockspec from master branch, not a fixed commit ... > The correct way to install from a specific commit is cloning that > commit and running "luarocks make" from project directory. The reason > is that running "install" or "build" on an scm rockspec fetches > sources from master but uses build description from the rockspec > itself, which may be outdated.
Diffstat (limited to 'test/benchmark')
-rw-r--r--test/benchmark/bench_re_freeze_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/benchmark/bench_re_freeze_spec.lua b/test/benchmark/bench_re_freeze_spec.lua
index a194b5f44c..53041b042b 100644
--- a/test/benchmark/bench_re_freeze_spec.lua
+++ b/test/benchmark/bench_re_freeze_spec.lua
@@ -15,12 +15,12 @@ local measure_cmd =
local measure_script = [[
func! Measure(re, file, pattern, arg)
let sstart=reltime()
-
+
execute 'set re=' . a:re
execute 'split' a:arg a:file
call search(a:pattern, '', '', 10000)
q!
-
+
$put =printf('file: %s, re: %d, time: %s', a:file, a:re, reltimestr(reltime(sstart)))
endfunc]]