Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f8c1510

Browse files
committed
Add simple syntax benchmarking script
1 parent 6a406b6 commit f8c1510

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

‎clj/bin/syntime

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Copyright (c) 2017 Sung Pae <self@sungpae.com>
4+
# Distributed under the MIT license.
5+
# http://www.opensource.org/licenses/mit-license.php
6+
7+
if (($# != 1)); then
8+
echo "usage: 0ドル file.clj"
9+
exit 1
10+
fi
11+
12+
VIMRC="
13+
set runtimepath^=$(dirname "0ドル")/../..
14+
filetype plugin indent on
15+
syntax on
16+
syntime on
17+
"
18+
19+
exec vim -N -u <(echo "$VIMRC") \
20+
-c 'execute "redir > " . strftime("report-%Y-%m-%d-%H-%M-%S.log")' \
21+
-c 'call feedkeys(repeat("j", line("$")-1) . ":silent syntime report | quit\<CR>")' \
22+
"1ドル"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /