Skip to content

Instantly share code, notes, and snippets.

@shipilev
Created May 1, 2014 17:45
Show Gist options
  • Save shipilev/2fddb1d2943a4cbb6080 to your computer and use it in GitHub Desktop.
Save shipilev/2fddb1d2943a4cbb6080 to your computer and use it in GitHub Desktop.
OpenJDK, JDK 8u20, SLOC counts
SLOC Directory SLOC-by-Language (Sorted)
3141572 jdk java=2218158,ansic=413685,xml=390872,cpp=87365,sh=17648,
objc=12653,awk=684,haskell=195,asm=157,cs=72,ruby=44,jsp=24,perl=12,csh=3
789362 hotspot cpp=521039,java=237280,xml=16275,ansic=9670,asm=2774,
sh=2324
273831 langtools java=271273,xml=1472,sh=1086
263726 jaxp java=263509,xml=217
249946 jaxws java=249735,xml=211
103587 corba java=103587
76713 nashorn java=75093,xml=1354,sh=266
47499 common xml=41702,sh=5531,ansic=266
2567 make sh=2281,sed=172,perl=114
4 top_dir sh=4
0 test (none)
Totals grouped by language (dominant language first):
java: 3418635 (69.08%)
cpp: 608404 (12.29%)
xml: 452103 (9.14%)
ansic: 423621 (8.56%)
sh: 29140 (0.59%)
objc: 12653 (0.26%)
asm: 2931 (0.06%)
awk: 684 (0.01%)
haskell: 195 (0.00%)
sed: 172 (0.00%)
perl: 126 (0.00%)
cs: 72 (0.00%)
ruby: 44 (0.00%)
jsp: 24 (0.00%)
csh: 3 (0.00%)
Total Physical Source Lines of Code (SLOC) = 4,948,807
Development Effort Estimate, Person-Years (Person-Months) = 1,514.45 (18,173.43)
(Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05))
Schedule Estimate, Years (Months) = 8.66 (103.88)
(Basic COCOMO model, Months = 2.5 * (person-months**0.38))
Estimated Average Number of Developers (Effort/Schedule) = 174.95
Total Estimated Cost to Develop = $ 204,581,881
(average salary = $56,286/year, overhead = 2.40).
SLOCCount, Copyright (C) 2001-2004 David A. Wheeler
SLOCCount is Open Source Software/Free Software, licensed under the GNU GPL.
SLOCCount comes with ABSOLUTELY NO WARRANTY, and you are welcome to
redistribute it under certain conditions as specified by the GNU GPL license;
see the documentation for details.
Please credit this data as "generated using David A. Wheeler's 'SLOCCount'."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment