zigcli
zigcli copied to clipboard
Performance compared with cgag/loc
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