golang / perf
File Size

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

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 61 files with 5,593 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (522 lines of code)
    • 6 medium size files (1,658 lines of codeclsfd_ftr_w_mp_ins)
    • 11 small files (1,529 lines of code)
    • 43 very small files (1,884 lines of code)
0% | 9% | 29% | 27% | 33%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
go0% | 10% | 31% | 26% | 31%
html0% | 0% | 0% | 45% | 54%
yaml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
storage/db0% | 69% | 0% | 18% | 12%
analysis/app0% | 0% | 77% | 0% | 22%
storage/benchfmt0% | 0% | 100% | 0% | 0%
internal/stats0% | 0% | 21% | 38% | 40%
benchstat0% | 0% | 29% | 42% | 28%
storage0% | 0% | 100% | 0% | 0%
analysis/appengine0% | 0% | 0% | 47% | 52%
storage/cmd0% | 0% | 0% | 100% | 0%
storage/appengine0% | 0% | 0% | 60% | 40%
cmd/benchstat0% | 0% | 0% | 100% | 0%
cmd/benchsave0% | 0% | 0% | 52% | 47%
storage/app0% | 0% | 0% | 0% | 100%
storage/fs0% | 0% | 0% | 0% | 100%
internal/diff0% | 0% | 0% | 0% | 100%
storage/localperfdata0% | 0% | 0% | 0% | 100%
internal/basedir0% | 0% | 0% | 0% | 100%
analysis/localperf0% | 0% | 0% | 0% | 100%
storage/query0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
db.go
in storage/db
522 28
trend.go
in analysis/app
391 11
compare.go
in analysis/app
318 14
benchfmt.go
in storage/benchfmt
245 16
sample.go
in internal/stats
242 20
text.go
in benchstat
240 10
client.go
in storage
222 15
udist.go
in internal/stats
193 9
table.go
in benchstat
175 3
data.go
in benchstat
165 10
compare.html
in analysis/appengine/template
162 -
query.go
in storage/db
139 3
utest.go
in internal/stats
134 3
reindex.go
in storage/cmd/reindex
118 4
main.go
in cmd/benchstat
114 2
app.go
in storage/appengine
114 7
benchsave.go
in cmd/benchsave
109 3
normaldist.go
in internal/stats
106 7
upload.go
in storage/app
98 1
oauth.go
in cmd/benchsave
97 6
scaler.go
in benchstat
96 3
ttest.go
in internal/stats
95 5
dist.go
in internal/stats
91 2
alg.go
in internal/stats
83 6
trend.html
in analysis/appengine/template
74 -
html.go
in benchstat
73 3
query.go
in storage/app
70 2
kza.go
in analysis/app
69 3
fs.go
in storage/fs
65 6
index.html
in analysis/appengine/template
61 -
mathx.go
in internal/stats
54 5
beta.go
in internal/stats
53 4
diff.go
in internal/diff
53 2
parse.go
in analysis/app
48 1
index.html
in storage/appengine/static
47 -
app.go
in storage/localperfdata
44 1
basedir.go
in internal/basedir
44 2
app.go
in analysis/localperf
42 2
deltadist.go
in internal/stats
41 6
query.go
in storage/query
40 1
delta.go
in benchstat
39 4
cloud.go
in storage/db/dbtest
38 1
app.go
in analysis/appengine
37 3
index.go
in analysis/app
35 1
dbtest.go
in storage/db/dbtest
32 1
local.go
in storage/fs/local
30 3
app.go
in analysis/app
26 2
app.go
in storage/app
25 2
tdist.go
in internal/stats
23 3
gcs.go
in storage/fs/gcs
21 2
Files With Most Units (Top 20)
File# lines# units
db.go
in storage/db
522 28
sample.go
in internal/stats
242 20
benchfmt.go
in storage/benchfmt
245 16
client.go
in storage
222 15
compare.go
in analysis/app
318 14
trend.go
in analysis/app
391 11
text.go
in benchstat
240 10
data.go
in benchstat
165 10
udist.go
in internal/stats
193 9
app.go
in storage/appengine
114 7
normaldist.go
in internal/stats
106 7
oauth.go
in cmd/benchsave
97 6
fs.go
in storage/fs
65 6
deltadist.go
in internal/stats
41 6
alg.go
in internal/stats
83 6
mathx.go
in internal/stats
54 5
ttest.go
in internal/stats
95 5
reindex.go
in storage/cmd/reindex
118 4
beta.go
in internal/stats
53 4
delta.go
in benchstat
39 4
Files With Long Lines (Top 15)

There are 15 files with lines longer than 120 characters. In total, there are 34 long lines.

File# lines# units# long lines
index.html
in storage/appengine/static
47 - 7
query.go
in storage/db
139 3 5
trend.go
in analysis/app
391 11 5
db.go
in storage/db
522 28 4
compare.html
in analysis/appengine/template
162 - 2
html.go
in benchstat
73 3 2
reindex.go
in storage/cmd/reindex
118 4 1
upload.html
in storage/appengine/static
13 - 1
cloud.go
in storage/db/dbtest
38 1 1
app.go
in storage/localperfdata
44 1 1
index.html
in analysis/appengine/template
61 - 1
compare.go
in analysis/app
318 14 1
app.go
in analysis/localperf
42 2 1
text.go
in benchstat
240 10 1
delta.go
in benchstat
39 4 1