golang / benchmarks
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 91 files with 17,801 lines of code.
    • 3 very long files (9,704 lines of code)
    • 1 long files (524 lines of code)
    • 11 medium size files (2,917 lines of codeclsfd_ftr_w_mp_ins)
    • 12 small files (1,693 lines of code)
    • 64 very small files (2,963 lines of code)
54% | 2% | 16% | 9% | 16%
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
go57% | 3% | 15% | 8% | 15%
toml0% | 0% | 29% | 38% | 32%
cfg0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
garbage98% | 0% | 0% | 0% | 1%
json96% | 0% | 0% | 0% | 3%
cmd/bent50% | 0% | 24% | 13% | 11%
sweet/benchmarks0% | 22% | 35% | 7% | 34%
driver0% | 0% | 61% | 12% | 25%
sweet/cmd0% | 0% | 50% | 47% | 1%
sweet/generators0% | 0% | 70% | 16% | 13%
stats0% | 0% | 0% | 49% | 50%
sweet/harnesses0% | 0% | 0% | 34% | 65%
sweet/cli0% | 0% | 0% | 37% | 62%
sweet/common0% | 0% | 0% | 22% | 77%
cmd/bench0% | 0% | 0% | 0% | 100%
sweet/source-assets0% | 0% | 0% | 0% | 100%
http0% | 0% | 0% | 0% | 100%
build0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
nethttp.go
in garbage
6803 319
json_data.go
in json
1805 -
bent.go
in cmd/bent
1096 20
driver.go
in sweet/benchmarks/internal/driver
524 38
driver.go
in driver
321 22
configuration.go
in cmd/bent
311 10
terms.go
in sweet/benchmarks/bleve-query
293 -
main.go
in sweet/benchmarks/tile38
283 17
copy.go
in sweet/generators
269 9
driver_windows.go
in driver
267 14
benchmark.go
in sweet/cmd/sweet
254 5
run.go
in sweet/cmd/sweet
245 9
main.go
in sweet/benchmarks/go-build
233 10
suites.toml
in cmd/bent/configs
229 -
tile38.go
in sweet/generators
212 5
get.go
in sweet/cmd/sweet
195 9
http_server.go
in sweet/benchmarks/gvisor
173 6
edm.go
in stats
164 9
benchmarks-all.toml
in cmd/bent/configs
156 -
gen.go
in sweet/cmd/sweet
144 5
benchmarks-50.toml
in cmd/bent/configs
141 -
local.go
in sweet/harnesses
133 12
put.go
in sweet/cmd/sweet
131 7
driver_linux.go
in driver
124 5
sc.go
in sweet/cli/subcommands
115 5
gvisor.go
in sweet/generators
114 1
log.go
in sweet/common/log
103 11
gcs.go
in sweet/cli/bootstrap
97 4
go-build.go
in sweet/harnesses
96 4
edmx.go
in stats
94 15
benchmarks-trial.toml
in cmd/bent/configs
94 -
env.go
in sweet/common
94 8
main.go
in sweet/benchmarks/bleve-index
92 4
garbage.go
in garbage
89 5
main.go
in sweet/benchmarks/gopher-lua
86 5
bent.go
in cmd/bench
85 3
server.go
in sweet/source-assets/gvisor/http
85 2
driver_plan9.go
in driver
82 8
copy.go
in sweet/common/fileutil
80 4
http.go
in http
77 5
driver_unix.go
in driver
76 5
bleve-query.go
in sweet/generators
75 1
main.go
in cmd/bench
74 4
itree.go
in stats
72 6
main.go
in sweet/benchmarks/gvisor
65 3
igor.go
in sweet/benchmarks/biogo-igor
65 1
configurations-cronjob.toml
in cmd/bent/configs
64 -
config.go
in sweet/common
62 2
json.go
in json
62 5
gotool.go
in sweet/common
60 6
Files With Most Units (Top 20)
File# lines# units
nethttp.go
in garbage
6803 319
driver.go
in sweet/benchmarks/internal/driver
524 38
driver.go
in driver
321 22
bent.go
in cmd/bent
1096 20
main.go
in sweet/benchmarks/tile38
283 17
edmx.go
in stats
94 15
driver_windows.go
in driver
267 14
local.go
in sweet/harnesses
133 12
log.go
in sweet/common/log
103 11
configuration.go
in cmd/bent
311 10
main.go
in sweet/benchmarks/go-build
233 10
edm.go
in stats
164 9
get.go
in sweet/cmd/sweet
195 9
run.go
in sweet/cmd/sweet
245 9
copy.go
in sweet/generators
269 9
driver_plan9.go
in driver
82 8
env.go
in sweet/common
94 8
put.go
in sweet/cmd/sweet
131 7
itree.go
in stats
72 6
hash.go
in sweet/cli/bootstrap
51 6
Files With Long Lines (Top 17)

There are 17 files with lines longer than 120 characters. In total, there are 52 long lines.

File# lines# units# long lines
bent.go
in cmd/bent
1096 20 14
driver_windows.go
in driver
267 14 8
run.go
in sweet/cmd/sweet
245 9 5
nethttp.go
in garbage
6803 319 4
get.go
in sweet/cmd/sweet
195 9 4
driver.go
in driver
321 22 3
gen.go
in sweet/cmd/sweet
144 5 3
driver.go
in sweet/benchmarks/internal/driver
524 38 2
benchmarks-gcplus.toml
in cmd/bent/configs
31 - 1
benchmarks-50.toml
in cmd/bent/configs
141 - 1
suites.toml
in cmd/bent/configs
229 - 1
driver_go12.go
in driver
8 1 1
driver_linux.go
in driver
124 5 1
build.go
in build
47 3 1
gvisor.go
in sweet/harnesses
55 4 1
common.go
in sweet/benchmarks/gvisor
46 3 1
main.go
in sweet/benchmarks/go-build
233 10 1