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}'

Linux In kbytes

for i in $(seq 1 10); do /usr/bin/time -v gitlint -s 2>&1; done | awk -F ":" '/Maximum/{print $2; count++; sum+=$2}; END {printf "---\nCOUNT=%i\nSUM=%i\nAVG=%2.f\n",count,sum,sum/count}'

Results

COUNT=10
SUM=257728512
AVG=25772851