Alexis a toujours de très bonne idée.
L'année dernière, il avait fait cela.
Hier, il m'a fait parvenir ceci :
Have a non-directory at the top, so creating directory top_dir Adding /tmp/atoum/./ABOUT to top_dir Creating filelist for classes Adding /tmp/atoum/./constants.php to top_dir Adding /tmp/atoum/./COPYING to top_dir Adding /tmp/atoum/./FAQ to top_dir Adding /tmp/atoum/./README.markdown to top_dir Creating filelist for resources Creating filelist for scripts Creating filelist for tests Categorizing files. Finding a working MD5 command.... Found a working MD5 command. Computing results. SLOC Directory SLOC-by-Language (Sorted) 25191 tests php=25191 13546 classes php=13546 106 scripts php=106 10 top_dir php=10 0 resources (none) Totals grouped by language (dominant language first): php: 38853 (100.00%) Total Physical Source Lines of Code (SLOC) = 38,853 Development Effort Estimate, Person-Years (Person-Months) = 9.33 (111.97) (Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05)) Schedule Estimate, Years (Months) = 1.25 (15.02) (Basic COCOMO model, Months = 2.5 * (person-months**0.38)) Estimated Average Number of Developers (Effort/Schedule) = 7.46 Total Estimated Cost to Develop = $ 1,260,484 (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'."
Atoum vaut donc très exactement $1260484 d'après SLOCCount, ou plus exactement, son développement aurait coûté cette somme si il avait été financé.
J'avoue avoir bien rigolé, merci mon ami !
6 réactions
1 De Da Scritch - 09/11/2011, 09:26
Arf, j'aurais bien aimé comparer, mais le script ne calcule pas pour le javascript...
2 De Mathieu ROBIN - 09/11/2011, 09:31
Impressionnant !
3 De Eric - 09/11/2011, 10:53
La question est : met-on 9 ans a écrire 40 000 lignes de code ?
4 De metagoto - 09/11/2011, 19:30
Et presque $400000 sur Ohloh avec les default settings!
http://www.ohloh.net/p/atoum/estima...
5 De mageekguy - 09/11/2011, 22:19
@metagoto : Je pense que la version prise en compte par Oloho n'est pas la bonne car elle doit pointer sur mon dépôt subversion et non vers github.
6 De metagoto - 09/11/2011, 22:52
@mageekguy : Ah oui tu as raison! Ça stagne à partir de Juin. Quelque part, c'est rassurant