Skip to content

Instantly share code, notes, and snippets.

@AgentCoop
Created July 16, 2013 06:30
Show Gist options
  • Save AgentCoop/6006268 to your computer and use it in GitHub Desktop.
Save AgentCoop/6006268 to your computer and use it in GitHub Desktop.
Some statistics about PHP and the Linux kernel code base
PHP:
r00t:php# git log --format=%H --numstat --no-merges | awk 'NF==3 {plus+=$1; minus+=$2} END {printf("+%d, -%d, diff=%d, rate=%0.4f\n", plus, minus, plus-minus,minus/plus)}'
+10281181, -7373425, diff=2907756, rate=0.7172
Linux kernel:
r00t:linux# git log --format=%H --numstat --no-merges | awk 'NF==3 {plus+=$1; minus+=$2} END {printf("+%d, -%d, diff=%d, rate=%0.4f\n", plus, minus, plus-minus,minus/plus)}'
+38145990, -20701172, diff=17444818, rate=0.542
PHP: 0.7172
Linux: 0.542
As we can see the Linux kernel code base is actively growing in comparison with the PHP code base.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment