facebookincubator / fbender
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 62 files with 2,938 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 0 medium size files (0 lines of codeclsfd_ftr_w_mp_ins)
    • 4 small files (479 lines of code)
    • 58 very small files (2,459 lines of code)
0% | 0% | 0% | 16% | 83%
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% | 0% | 0% | 16% | 83%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
flags0% | 0% | 0% | 41% | 58%
cmd0% | 0% | 0% | 82% | 17%
cmd/core0% | 0% | 0% | 17% | 82%
cmd/http0% | 0% | 0% | 82% | 17%
tester0% | 0% | 0% | 0% | 100%
cmd/dns0% | 0% | 0% | 0% | 100%
cmd/dhcpv40% | 0% | 0% | 0% | 100%
cmd/dhcpv60% | 0% | 0% | 0% | 100%
tester/run0% | 0% | 0% | 0% | 100%
utils0% | 0% | 0% | 0% | 100%
metric0% | 0% | 0% | 0% | 100%
recorders0% | 0% | 0% | 0% | 100%
cmd/tftp0% | 0% | 0% | 0% | 100%
tester/dhcpv40% | 0% | 0% | 0% | 100%
tester/dns0% | 0% | 0% | 0% | 100%
protocols/udp0% | 0% | 0% | 0% | 100%
cmd/udp0% | 0% | 0% | 0% | 100%
tester/dhcpv60% | 0% | 0% | 0% | 100%
tester/http0% | 0% | 0% | 0% | 100%
tester/tftp0% | 0% | 0% | 0% | 100%
tester/udp0% | 0% | 0% | 0% | 100%
log0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
log.go
in flags
151 14
cmd.go
in cmd
116 4
command.go
in cmd/core
107 3
http.go
in cmd/http
105 8
constraint.go
in tester
100 4
growth.go
in tester
97 10
extract.go
in cmd/core
96 5
94 9
metric.go
in tester
83 3
dns.go
in cmd/dns
80 4
runner.go
in cmd/core/runner
75 7
flags.go
in cmd/dhcpv4
73 7
flags.go
in cmd/dhcpv6
73 7
exec.go
in cmd/core
70 10
69 7
concurrency.go
in cmd/core/runner
67 4
tester.go
in tester/dhcpv4
67 7
tester.go
in tester/dns
64 6
input.go
in cmd/core/input
63 4
throughput.go
in tester/run
58 3
concurrency.go
in tester/run
58 3
udp.go
in protocols/udp
56 1
dhcpv4.go
in cmd/dhcpv4
53 2
flags.go
in cmd/dns
53 7
throughput.go
in cmd/core/runner
48 4
tester.go
in tester/dhcpv6
47 6
tftp.go
in cmd/tftp
44 2
tester.go
in tester/http
42 6
latency.go
in metric
42 3
logrus.go
in recorders
40 3
udp.go
in cmd/udp
36 2
dhcpv6.go
in cmd/dhcpv6
36 2
growth.go
in flags
36 5
cmd.go
in cmd/dns
35 2
spinner.go
in utils
35 1
options.go
in cmd/core/options
34 3
comparator.go
in tester
33 3
tester.go
in tester
33 -
tester.go
in tester/tftp
32 5
errors.go
in metric
30 3
tester.go
in tester/udp
28 6
progress.go
in recorders
26 2
statistics.go
in recorders
26 2
25 1
cmd.go
in cmd/dhcpv4
25 1
cmd.go
in cmd/dhcpv6
25 1
cmd.go
in cmd/tftp
24 1
regexp.go
in utils
24 2
cmd.go
in cmd/http
23 1
sync.go
in cmd/core
21 2
Files With Most Units (Top 50)
File# lines# units
log.go
in flags
151 14
exec.go
in cmd/core
70 10
growth.go
in tester
97 10
94 9
http.go
in cmd/http
105 8
runner.go
in cmd/core/runner
75 7
flags.go
in cmd/dhcpv4
73 7
flags.go
in cmd/dhcpv6
73 7
flags.go
in cmd/dns
53 7
69 7
tester.go
in tester/dhcpv4
67 7
tester.go
in tester/udp
28 6
tester.go
in tester/http
42 6
tester.go
in tester/dhcpv6
47 6
tester.go
in tester/dns
64 6
extract.go
in cmd/core
96 5
growth.go
in flags
36 5
tester.go
in tester/tftp
32 5
cmd.go
in cmd
116 4
input.go
in cmd/core/input
63 4
throughput.go
in cmd/core/runner
48 4
concurrency.go
in cmd/core/runner
67 4
dns.go
in cmd/dns
80 4
constraint.go
in tester
100 4
options.go
in cmd/core/options
34 3
command.go
in cmd/core
107 3
logrus.go
in recorders
40 3
comparator.go
in tester
33 3
metric.go
in tester
83 3
throughput.go
in tester/run
58 3
concurrency.go
in tester/run
58 3
log.go
in log
21 3
latency.go
in metric
42 3
errors.go
in metric
30 3
sync.go
in cmd/core
21 2
dhcpv4.go
in cmd/dhcpv4
53 2
udp.go
in cmd/udp
36 2
tftp.go
in cmd/tftp
44 2
dhcpv6.go
in cmd/dhcpv6
36 2
cmd.go
in cmd/dns
35 2
regexp.go
in utils
24 2
progress.go
in recorders
26 2
statistics.go
in recorders
26 2
25 1
flags.go
in cmd/core
18 1
cmd.go
in cmd/dhcpv4
25 1
cmd.go
in cmd/tftp
24 1
cmd.go
in cmd/http
23 1
cmd.go
in cmd/dhcpv6
25 1
utils.go
in flags
8 1
Files With Long Lines (Top 2)

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

File# lines# units# long lines
cmd.go
in cmd
116 4 1
flags.go
in cmd/core
18 1 1
Correlations

File Size vs. Commits (all time): 61 points

cmd/core/command.go x: 2 commits (all time) y: 107 lines of code cmd/core/errors/errors.go x: 1 commits (all time) y: 5 lines of code cmd/core/exec.go x: 2 commits (all time) y: 70 lines of code cmd/core/extract.go x: 3 commits (all time) y: 96 lines of code cmd/core/input/input.go x: 3 commits (all time) y: 63 lines of code cmd/dhcpv4/dhcpv4.go x: 3 commits (all time) y: 53 lines of code cmd/dhcpv4/flags.go x: 4 commits (all time) y: 73 lines of code cmd/dhcpv6/dhcpv6.go x: 4 commits (all time) y: 36 lines of code cmd/dhcpv6/flags.go x: 3 commits (all time) y: 73 lines of code cmd/dns/dns.go x: 5 commits (all time) y: 80 lines of code cmd/dns/flags.go x: 4 commits (all time) y: 53 lines of code cmd/http/http.go x: 2 commits (all time) y: 105 lines of code cmd/tftp/tftp.go x: 2 commits (all time) y: 44 lines of code cmd/udp/udp.go x: 2 commits (all time) y: 36 lines of code flags/constraint.go x: 2 commits (all time) y: 69 lines of code flags/distribution.go x: 4 commits (all time) y: 94 lines of code flags/errors.go x: 1 commits (all time) y: 6 lines of code flags/log.go x: 4 commits (all time) y: 151 lines of code protocols/udp/udp.go x: 2 commits (all time) y: 56 lines of code tester/constraint.go x: 3 commits (all time) y: 100 lines of code tester/dhcpv4/tester.go x: 2 commits (all time) y: 67 lines of code tester/dhcpv6/tester.go x: 2 commits (all time) y: 47 lines of code tester/dns/tester.go x: 4 commits (all time) y: 64 lines of code tester/growth.go x: 3 commits (all time) y: 97 lines of code tester/http/tester.go x: 2 commits (all time) y: 42 lines of code tester/run/concurrency.go x: 2 commits (all time) y: 58 lines of code tester/tftp/tester.go x: 2 commits (all time) y: 32 lines of code utils/random.go x: 2 commits (all time) y: 12 lines of code cmd/cmd.go x: 5 commits (all time) y: 116 lines of code cmd/completion.go x: 3 commits (all time) y: 25 lines of code cmd/core/flags.go x: 1 commits (all time) y: 18 lines of code cmd/core/options/options.go x: 1 commits (all time) y: 34 lines of code cmd/core/runner/concurrency.go x: 1 commits (all time) y: 67 lines of code cmd/core/runner/runner.go x: 2 commits (all time) y: 75 lines of code cmd/core/runner/throughput.go x: 1 commits (all time) y: 48 lines of code cmd/core/sync.go x: 3 commits (all time) y: 21 lines of code cmd/dhcpv4/cmd.go x: 1 commits (all time) y: 25 lines of code cmd/dns/cmd.go x: 5 commits (all time) y: 35 lines of code cmd/http/cmd.go x: 1 commits (all time) y: 23 lines of code cmd/tftp/cmd.go x: 1 commits (all time) y: 24 lines of code cmd/udp/cmd.go x: 1 commits (all time) y: 19 lines of code flags/utils.go x: 1 commits (all time) y: 8 lines of code log/log.go x: 1 commits (all time) y: 21 lines of code metric/errors.go x: 1 commits (all time) y: 30 lines of code metric/latency.go x: 1 commits (all time) y: 42 lines of code recorders/logrus.go x: 1 commits (all time) y: 40 lines of code recorders/progress.go x: 1 commits (all time) y: 26 lines of code tester/comparator.go x: 1 commits (all time) y: 33 lines of code tester/metric.go x: 1 commits (all time) y: 83 lines of code tester/run/common.go x: 1 commits (all time) y: 15 lines of code tester/udp/tester.go x: 1 commits (all time) y: 28 lines of code utils/completion.go x: 3 commits (all time) y: 17 lines of code utils/net.go x: 1 commits (all time) y: 11 lines of code utils/spinner.go x: 1 commits (all time) y: 35 lines of code
151.0
lines of code
  min: 5.0
  average: 48.05
  25th percentile: 24.5
  median: 36.0
  75th percentile: 68.0
  max: 151.0
0 5.0
commits (all time)
min: 1.0 | average: 2.05 | 25th percentile: 1.0 | median: 2.0 | 75th percentile: 3.0 | max: 5.0

File Size vs. Contributors (all time): 61 points

cmd/core/command.go x: 1 contributors (all time) y: 107 lines of code cmd/core/errors/errors.go x: 1 contributors (all time) y: 5 lines of code cmd/core/exec.go x: 1 contributors (all time) y: 70 lines of code cmd/core/extract.go x: 1 contributors (all time) y: 96 lines of code cmd/core/input/input.go x: 1 contributors (all time) y: 63 lines of code cmd/dhcpv4/dhcpv4.go x: 2 contributors (all time) y: 53 lines of code cmd/dhcpv4/flags.go x: 2 contributors (all time) y: 73 lines of code cmd/dhcpv6/dhcpv6.go x: 2 contributors (all time) y: 36 lines of code cmd/dns/dns.go x: 3 contributors (all time) y: 80 lines of code cmd/dns/flags.go x: 1 contributors (all time) y: 53 lines of code cmd/http/http.go x: 1 contributors (all time) y: 105 lines of code cmd/tftp/tftp.go x: 1 contributors (all time) y: 44 lines of code cmd/udp/udp.go x: 1 contributors (all time) y: 36 lines of code flags/constraint.go x: 1 contributors (all time) y: 69 lines of code flags/distribution.go x: 1 contributors (all time) y: 94 lines of code flags/errors.go x: 1 contributors (all time) y: 6 lines of code flags/log.go x: 2 contributors (all time) y: 151 lines of code protocols/udp/udp.go x: 1 contributors (all time) y: 56 lines of code tester/constraint.go x: 2 contributors (all time) y: 100 lines of code tester/dhcpv4/tester.go x: 1 contributors (all time) y: 67 lines of code tester/dhcpv6/tester.go x: 1 contributors (all time) y: 47 lines of code tester/dns/tester.go x: 3 contributors (all time) y: 64 lines of code tester/growth.go x: 2 contributors (all time) y: 97 lines of code tester/http/tester.go x: 1 contributors (all time) y: 42 lines of code tester/run/concurrency.go x: 1 contributors (all time) y: 58 lines of code tester/tftp/tester.go x: 1 contributors (all time) y: 32 lines of code utils/random.go x: 1 contributors (all time) y: 12 lines of code cmd/cmd.go x: 2 contributors (all time) y: 116 lines of code cmd/completion.go x: 3 contributors (all time) y: 25 lines of code cmd/core/flags.go x: 1 contributors (all time) y: 18 lines of code cmd/core/options/options.go x: 1 contributors (all time) y: 34 lines of code cmd/core/runner/runner.go x: 2 contributors (all time) y: 75 lines of code cmd/core/runner/throughput.go x: 1 contributors (all time) y: 48 lines of code cmd/core/sync.go x: 1 contributors (all time) y: 21 lines of code cmd/dhcpv4/cmd.go x: 1 contributors (all time) y: 25 lines of code cmd/dns/cmd.go x: 4 contributors (all time) y: 35 lines of code cmd/http/cmd.go x: 1 contributors (all time) y: 23 lines of code cmd/tftp/cmd.go x: 1 contributors (all time) y: 24 lines of code cmd/udp/cmd.go x: 1 contributors (all time) y: 19 lines of code flags/utils.go x: 1 contributors (all time) y: 8 lines of code metric/errors.go x: 1 contributors (all time) y: 30 lines of code recorders/logrus.go x: 1 contributors (all time) y: 40 lines of code recorders/progress.go x: 1 contributors (all time) y: 26 lines of code tester/comparator.go x: 1 contributors (all time) y: 33 lines of code tester/metric.go x: 1 contributors (all time) y: 83 lines of code tester/run/common.go x: 1 contributors (all time) y: 15 lines of code tester/udp/tester.go x: 1 contributors (all time) y: 28 lines of code utils/completion.go x: 2 contributors (all time) y: 17 lines of code utils/net.go x: 1 contributors (all time) y: 11 lines of code utils/spinner.go x: 1 contributors (all time) y: 35 lines of code
151.0
lines of code
  min: 5.0
  average: 48.05
  25th percentile: 24.5
  median: 36.0
  75th percentile: 68.0
  max: 151.0
0 4.0
contributors (all time)
min: 1.0 | average: 1.31 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 4.0

File Size vs. Commits (30 days): 0 points

No data for "commits (30d)" vs. "lines of code".

File Size vs. Contributors (30 days): 0 points

No data for "contributors (30d)" vs. "lines of code".


File Size vs. Commits (90 days): 0 points

No data for "commits (90d)" vs. "lines of code".

File Size vs. Contributors (90 days): 0 points

No data for "contributors (90d)" vs. "lines of code".