JetBrains / bun
Unit Size

The distribution of size of units (measured in lines of code).

Intro
Learn more...
Unit Size Overall
13% | 14% | 23% | 19% | 29%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cpp18% | 15% | 21% | 18% | 26%
ts11% | 12% | 25% | 20% | 29%
js11% | 26% | 34% | 14% | 12%
c8% | 8% | 28% | 26% | 28%
h3% | 12% | 15% | 17% | 52%
rb0% | 0% | 16% | 45% | 38%
pl0% | 0% | 0% | 66% | 33%
tsx0% | 0% | 0% | 56% | 43%
rs0% | 0% | 0% | 0% | 100%
cjs0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src14% | 14% | 22% | 18% | 29%
packages6% | 15% | 28% | 21% | 27%
misctools30% | 0% | 58% | 4% | 6%
bench0% | 26% | 23% | 19% | 31%
scripts0% | 0% | 63% | 33% | 2%
Alternative Visuals
Longest Units
Top 50 longest units
Unit# linesMcCabe index# params
1463 148 3
558 1 2
475 168 8
432 6 1
329 38 1
321 48 1
321 87 0
297 61 2
240 51 1
240 58 2
235 57 3
214 40 2
208 103 1
206 68 5
203 1 2
185 103 1
184 35 0
184 42 1
177 28 1
177 65 3
176 73 4
174 35 0
172 36 2
167 66 3
164 65 3
159 56 3
159 40 10
158 2 1
157 31 6
156 31 1
156 51 3
147 44 5
144 21 3
141 35 2
141 25 2
139 24 2
139 37 3
139 27 6
139 27 6
139 48 7
134 45 3
133 1 2
130 61 4
128 33 1
123 31 2
123 38 3
122 35 1
122 47 2
120 23 4
120 37 8