Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance compared with cgag/loc #1

Open
jiacai2050 opened this issue Sep 20, 2022 · 0 comments
Open

Performance compared with cgag/loc #1

jiacai2050 opened this issue Sep 20, 2022 · 0 comments

Comments

@jiacai2050
Copy link
Owner

Tested project

  • Zig source code

cgag/loc

time loc

--------------------------------------------------------------------------------
 Language             Files        Lines        Blank      Comment         Code
--------------------------------------------------------------------------------
 C/C++ Header          7452      2585285       298041       302527      1984717
 Zig                    714       255927        25435        27482       203010
 C                     3727       176733        18896        26925       130912
 C++                    176        63710         6669         8343        48698
 Assembly               744        34900         2599         6265        26036
 Autoconf                35        13576          130         4500         8946
 JavaScript               1         2024          209           55         1760
 Plain Text               3          933          177            0          756
 HTML                     1          662           51            0          611
--------------------------------------------------------------------------------
 Total                12853      3133750       352207       376097      2405446
--------------------------------------------------------------------------------

real 0m0.612s
user 0m0.565s
sys 0m0.579s

This project

zig build -Drelease-small
time ./zig-out/bin/loc ~/x/lib/zig

Language   Files Lines   Code    Comment Blank  
---------- ----- ------- ------- ------- ------ 
C          11167 2748036 2401736 30181   316119 
Zig        695   236749  183948  27460   25341  
JavaScript 1     2024    1760    55      209    
HTML       1     662     611     0       51     

real 0m1.976s
user 0m1.200s
sys 0m0.342s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant