mirror of https://gogs.blitter.com/RLabs/xs
Update page 'SLOC of openssh-portable vs. xs'
parent
51e2c2c8ba
commit
e0c3f0daf4
|
@ -1,4 +1,4 @@
|
|||
### A comparison of the total code complexity of hkexsh versus openssh-portable
|
||||
### A comparison of the total code complexity of xs versus openssh-portable
|
||||
|
||||
Mostly for my own interest, but a concrete illustration that Golang has a very good net and crypto library and higher-level array/slice handling than C, which simplifies code immensely and is also hopefully more secure :p
|
||||
|
||||
|
@ -18,13 +18,14 @@ $ sloc openssh-portable
|
|||
|
||||
|
||||
```
|
||||
$ sloc hkexsh
|
||||
$ sloc xs
|
||||
Languages Files Code Comment Blank Total CodeLns
|
||||
Total 39 3179 971 586 4736 100.0%
|
||||
Go 19 2803 946 446 4195 88.6%
|
||||
Markdown 3 198 0 81 279 5.9%
|
||||
Make 8 122 0 46 168 3.5%
|
||||
Text 7 33 0 6 39 0.8%
|
||||
Shell 2 23 25 7 55 1.2%
|
||||
|
||||
Total 34 3658 1231 655 5544 100.0%
|
||||
Go 19 3230 1199 507 4936 89.0%
|
||||
Markdown 2 181 0 76 257 4.6%
|
||||
Make 7 148 4 50 202 3.6%
|
||||
YAML 1 39 0 5 44 0.8%
|
||||
Text 1 30 0 7 37 0.7%
|
||||
Modula 1 16 0 2 18 0.3%
|
||||
Shell 3 14 28 8 50 0.9%
|
||||
```
|
Loading…
Reference in New Issue