|
From: Nicholas N. <nj...@ca...> - 2004-08-06 10:01:32
|
Hi, I tried using David Wheeler's SLOCcount (www.dwheeler.com/sloccount/) to count the number of lines in Valgrind, and estimate the effort gone in. It's wildly estimative, but a bit of fun nonetheless. Here are the results. -------------- SLOC Directory SLOC-by-Language (Sorted) 48937 coregrind ansic=47829,asm=849,perl=239,sh=20 6336 memcheck ansic=6142,asm=118,cpp=55,sh=21 3433 massif ansic=3430,sh=3 3176 top_dir sh=3113,ansic=63 2743 none ansic=1801,perl=806,asm=85,cpp=46,sh=5 2533 helgrind ansic=2527,sh=6 2300 cachegrind ansic=1183,perl=1092,asm=16,sh=9 1910 include ansic=1910 1529 tests ansic=1050,perl=440,sh=22,asm=17 901 addrcheck ansic=899,sh=2 824 corecheck ansic=808,sh=16 275 auxprogs ansic=275 122 lackey ansic=117,sh=5 119 inst ansic=119 30 nightly sh=30 21 example ansic=21 0 CVS (none) 0 autom4te.cache (none) 0 docs (none) Totals grouped by language (dominant language first): ansic: 68174 (90.67%) sh: 3252 (4.33%) perl: 2577 (3.43%) asm: 1085 (1.44%) cpp: 101 (0.13%) Total Physical Source Lines of Code (SLOC) = 75,189 Development Effort Estimate, Person-Years (Person-Months) = 18.66 (223.96) (Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05)) Schedule Estimate, Years (Months) = 1.63 (19.54) (Basic COCOMO model, Months = 2.5 * (person-months**0.38)) Estimated Average Number of Developers (Effort/Schedule) = 11.46 Total Estimated Cost to Develop = $ 2,521,179 (average salary = $56,286/year, overhead = 2.40). Please credit this data as "generated using David A. Wheeler's 'SLOCCount'." ---------------- I would guess that the model used underestimates development effort, since Valgrind is probably a more-complex-than-average system. I didn't try tweaking the model at all. Considering that Julian started working on Valgrind in 2000 (I think), then released it in 2002, and then only a small number of people have put significant development time in since then, 18.66 person-years feels like a significant overestimate to me. The $2.5M figure is interesting. Interestingly enough, the figures for code size and effort estimates are remarkably similar to those for Apache, given on the SLOCcount website. N |