Dear Iliaders,
I made few measurements of code from three main Smalltalk web frameworks and results are now available at Google Docs: https://spreadsheets.google.com/ccc?key=0Atnb1W9vuq9ndG4wbUpxNXpKQnFZRlFyQXpHclhZa2c&hl=en#gid=1 Here you'll find graphs of three distributions: - number of methods in classes - class inheritance depth - number of lines in methods And also the following measurements: Code stats Aida Seaside Iliad ---------------------------------------------- Nr of packages 1 74 9 Nr of categories 14 123 26 Nr of classes 145 943 265 Nr of methods 4.465 8.758 2.368 Lines of code 33.578 66.337 9.794 Avg methods/class 31 9 9 Avg lines/method 7,5 7,6 4,1 Nr of test methods 67 914 412 Avg tests/class 0,5 1 1,6 % of commented methods 45% 23% 5% % of commented classes 32% 39% 13% Code is loaded in Pharo with by Metacello configurations, tests are included, all code included except Grease, Sport, Swazoo, Magritte. Let me say few words about the reason I started those measurements: mostly to find things to improve in Aida but I think results are interesting more broadly. Specially, because they seems to reveal two schools of thought about how to code in Smalltalk. Just compare the number of packages, classes and methods per class, then first two graphs about number of methods per class, and class inheritance depth. Quite interesting results and quite some food for discussion! Best regards Janko -- Janko Mivšek AIDA/Web Smalltalk Web Application Server http://www.aidaweb.si |
. and here is the code used for those measurements:
http://www.squeaksource.com/WebCodeStats.html Best regards Janko On 15. 11. 2010 13:13, Janko Mivšek wrote: > Dear Iliaders, > > I made few measurements of code from three main Smalltalk web frameworks > and results are now available at Google > Docs: > https://spreadsheets.google.com/ccc?key=0Atnb1W9vuq9ndG4wbUpxNXpKQnFZRlFyQXpHclhZa2c&hl=en#gid=1 > > Here you'll find graphs of three distributions: > > - number of methods in classes > - class inheritance depth > - number of lines in methods > > And also the following measurements: > > Code stats Aida Seaside Iliad > ---------------------------------------------- > Nr of packages 1 74 9 > Nr of categories 14 123 26 > Nr of classes 145 943 265 > Nr of methods 4.465 8.758 2.368 > Lines of code 33.578 66.337 9.794 > Avg methods/class 31 9 9 > Avg lines/method 7,5 7,6 4,1 > > Nr of test methods 67 914 412 > Avg tests/class 0,5 1 1,6 > > % of commented methods 45% 23% 5% > % of commented classes 32% 39% 13% > > > Code is loaded in Pharo with by Metacello configurations, tests are > included, all code included except Grease, Sport, Swazoo, Magritte. > > Let me say few words about the reason I started those measurements: > mostly to find things to improve in Aida but I think results are > interesting more broadly. Specially, because they seems to reveal two > schools of thought about how to code in Smalltalk. Just compare the > number of packages, classes and methods per class, then first two graphs > about number of methods per class, and class inheritance depth. > > Quite interesting results and quite some food for discussion! > > Best regards > Janko > -- Janko Mivšek Svetovalec za informatiko Eranova d.o.o. Ljubljana, Slovenija www.eranova.si tel: 01 514 22 55 faks: 01 514 22 56 gsm: 031 674 565 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256 Intresting :). Could you make some test with ab? http://httpd.apache.org/docs/2.0/programs/ab.html Mth On Nov 15, 2010, at 1:40 PM, Janko Mivšek wrote: > . and here is the code used for those measurements: > > http://www.squeaksource.com/WebCodeStats.html > > Best regards > Janko > > On 15. 11. 2010 13:13, Janko Mivšek wrote: >> Dear Iliaders, >> >> I made few measurements of code from three main Smalltalk web frameworks >> and results are now available at Google >> Docs: >> https://spreadsheets.google.com/ccc?key=0Atnb1W9vuq9ndG4wbUpxNXpKQnFZRlFyQXpHclhZa2c&hl=en#gid=1 >> >> Here you'll find graphs of three distributions: >> >> - number of methods in classes >> - class inheritance depth >> - number of lines in methods >> >> And also the following measurements: >> >> Code stats Aida Seaside Iliad >> ---------------------------------------------- >> Nr of packages 1 74 9 >> Nr of categories 14 123 26 >> Nr of classes 145 943 265 >> Nr of methods 4.465 8.758 2.368 >> Lines of code 33.578 66.337 9.794 >> Avg methods/class 31 9 9 >> Avg lines/method 7,5 7,6 4,1 >> >> Nr of test methods 67 914 412 >> Avg tests/class 0,5 1 1,6 >> >> % of commented methods 45% 23% 5% >> % of commented classes 32% 39% 13% >> >> >> Code is loaded in Pharo with by Metacello configurations, tests are >> included, all code included except Grease, Sport, Swazoo, Magritte. >> >> Let me say few words about the reason I started those measurements: >> mostly to find things to improve in Aida but I think results are >> interesting more broadly. Specially, because they seems to reveal two >> schools of thought about how to code in Smalltalk. Just compare the >> number of packages, classes and methods per class, then first two graphs >> about number of methods per class, and class inheritance depth. >> >> Quite interesting results and quite some food for discussion! >> >> Best regards >> Janko >> > > -- > Janko Mivšek > Svetovalec za informatiko > Eranova d.o.o. > Ljubljana, Slovenija > www.eranova.si > tel: 01 514 22 55 > faks: 01 514 22 56 > gsm: 031 674 565 -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) iF4EAREIAAYFAkzhrAgACgkQGzRV8uCbs7WlkAD8DTU1NXrylHB9nCT8ohengBXC 7xZ8hXadbk9YRa9qPdEA/ikDDR7hsxUWdSyb3WFNDrdjRFlN1dZYbeqlDjbLYt0S =wed1 -----END PGP SIGNATURE----- |
In reply to this post by Janko Mivšek
(sorry if this becomes a duplicate)
There was an error in the spreadsheet so that the first graph was wrong. I made a copy and corrected the first 20 entries (the part graphed). You can see it at: https://spreadsheets.google.com/ccc?key=0ApTGwDtB7FUpdEcwVkxQT2tHUFppejNvQUhEZ2Z1eEE&hl=en Janko's comment about there seeming to be 2 different styles still stands. Also, 9 seems to be an unpopular number of methods per class :-). ../Dave |
Thanks Dave, a bit late and becuase it is actual again, I'm correcting
the results right now. How the heck I put nr.of menthods instead of classes in hedar of that table .. :) Best regards Janko On 24. 11. 2010 17:20, Dave Mason wrote: > (sorry if this becomes a duplicate) > > There was an error in the spreadsheet so that the first graph was > wrong. I made a copy and corrected the first 20 entries (the part > graphed). You can see it at: > > https://spreadsheets.google.com/ccc?key=0ApTGwDtB7FUpdEcwVkxQT2tHUFppejNvQUhEZ2Z1eEE&hl=en > > Janko's comment about there seeming to be 2 different styles still > stands. > > Also, 9 seems to be an unpopular number of methods per class :-). > > ../Dave > -- Janko Mivšek AIDA/Web Smalltalk Web Application Server http://www.aidaweb.si |
Free forum by Nabble | Edit this page |