Skip to content

Instantly share code, notes, and snippets.

@tobstarr
Created March 18, 2016 13:52
Show Gist options
  • Save tobstarr/3d830f6cb8bfbd784dab to your computer and use it in GitHub Desktop.
Save tobstarr/3d830f6cb8bfbd784dab to your computer and use it in GitHub Desktop.
testing go version go1.4.3 linux/amd64
user=18.36 system=2.86 total=8.34 max_rss=606004kB status=0 nvim -u syntastic.rc +wq /home/tobias/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=18.49 system=2.58 total=8.28 max_rss=605960kB status=0 nvim -u syntastic.rc +wq /home/tobias/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=18.49 system=2.68 total=8.24 max_rss=606016kB status=0 nvim -u syntastic.rc +wq /home/tobias/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=18.58 system=2.65 total=8.20 max_rss=606040kB status=0 nvim -u syntastic.rc +wq /home/tobias/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=18.42 system=2.65 total=8.15 max_rss=606012kB status=0 nvim -u syntastic.rc +wq /home/tobias/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=0.07 system=0.07 total=0.16 max_rss=24164kB status=0 nvim -u no_syntastic.rc +wq /home/tobias/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=0.07 system=0.09 total=0.18 max_rss=23900kB status=0 nvim -u no_syntastic.rc +wq /home/tobias/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=0.06 system=0.09 total=0.16 max_rss=20364kB status=0 nvim -u no_syntastic.rc +wq /home/tobias/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=0.09 system=0.09 total=0.19 max_rss=21660kB status=0 nvim -u no_syntastic.rc +wq /home/tobias/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=0.07 system=0.09 total=0.18 max_rss=18916kB status=0 nvim -u no_syntastic.rc +wq /home/tobias/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
testing go version go1.5.3 linux/amd64
user=35.84 system=4.25 total=13.65 max_rss=1007220kB status=0 nvim -u syntastic.rc +wq /home/tobias/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=35.48 system=4.01 total=14.37 max_rss=1007384kB status=0 nvim -u syntastic.rc +wq /home/tobias/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=35.76 system=4.02 total=13.81 max_rss=1007188kB status=0 nvim -u syntastic.rc +wq /home/tobias/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=35.39 system=4.17 total=13.32 max_rss=1007264kB status=0 nvim -u syntastic.rc +wq /home/tobias/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=35.81 system=3.82 total=13.72 max_rss=1007192kB status=0 nvim -u syntastic.rc +wq /home/tobias/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=0.08 system=0.03 total=0.14 max_rss=31288kB status=0 nvim -u no_syntastic.rc +wq /home/tobias/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=0.10 system=0.04 total=0.15 max_rss=31312kB status=0 nvim -u no_syntastic.rc +wq /home/tobias/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=0.08 system=0.04 total=0.14 max_rss=31348kB status=0 nvim -u no_syntastic.rc +wq /home/tobias/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=0.08 system=0.04 total=0.14 max_rss=31308kB status=0 nvim -u no_syntastic.rc +wq /home/tobias/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=0.09 system=0.06 total=0.17 max_rss=31312kB status=0 nvim -u no_syntastic.rc +wq /home/tobias/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
testing go version go1.6 linux/amd64
user=32.24 system=4.01 total=13.12 max_rss=1004764kB status=0 nvim -u syntastic.rc +wq /home/tobias/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=32.08 system=4.00 total=12.44 max_rss=1004800kB status=0 nvim -u syntastic.rc +wq /home/tobias/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=32.31 system=3.92 total=12.40 max_rss=1004780kB status=0 nvim -u syntastic.rc +wq /home/tobias/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=32.99 system=4.00 total=13.41 max_rss=1004824kB status=0 nvim -u syntastic.rc +wq /home/tobias/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=32.69 system=4.18 total=12.75 max_rss=1004776kB status=0 nvim -u syntastic.rc +wq /home/tobias/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=0.08 system=0.05 total=0.15 max_rss=17380kB status=0 nvim -u no_syntastic.rc +wq /home/tobias/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=0.07 system=0.06 total=0.15 max_rss=18300kB status=0 nvim -u no_syntastic.rc +wq /home/tobias/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=0.08 system=0.04 total=0.15 max_rss=20372kB status=0 nvim -u no_syntastic.rc +wq /home/tobias/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=0.07 system=0.06 total=0.15 max_rss=20352kB status=0 nvim -u no_syntastic.rc +wq /home/tobias/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=0.05 system=0.08 total=0.15 max_rss=17336kB status=0 nvim -u no_syntastic.rc +wq /home/tobias/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
#!/bin/bash
set -e
function mytime() {
cmd="time"
if [[ $(uname) = "Darwin" ]]; then
cmd=gtime
fi
${cmd} -f 'user=%U system=%S total=%e max_rss=%MkB status=%x %C' "$@"
}
DIR=$GOPATH/src/github.com/kubernetes/kubernetes
mkdir -p $(dirname $DIR)
if [[ ! -d $DIR/.git ]]; then
git clone https://github.com/kubernetes/kubernetes.git $DIR
fi
git --git-dir=$DIR/.git checkout v1.2.0 &> /dev/null
go get -v -d github.com/kubernetes/kubernetes/cmd/kubectl
for v in 1.4.3 1.5.3 1.6; do
VERSION=$v switch-go-version
echo "testing $(go version)"
go get github.com/kubernetes/kubernetes/cmd/kubectl
for file in syntastic.rc no_syntastic.rc; do
for i in $(seq 1 5); do
mytime nvim -u $file +wq $DIR/cmd/kubectl/kubectl.go > /dev/null
done
done
done
filetype plugin off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'fatih/vim-go'
" Plugin 'scrooloose/syntastic'
call vundle#end()
filetype plugin indent on
let g:syntastic_go_go_build_args = "-o /dev/null"
autocmd FileType go nnoremap <buffer> gd :GoDef<cr>
autocmd FileType go nnoremap <buffer> K :GoDoc<cr>
autocmd FileType go nmap ,i <Plug>(go-info)
autocmd FileType go set makeprg=make
autocmd FileType go nmap ,e <Plug>(go-rename)
autocmd FileType go set tabstop=4 shiftwidth=4
autocmd FileType go map <C-]> gd
autocmd FileType go map ,rn :GoRename<CR>
autocmd FileType go map ,d :GoDeclsDir<CR>
let g:godef_split=0
let g:go_fmt_command='goimports'
let g:go_autodetect_gopath = 0
filetype plugin off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'fatih/vim-go'
Plugin 'scrooloose/syntastic'
call vundle#end()
filetype plugin indent on
let g:syntastic_go_go_build_args = "-o /dev/null"
autocmd FileType go nnoremap <buffer> gd :GoDef<cr>
autocmd FileType go nnoremap <buffer> K :GoDoc<cr>
autocmd FileType go nmap ,i <Plug>(go-info)
autocmd FileType go set makeprg=make
autocmd FileType go nmap ,e <Plug>(go-rename)
autocmd FileType go set tabstop=4 shiftwidth=4
autocmd FileType go map <C-]> gd
autocmd FileType go map ,rn :GoRename<CR>
autocmd FileType go map ,d :GoDeclsDir<CR>
let g:godef_split=0
let g:go_fmt_command='goimports'
let g:go_autodetect_gopath = 0
testing go version go1.4.3 linux/amd64
user=2.64 system=0.42 total=3.40 max_rss=529352kB status=0 nvim -u syntastic.rc +wq /home/tobias/src/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=2.53 system=0.51 total=3.28 max_rss=528476kB status=0 nvim -u syntastic.rc +wq /home/tobias/src/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=2.56 system=0.47 total=3.25 max_rss=528316kB status=0 nvim -u syntastic.rc +wq /home/tobias/src/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=2.66 system=0.43 total=3.32 max_rss=528384kB status=0 nvim -u syntastic.rc +wq /home/tobias/src/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=2.60 system=0.45 total=3.26 max_rss=528476kB status=0 nvim -u syntastic.rc +wq /home/tobias/src/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=0.07 system=0.05 total=0.14 max_rss=30976kB status=0 nvim -u no_syntastic.rc +wq /home/tobias/src/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=0.08 system=0.06 total=0.15 max_rss=31016kB status=0 nvim -u no_syntastic.rc +wq /home/tobias/src/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=0.07 system=0.04 total=0.13 max_rss=31032kB status=0 nvim -u no_syntastic.rc +wq /home/tobias/src/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=0.07 system=0.04 total=0.13 max_rss=30964kB status=0 nvim -u no_syntastic.rc +wq /home/tobias/src/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=0.06 system=0.05 total=0.13 max_rss=31056kB status=0 nvim -u no_syntastic.rc +wq /home/tobias/src/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
testing go version go1.5.3 linux/amd64
user=4.55 system=1.02 total=5.74 max_rss=845812kB status=0 nvim -u syntastic.rc +wq /home/tobias/src/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=4.54 system=0.77 total=5.36 max_rss=846768kB status=0 nvim -u syntastic.rc +wq /home/tobias/src/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=4.58 system=0.85 total=5.45 max_rss=846860kB status=0 nvim -u syntastic.rc +wq /home/tobias/src/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=4.52 system=0.76 total=5.30 max_rss=846452kB status=0 nvim -u syntastic.rc +wq /home/tobias/src/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=4.69 system=0.74 total=5.45 max_rss=846144kB status=0 nvim -u syntastic.rc +wq /home/tobias/src/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=0.06 system=0.05 total=0.14 max_rss=31048kB status=0 nvim -u no_syntastic.rc +wq /home/tobias/src/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=0.08 system=0.04 total=0.15 max_rss=30940kB status=0 nvim -u no_syntastic.rc +wq /home/tobias/src/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=0.09 system=0.03 total=0.14 max_rss=31048kB status=0 nvim -u no_syntastic.rc +wq /home/tobias/src/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=0.08 system=0.04 total=0.14 max_rss=31024kB status=0 nvim -u no_syntastic.rc +wq /home/tobias/src/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=0.07 system=0.06 total=0.24 max_rss=31000kB status=0 nvim -u no_syntastic.rc +wq /home/tobias/src/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
testing go version go1.6 linux/amd64
user=4.93 system=0.87 total=5.92 max_rss=854168kB status=0 nvim -u syntastic.rc +wq /home/tobias/src/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=5.02 system=0.81 total=5.86 max_rss=855352kB status=0 nvim -u syntastic.rc +wq /home/tobias/src/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=4.66 system=0.82 total=5.50 max_rss=855368kB status=0 nvim -u syntastic.rc +wq /home/tobias/src/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=4.66 system=0.79 total=5.47 max_rss=855400kB status=0 nvim -u syntastic.rc +wq /home/tobias/src/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=4.63 system=0.78 total=5.44 max_rss=855020kB status=0 nvim -u syntastic.rc +wq /home/tobias/src/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=0.07 system=0.06 total=0.15 max_rss=30984kB status=0 nvim -u no_syntastic.rc +wq /home/tobias/src/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=0.07 system=0.05 total=0.14 max_rss=30968kB status=0 nvim -u no_syntastic.rc +wq /home/tobias/src/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=0.07 system=0.05 total=0.14 max_rss=31004kB status=0 nvim -u no_syntastic.rc +wq /home/tobias/src/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=0.08 system=0.04 total=0.15 max_rss=31032kB status=0 nvim -u no_syntastic.rc +wq /home/tobias/src/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
user=0.09 system=0.06 total=0.17 max_rss=31088kB status=0 nvim -u no_syntastic.rc +wq /home/tobias/src/github.com/kubernetes/kubernetes/cmd/kubectl/kubectl.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment