-
Notifications
You must be signed in to change notification settings - Fork 12
/
benchmark.zsh
executable file
·27 lines (25 loc) · 1.14 KB
/
benchmark.zsh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# hyperfine --warmup 3 'zsh -d -f -l -c "source $PWD/benchmark.zsh && zrinit && exit"'
function zrinit {
XDG_CACHE_HOME=/tmp/zrbench ${1:-target/release/zr} \
sorin-ionescu/prezto.git/modules/git/alias.zsh \
sorin-ionescu/prezto.git/modules/history/init.zsh \
junegunn/fzf.git/shell/key-bindings.zsh \
zsh-users/zsh-autosuggestions \
zdharma/fast-syntax-highlighting \
molovo/tipz \
geometry-zsh/geometry \
jedahan/geometry-hydrate \
jedahan/geometry-todo \
geometry-zsh/geometry \
ael-code/zsh-colored-man-pages \
momo-lab/zsh-abbrev-alias \
jedahan/alacritty-completions \
zpm-zsh/ssh
}
# For comparing different release profiles
# hyperfine --warmup 3 \
# 'zsh -d -f -l -c "source $PWD/benchmark.zsh && zrinit target/release/zr-0 && exit"' \
# 'zsh -d -f -l -c "source $PWD/benchmark.zsh && zrinit target/release/zr-s && exit"' \
# 'zsh -d -f -l -c "source $PWD/benchmark.zsh && zrinit target/release/zr-3 && exit"' \
# 'zsh -d -f -l -c "source $PWD/benchmark.zsh && zrinit target/release/zr-lto && exit"' \
# 'zsh -d -f -l -c "source $PWD/benchmark.zsh && zrinit target/release/zr-default && exit"'