[Lazarus] Code Metrics and Project Analysis

Mattias Gärtner nc-gaertnma at netcologne.de
Tue Nov 17 15:35:06 CET 2009


Zitat von Graeme Geldenhuys <graeme at mastermaths.co.za>:

> Mattias Gärtner wrote:
>>
>> Lazarus in total is worth 45mio dollar and requires 68 developers.
>
> I think your hidden '.svn' directories are causing the program to give
> incorrect results - counting duplicate pas files or something.

No. It's clever enough to skip them.
But my dir contains a lot of auto created fpdoc xml files and some  
more junk from endless experiments.
OTOH it did not count the lfm files - 90kloc.


> I ran it against my git mirror of Lazarus (which contains no .svn
> directories) and is up to date with latest SubVersion revision.
>
> ----------------------
> Total Physical Source Lines of Code (SLOC)                = 964,104
> Development Effort Estimate, Person-Years (Person-Months) = 271.87
> (3,262.43)
>  (Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05))
> Schedule Estimate, Years (Months)                         = 4.51 (54.09)
>  (Basic COCOMO model, Months = 2.5 * (person-months**0.38))
> Estimated Average Number of Developers (Effort/Schedule)  = 60.32
> Total Estimated Cost to Develop                           = $ 36,725,837
> ----------------------
>
> Still not bad! Almost a million lines of code. :)  You guys deserve a
> pat on the back.

And here are the results for the mighty Free Pascal compiler:

Total Physical Source Lines of Code (SLOC)                = 198,187
Development Effort Estimate, Person-Years (Person-Months) = 51.64 (619.64)
  (Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05))
Schedule Estimate, Years (Months)                         = 2.40 (28.77)
  (Basic COCOMO model, Months = 2.5 * (person-months**0.38))
Estimated Average Number of Developers (Effort/Schedule)  = 21.54
Total Estimated Cost to Develop                           = $ 6,975,423
  (average salary = $56,286/year, overhead = 2.40).


And here the results for fpc (excluding install):

Total Physical Source Lines of Code (SLOC)                = 1,789,257
Development Effort Estimate, Person-Years (Person-Months) = 520.40 (6,244.79)
  (Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05))
Schedule Estimate, Years (Months)                         = 5.77 (69.22)
  (Basic COCOMO model, Months = 2.5 * (person-months**0.38))
Estimated Average Number of Developers (Effort/Schedule)  = 90.22
Total Estimated Cost to Develop                           = $ 70,298,812
  (average salary = $56,286/year, overhead = 2.40).


Mattias





More information about the Lazarus mailing list