Skip to content

Instantly share code, notes, and snippets.

@qbit
Created October 24, 2017 01:05
Show Gist options
  • Save qbit/97513e6fad46f945d3c815187b4d440b to your computer and use it in GitHub Desktop.
Save qbit/97513e6fad46f945d3c815187b4d440b to your computer and use it in GitHub Desktop.
Comparison of chromium+electron and OpenBSD src trees.

Electron

-----------------------------------------------------------------------------------
Language                         files          blank        comment           code
-----------------------------------------------------------------------------------
C++                                312           9711           4385          46244
Markdown                           513          18985              0          43674
JavaScript                         199           2979           1012          22966
C/C++ Header                       337           5855           4674          19227
Objective C++                       47           1573            713           6642
Python                              39            911            288           2909
HTML                               123            102              0           1885
YAML                                 5             23             16            347
Bourne Shell                         8             74             70            309
JSON                                15              3              0            243
Windows Resource File                1             21             33             85
Bourne Again Shell                   7             23             21             70
Dockerfile                           1              5              4              9
PowerShell                           1              0              0              2
CSS                                  1              0              0              1
CoffeeScript                         1              0              0              1
-----------------------------------------------------------------------------------
SUM:                              1610          40265          11216         144614
-----------------------------------------------------------------------------------

Chromium

qbit@slip[0]:chromium-61.0.3163.100λ cloc .                 
  209609 text files.
  189475 unique files.                                          
Out of memory!800
panic: POPSTACK
qbit@slip[1]:chromium-61.0.3163.100λ 

Entire OpenBSD src tree (includes clang and gcc)

---------------------------------------------------------------------------------------
Language                             files          blank        comment           code
---------------------------------------------------------------------------------------
C                                    16045        1151514        1394479        6409501
C++                                   9027         380730         428645        2129520
C/C++ Header                         12480         401032         766593        2026578
Perl                                  4122         157859         208622         982209
HTML                                   903          33457           6243         471775
Bourne Shell                          1298          62248          76580         469701
Markdown                               259          46737              0         402916
PO File                                129         141599         190451         319672
Python                                1208          31439          29325         120108
Assembly                               896          19716          53416         107674
yacc                                    89          13030           8543          99830
Expect                                 459          14444          21708          74919
make                                  2271          14044           7875          59234
m4                                     179           6227           3099          54859
Windows Module Definition              179           5820             41          43062
ASP.Net                                  2           1013             18          24720
TeX                                     19           3073          12237          21050
CMake                                  660           3043           2162          20623
Lisp                                   104           1551            455          13386
Pascal                                  42           2045           6029          10822
lex                                     32           1620           1791           9035
Fortran 77                             183            893           2886           7495
Objective C                            201           1772            830           6473
Objective C++                           16           1019            998           6024
awk                                     51            500           1384           4363
OCaml                                   59           1355           2442           4100
Go                                      28            544            655           3876
Fortran 90                              73            264            818           3457
XML                                     36            193             53           3389
CSS                                     22            528            251           3087
Korn Shell                              12            565            958           2738
YAML                                    52             20            113           2186
sed                                     47            221            596           1851
Antlr                                    2              0              0           1726
DOS Batch                               29            258             97           1507
JSON                                    21              3              0           1190
JavaScript                               6            106            182            856
Racket                                   3             76            132            626
C#                                       8             87            108            557
Bourne Again Shell                       7            111            196            532
Forth                                    1             96            123            497
Windows Message File                     1            102             11            489
vim script                               9             60             78            395
Mathematica                             93             18              0            350
DTD                                      1             91             58            335
MSBuild script                           1              0              7            254
R                                       32             26             12            252
diff                                    20             37            248            248
Windows Resource File                    7             35             12            194
XSLT                                     1             46              9            187
MATLAB                                   6             69              3            173
C Shell                                  2             17             22            132
GLSL                                     1             16              0             61
Protocol Buffers                         1             47            168             47
Java                                     3              5             24             47
Prolog                                   4             30             -1             44
D                                        6              7              7             42
Dockerfile                               6             26             90             38
SAS                                      1             14             21             29
Ada                                      4             13             45             23
NAnt script                              1              0              0              9
INI                                      1              1              0              6
Standard ML                              2              0              0              4
Lua                                      1              0              1              2
---------------------------------------------------------------------------------------
SUM:                                 51464        2501512        3231949       13931085
---------------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment