GoogleCloudPlatform / golang-samples
Unit Size

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

Intro
Learn more...
Unit Size Overall
4% | 17% | 56% | 17% | 4%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
go4% | 17% | 56% | 17% | 4%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
dlp30% | 49% | 17% | 1% | 0%
media14% | 30% | 47% | 8% | 0%
compute4% | 25% | 63% | 5% | <1%
spanner2% | 17% | 71% | 7% | <1%
vertexai9% | 44% | 45% | 1% | <1%
dataproc38% | 47% | 13% | 0% | 0%
batch0% | 87% | 8% | 3% | 0%
bigquery0% | 11% | 66% | 17% | 5%
speech0% | 46% | 51% | 1% | 0%
functions0% | 20% | 31% | 28% | 18%
pubsub0% | 10% | 61% | 28% | 0%
bigtable0% | 21% | 36% | 32% | 9%
modelarmor0% | 71% | 22% | 6% | 0%
storagetransfer0% | 32% | 67% | 0% | 0%
internal0% | 9% | 25% | 37% | 26%
genai0% | 16% | 82% | 1% | 0%
privateca0% | 35% | 64% | 0% | 0%
videointelligence0% | 18% | 81% | 0% | 0%
securitycenter0% | 4% | 75% | 19% | <1%
parametermanager0% | 13% | 68% | 18% | 0%
monitoring0% | 8% | 73% | 15% | 2%
servicedirectory0% | 31% | 25% | 42% | 0%
datastore0% | 16% | 48% | 24% | 10%
dialogflow0% | 26% | 45% | 26% | 1%
testing0% | 25% | 30% | 32% | 11%
kms0% | 5% | 67% | 26% | 0%
profiler0% | 11% | 27% | 18% | 41%
storage0% | 2% | 54% | 43% | <1%
jobs0% | 3% | 76% | 19% | 0%
pubsublite0% | 9% | 56% | 27% | 6%
container_registry0% | 16% | 63% | 20% | 0%
datacatalog0% | 14% | 67% | 16% | 1%
vision0% | 0% | 86% | 12% | 1%
secretmanager0% | 0% | 72% | 26% | <1%
healthcare0% | 0% | 65% | 34% | <1%
asset0% | 0% | 100% | 0% | 0%
firestore0% | 0% | 54% | 27% | 18%
cloudsql0% | 0% | 67% | 18% | 13%
automl0% | 0% | 100% | 0% | 0%
getting-started0% | 0% | 39% | 43% | 16%
translate0% | 0% | 70% | 29% | 0%
iam0% | 0% | 49% | 50% | <1%
aiplatform0% | 0% | 100% | 0% | 0%
run0% | 0% | 25% | 45% | 28%
auth0% | 0% | 68% | 24% | 6%
managedkafka0% | 0% | 74% | 25% | 0%
appengine_flexible0% | 0% | 42% | 37% | 19%
texttospeech0% | 0% | 89% | 8% | 2%
logging0% | 0% | 47% | 47% | 4%
language0% | 0% | 48% | 26% | 25%
endpoints0% | 0% | 48% | 36% | 15%
appengine0% | 0% | 43% | 39% | 16%
eventarc0% | 0% | 46% | 53% | 0%
workflows0% | 0% | 87% | 0% | 12%
opentelemetry0% | 0% | 35% | 39% | 25%
tasks0% | 0% | 75% | 25% | 0%
memorystore0% | 0% | 57% | 27% | 14%
trace0% | 0% | 80% | 0% | 20%
documentai0% | 0% | 100% | 0% | 0%
cdn0% | 0% | 25% | 74% | 0%
routeoptimization0% | 0% | 100% | 0% | 0%
container0% | 0% | 58% | 41% | 0%
errorreporting0% | 0% | 80% | 0% | 19%
mediacdn0% | 0% | 45% | 33% | 20%
dataflow0% | 0% | 0% | 58% | 41%
iap0% | 0% | 0% | 44% | 55%
Alternative Visuals
Longest Units
Top 50 longest units
Unit# linesMcCabe index# params
144 3 7
138 3 2
134 18 10
132 18 10
132 19 3
131 19 4
129 18 9
125 20 4
124 3 4
117 4 3
115 13 2
114 17 9
113 3 6
113 18 9
108 15 5
108 15 4
107 19 2
107 3 2
106 3 6
106 17 8
104 11 0
102 4 3
101 11 5
101 4 4
100 15 8
99 4 7
99 15 8
97 3 2
95 3 3
95 3 2
95 17 1
94 3 6
93 4 3
92 16 4
89 4 6
88 17 1
88 18 0
86 11 4
86 3 2
84 16 4
84 3 4
84 3 4
84 4 4
83 4 3
83 14 7
82 3 2
81 3 10
81 3 5
80 3 5
80 3 5