Re:Google paper comparing performance of C++, Java, Scala, a...
by igouy on Friday June 03, 2011 @09:29PM
(#2618625)
Here are GZip minimally compressed source-code sizes after removal of comments and removal of duplicate whitespace characters -
Benchmark GZ Bytes Factor (wc -l Factor from paper)
Java Pro 5198 1.65x 1.9x
Java 4403 1.40x 1.6x
C++ 4229 1.34x 1.3x
Go 3768 1.20x 1.4x
Go Pro 3259 1.03x 1.2x
Scala 3138 ==== ===
Python 2755 0.87x ????
Scala Pro 1929 0.61x 0.5x
Re:Google paper comparing performance of C++, Java, Scala, a...
by lbolla on Tuesday June 07, 2011 @09:04AM
(#2628931)
This is the result using cloc:
Bench files blank comment code
cpp 4 145 236 501
go 5 153 239 546
go_pro 5 132 233 457
java 8 151 352 605
java_pro 8 157 351 772
python 2 110 204 334
scala 2 104 224 384
scala_pro 2 59 62 230
Here is the output of sloccount:
Compare it to the paper.