Skip to content

Benchmarking

Joris Roovers edited this page Nov 27, 2019 · 2 revisions

To get idea of memory consumption, run gitlint against itself for 10 times. IMPORTANT:

for i in $(seq 1 10); do /usr/bin/time -l gitlint -s --commits HEAD 2>&1; done | awk '/maximum/{print $1; count++; sum+=$1}; END {printf "---\nCOUNT=%i\nSUM=%i\nAVG=%2.f\n",count,sum,sum/count}'
Clone this wiki locally