about summary refs log tree commit diff stats
path: root/stats.txt
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-12-06 01:12:08 -0800
committerKartik Agaram <vc@akkartik.com>2019-12-06 01:12:08 -0800
commit68719bebc02ca355aa96dee2497f511d24606fc8 (patch)
tree4f279ad52a1f83e386672b81eeb1f95e4ae9d692 /stats.txt
parentb6d62cc91c144ad15a2d8361a95be99b1003c5ae (diff)
downloadmu-68719bebc02ca355aa96dee2497f511d24606fc8.tar.gz
5794
Rather surprisingly, all the treeshake tooling is done in just about 2
hours of work. From now on it'll be easier to update stats.txt. Observations:

a) Binaries are tiny compared to conventional stacks. Tens of KB.
b) ~80% of binaries are tests and unused libraries in all my apps.
c) ~75% of LoC in SubX sources are tests or comments.
Diffstat (limited to 'stats.txt')
-rw-r--r--stats.txt82
1 files changed, 48 insertions, 34 deletions
diff --git a/stats.txt b/stats.txt
index fcf0191f..393f82fc 100644
--- a/stats.txt
+++ b/stats.txt
@@ -1,36 +1,50 @@
-                          Initial   -tests/whitespace/comments
-## Lines in source
-standard library           9597     2316
-apps/crenshaw2-1b.subx      798      176
-apps/crenshaw2-1.subx       601      180
-apps/factorial.subx         107       28
-apps/handle.subx            361       58
-apps/hex.subx              1511      144
-apps/pack.subx             7348     1054
-apps/assort.subx           1318      284
-apps/dquotes.subx          2694      497
-apps/survey.subx           4573      998
+## Lines in source files
+                          Initial   -whitespace/comments/tests
+apps/factorial.subx         120       44
+apps/crenshaw2-1.subx       561      180
+apps/crenshaw2-1b.subx      757      186
+apps/handle.subx            428       44
+apps/hex.subx              1442      149
+apps/survey.subx           4733      905
+apps/pack.subx             5881      840
+apps/dquotes.subx          1925      383
+apps/assort.subx            905      183
+apps/tests.subx             284      137
+apps/sigils.subx           4641      896
+apps/calls.subx             360      448
+apps/braces.subx           1785      121
+apps/mu.subx (incomplete)  4038     1330
 
-## Bytes in executable
-apps/crenshaw2-1          17612     4112
-apps/crenshaw2-1b         18171     4140
-apps/factorial            16530     3488
-apps/handle               17323     3582
-apps/hex                  22684     4909
-apps/pack                 37316     7825
-apps/assort               22506     5342
-apps/dquotes              27186     5849
-apps/survey               42791    11258
+## Total source lines needed including libraries
+                          Initial   -whitespace/comments/tests/dead code
+apps/factorial.subx        8436     1700
+apps/crenshaw2-1.subx      8644     1925
+apps/crenshaw2-1b.subx     8736     1931
+apps/handle.subx           8601     1638
+apps/hex.subx              9065     1908
+apps/survey.subx          10217     3248
+apps/pack.subx            10589     2727
+apps/dquotes.subx          9262     2468
+apps/assort.subx           8686     2425
+apps/tests.subx            8519     2214
+apps/sigils.subx          10578     3043
+apps/calls.subx            9242     2388
+apps/braces.subx           8545     2111
+apps/mu.subx (incomplete) 10804     3421
 
-# lines per test (including whitespace/comments)
-                          num tests     num lines     lines/test
-apps/crenshaw2-1.subx        2            585          292.5
-apps/crenshaw2-1b.subx       4            785          196.25
-apps/factorial.subx          1            117          117
-apps/handle.subx             4            412          103
-apps/hex.subx               12           1515          126.25
-apps/pack.subx              42           5977          142.3
-apps/assort.subx             1            839          839
-apps/dquotes.subx           26           2680          103
-apps/survey.subx            18           4570          254
-apps/subx-common.subx       32           3098           96.8125
+## executable size in KB
+                          Initial   -tests/dead code
+apps/crenshaw2-1            41        4.3
+apps/crenshaw2-1b           42        5.2
+apps/factorial              42        5.2
+apps/handle                 42        4.2
+apps/hex                    45        5.0
+apps/survey                 51        9.6
+apps/pack                   54        7.6
+apps/dquotes                46        6.5
+apps/assort                 42        6.4
+apps/tests                  41        5.8
+apps/sigils                 54        9.1
+apps/calls                  47        7.1
+apps/braces                 42        5.9
+apps/mu (incomplete)        62       13.0