Skip to content

Instantly share code, notes, and snippets.

@iliakonnov
Created March 19, 2020 17:19
Show Gist options
  • Save iliakonnov/5f010ecf3d1144a6a5399866ad18f571 to your computer and use it in GitHub Desktop.
Save iliakonnov/5f010ecf3d1144a6a5399866ad18f571 to your computer and use it in GitHub Desktop.
sloc in chromium and in other projects
───────────────────────────────────────────────────────────────────────────────
Language Files Lines Blanks Comments Code Complexity
───────────────────────────────────────────────────────────────────────────────
C 352 288903 35009 41638 212256 45085
XML 281 93275 13604 5176 74495 0
HTML 262 4608 926 8 3674 0
Forth 244 93006 13524 0 79482 656
C Header 197 38049 4830 19153 14066 285
Autoconf 80 6398 778 1832 3788 500
m4 56 3842 416 89 3337 0
Extensible Styleshe… 41 8990 1250 0 7740 0
Expect 34 34 0 0 34 0
Shell 18 2105 229 489 1387 252
Prolog 17 922 0 0 922 0
Lua 12 2367 182 127 2058 156
Perl 10 1126 135 189 802 109
AWK 7 971 85 111 775 0
CSS 7 2126 331 358 1437 0
Document Type Defin… 6 424 118 0 306 0
Makefile 6 178 27 84 67 0
Plain Text 6 329 73 0 256 0
Korn Shell 3 406 50 73 283 47
Python 3 618 94 63 461 87
CMake 2 1461 173 125 1163 57
D 2 324 7 9 308 0
JavaScript 2 1748 22 190 1536 38
License 2 741 119 0 622 0
Happy 1 252 40 0 212 0
LEX 1 506 54 63 389 0
Markdown 1 40 12 0 28 0
Module-Definition 1 19 4 3 12 0
Properties File 1 29 5 5 19 0
SVG 1 5896 1 1 5894 0
TeX 1 80 9 45 26 0
YAML 1 244 5 35 204 0
───────────────────────────────────────────────────────────────────────────────
Total 1658 560017 72112 69866 418039 47272
───────────────────────────────────────────────────────────────────────────────
Estimated Cost to Develop $15,271,193
Estimated Schedule Effort 43.227737 months
Estimated People Required 41.847076
───────────────────────────────────────────────────────────────────────────────
───────────────────────────────────────────────────────────────────────────────
Language Files Lines Blanks Comments Code Complexity
───────────────────────────────────────────────────────────────────────────────
HTML 73439 3759353 333781 69152 3356420 0
C++ 43048 12099872 1775244 1152037 9172591 780296
C Header 37952 4578836 789937 983983 2804916 52567
Plain Text 26926 1055685 71704 0 983981 0
JavaScript 17602 2697023 280948 561611 1854464 187414
Java 7009 1334101 178460 240685 914956 86507
Python 5453 1095746 73604 98031 924111 49854
JSON 4117 2005969 3522 0 2002447 0
GN 3545 383843 34136 29307 320400 13692
Objective C++ 3334 609646 93230 67688 448728 33172
SVG 3147 170157 8687 12465 149005 2220
XML 2695 452683 40683 14358 397642 0
IDL 2179 111793 13442 50260 48091 3
CSS 1423 86671 11872 5577 69222 0
Markdown 1410 144961 33763 0 111198 0
C 1066 653783 79674 98353 475756 93548
Protocol Buffers 783 99541 13878 31240 54423 42
PHP 761 41839 4124 10180 27535 2380
YAML 536 30243 2442 1465 26336 0
License 465 104458 18292 0 86166 0
Shell 346 31120 4041 6044 21035 2131
ReStructuredText 326 64992 17678 0 47314 0
Go Template 199 18328 2454 0 15874 0
C# 196 78154 6702 13182 58270 8181
Assembly 195 244365 18739 1111 224515 311
Objective C 127 72127 8409 7666 56052 4802
Autoconf 118 9751 896 1148 7707 450
SQL 116 6192 141 347 5704 3
Perl 103 33800 3742 5885 24173 3135
Patch 102 13575 865 0 12710 0
gitignore 99 1876 121 184 1571 0
C++ Header 88 8105 1168 1636 5301 87
Extensible Styleshe… 71 2271 133 0 2138 0
CMake 59 9220 660 662 7898 179
Android Interface D… 58 1172 241 482 449 0
Makefile 48 4410 741 540 3129 82
BASH 44 3401 499 585 2317 276
Batch 41 1819 306 118 1395 404
CSV 34 81717 0 0 81717 0
Jinja 34 1473 118 25 1330 97
Document Type Defin… 30 23198 3436 0 19762 0
Bazel 29 8330 504 382 7444 71
m4 26 4805 581 1043 3181 0
Sass 25 3160 424 640 2096 0
Ruby 24 5880 742 236 4902 545
TypeScript 20 444 75 71 298 12
Module-Definition 19 435 75 76 284 0
Dockerfile 16 1256 142 147 967 376
Handlebars 13 120 4 0 116 0
MSBuild 10 547 29 37 481 1
Go 9 1073 95 106 872 203
XML Schema 8 908 165 0 743 0
Powershell 7 81 7 11 63 13
FIDL 6 135 28 51 56 0
Mako 6 135 29 13 93 11
Properties File 6 34 2 18 14 0
Vim Script 6 339 21 0 318 6
Emacs Lisp 5 738 127 176 435 15
JSX 5 849 112 60 677 49
Dart 3 132 20 7 105 15
Groovy 3 950 85 114 751 93
Elm 2 542 111 32 399 21
Gradle 2 196 30 18 148 0
Haxe 2 167 25 5 137 10
Rakefile 2 180 32 11 137 8
TOML 2 70 11 0 59 0
TypeScript Typings 2 229 19 38 172 25
Vue 2 128 6 0 122 4
sed 2 48 11 20 17 0
AWK 1 25 5 3 17 0
CoffeeScript 1 13 3 0 10 0
Gemfile 1 3 1 0 2 0
Happy 1 490 47 0 443 0
LD Script 1 7 1 0 6 0
Swift 1 460 51 58 351 0
Swig 1 98 14 0 84 0
Systemd 1 1 0 0 1 0
nuspec 1 39 0 0 39 0
───────────────────────────────────────────────────────────────────────────────
Total 239595 32260316 3936147 3469380 24854789 1323311
───────────────────────────────────────────────────────────────────────────────
Estimated Cost to Develop $1,113,719,723
Estimated Schedule Effort 220.630537 months
Estimated People Required 597.950097
───────────────────────────────────────────────────────────────────────────────

Sloc Cloc and Code (scc)

Comparsion

Project   Files     Lines   Comments     Code  Complexity
apache    1658      560017    69866    418039       47272
php       2424     1495123   107239   1262988      177165
mariadb   5373     3121757   474873   2343602      266485
linux     63702   27863193  3464768  20726139     2022018
chromium  239595  32260316  3469380  24854789     1323311
mariadb+php+apache:
          9455     5176897   651978   4024629      490922
mariadb+php+apache+linux:
          73157   33040090  4116746  24750768     2512940

chromium

https://github.com/chromium/chromium

Files     Lines   Blanks  Comments     Code   Complexity
239595  32260316  3936147   3469380 24854789     1323311
────────────────────────────────────────────────────────
Estimated Cost to Develop $1,113,719,723
Estimated Schedule Effort 220.630537 months
Estimated People Required 597.950097

PHP

https://github.com/php/php-src

Files     Lines   Blanks  Comments     Code   Complexity
2424    1495123   124896    107239  1262988        177165
────────────────────────────────────────────────────────
Estimated Cost to Develop $48,760,091
Estimated Schedule Effort 67.197837 months
Estimated People Required 85.953561

mariadb

https://github.com/MariaDB/server

Files     Lines   Blanks  Comments     Code   Complexity
5373    3121757   303282    474873  2343602        266485
────────────────────────────────────────────────────────
Estimated Cost to Develop $93,319,709
Estimated Schedule Effort 85.996477 months
Estimated People Required 128.542686

apache

https://github.com/apache/httpd

Files     Lines   Blanks  Comments     Code   Complexity
1658     560017    72112     69866   418039         47272
────────────────────────────────────────────────────────
Estimated Cost to Develop $15,271,193
Estimated Schedule Effort 43.227737 months
Estimated People Required 41.847076

linux

https://github.com/torvalds/linux

Files     Lines   Blanks  Comments     Code Complexity
63702  27863193  3672286   3464768 20726139    2022018
───────────────────────────────────────────────────────────────────────────────
Estimated Cost to Develop $920,321,680
Estimated Schedule Effort 205.204956 months
Estimated People Required 531.259196
───────────────────────────────────────────────────────────────────────────────
Language Files Lines Blanks Comments Code Complexity
───────────────────────────────────────────────────────────────────────────────
C 28268 19324106 2782813 2309760 14231533 1963667
C Header 20249 5935329 537068 1045896 4352365 42042
Plain Text 3850 325359 60964 0 264395 0
Device Tree 3242 886917 106396 74180 706341 3
Makefile 2553 63418 9710 10863 42845 414
ReStructuredText 2230 451371 108632 0 342739 0
Assembly 1326 434441 35865 2352 396224 6233
Shell 526 78986 13095 10305 55586 4264
YAML 500 50192 8456 2339 39397 0
JSON 316 172427 0 0 172427 0
gitignore 250 1211 24 88 1099 0
Python 118 35852 1771 2231 31850 1419
Perl 60 45324 5055 3996 36273 3354
SVG 59 39038 78 1405 37555 0
BASH 54 2424 331 328 1765 266
Extensible Styleshe… 15 300 39 0 261 0
LD Script 15 412 47 48 317 0
AWK 11 1709 172 157 1380 0
Happy 9 5866 699 0 5167 0
C++ 8 2277 229 68 1980 309
LEX 8 2641 326 300 2015 0
Autoconf 6 347 24 20 303 5
CSV 6 203 1 0 202 0
License 5 746 138 0 608 0
Unreal Script 5 716 108 162 446 24
Bazel 2 699 146 131 422 8
C++ Header 2 125 11 55 59 2
Module-Definition 2 124 15 0 109 4
CSS 1 137 28 29 80 0
Gherkin Specificati… 1 252 28 50 174 0
HEX 1 86 0 0 86 0
Ruby 1 29 4 0 25 1
Systemd 1 75 11 0 64 0
Vim Script 1 42 0 0 42 3
sed 1 12 2 5 5 0
───────────────────────────────────────────────────────────────────────────────
Total 63702 27863193 3672286 3464768 20726139 2022018
───────────────────────────────────────────────────────────────────────────────
Estimated Cost to Develop $920,321,680
Estimated Schedule Effort 205.204956 months
Estimated People Required 531.259196
───────────────────────────────────────────────────────────────────────────────
───────────────────────────────────────────────────────────────────────────────
Language Files Lines Blanks Comments Code Complexity
───────────────────────────────────────────────────────────────────────────────
C++ 1711 1416490 167676 251343 997471 166883
C Header 1437 399568 44843 116767 237958 10372
C 917 870716 59277 73364 738075 71132
CMake 232 20983 2209 4118 14656 439
Shell 215 61194 5447 7754 47993 5059
Perl 170 56773 8733 8365 39675 4431
Plain Text 131 153033 2308 0 150725 0
C++ Header 102 10268 1438 1980 6850 336
Ruby 91 9789 858 252 8679 533
Autoconf 71 15712 2009 2536 11167 1920
Module-Definition 65 1622 50 23 1549 55
XML 42 6479 652 65 5762 0
Python 30 4278 220 254 3804 312
SQL 24 3074 366 376 2332 65
m4 24 21593 2069 4134 15390 0
BASH 14 686 97 137 452 69
Puppet 12 6587 0 4 6583 21
D 10 563 60 14 489 23
JSON 9 30007 0 0 30007 0
Java 9 2313 497 125 1691 356
License 8 2203 362 0 1841 0
Markdown 7 694 225 0 469 0
Batch 4 21 1 3 17 0
CSV 4 14 0 0 14 0
HTML 4 437 12 0 425 0
JavaScript 4 21553 3224 2632 15697 4447
YAML 4 484 28 14 442 0
LEX 3 758 174 125 459 0
gitignore 3 890 89 101 700 0
Assembly 2 591 33 0 558 28
CSS 2 581 33 155 393 0
Happy 2 911 142 0 769 0
Makefile 2 86 20 8 58 0
sed 2 16 0 0 16 0
AWK 1 25 3 2 20 0
Monkey C 1 15 1 7 7 0
PHP 1 37 11 2 24 3
Powershell 1 11 1 3 7 1
SAS 1 68 14 0 54 0
Swig 1 634 100 210 324 0
───────────────────────────────────────────────────────────────────────────────
Total 5373 3121757 303282 474873 2343602 266485
───────────────────────────────────────────────────────────────────────────────
Estimated Cost to Develop $93,319,709
Estimated Schedule Effort 85.996477 months
Estimated People Required 128.542686
───────────────────────────────────────────────────────────────────────────────
───────────────────────────────────────────────────────────────────────────────
Language Files Lines Blanks Comments Code Complexity
───────────────────────────────────────────────────────────────────────────────
C Header 883 273815 23877 23375 226563 26672
C 861 1101213 87351 74682 939180 144818
PHP 142 24452 4990 4018 15444 2114
Web Services Descri… 89 13294 572 192 12530 0
m4 89 19085 2225 1805 15055 0
JSON 56 139 6 0 133 0
Plain Text 44 6556 47 0 6509 0
XML 41 1857 104 10 1743 0
Markdown 26 4381 1085 0 3296 0
Autoconf 24 3823 356 263 3204 296
C++ 19 6768 1132 566 5070 1006
YAML 17 984 34 33 917 0
GLSL 16 366 62 31 273 30
Shell 16 9645 640 899 8106 967
Extensible Styleshe… 13 198 16 0 182 0
XML Schema 10 906 30 0 876 0
Batch 9 309 48 0 261 69
HTML 9 23 0 0 23 0
License 9 1325 209 0 1116 0
Lua 8 8610 443 636 7531 694
AWK 5 237 28 16 193 0
CSV 5 27 0 0 27 0
Document Type Defin… 5 57 11 0 46 0
Module-Definition 5 1876 1 6 1869 0
Happy 4 2392 296 0 2096 0
D 3 193 11 37 145 15
LEX 3 3785 602 404 2779 0
JavaScript 2 3997 302 129 3566 442
Patch 2 3683 214 0 3469 0
ReStructuredText 2 31 6 0 25 0
BASH 1 50 5 1 44 8
Bazel 1 33 8 0 25 2
GDScript 1 1 0 0 1 0
Makefile 1 265 45 17 203 13
Monkey C 1 27 3 0 24 0
Perl 1 425 81 29 315 19
gitignore 1 295 56 90 149 0
───────────────────────────────────────────────────────────────────────────────
Total 2424 1495123 124896 107239 1262988 177165
───────────────────────────────────────────────────────────────────────────────
Estimated Cost to Develop $48,760,091
Estimated Schedule Effort 67.197837 months
Estimated People Required 85.953561
───────────────────────────────────────────────────────────────────────────────
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment