tensorflow / 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 60 files with 10,891 lines of code.
    • 1 very long files (2,054 lines of code)
    • 2 long files (1,450 lines of code)
    • 14 medium size files (4,374 lines of codeclsfd_ftr_w_mp_ins)
    • 14 small files (2,001 lines of code)
    • 29 very small files (1,012 lines of code)
18% | 13% | 40% | 18% | 9%
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
py18% | 13% | 40% | 18% | 9%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
scripts/tf_cnn_benchmarks34% | 24% | 26% | 11% | 3%
scripts/tf_cnn_benchmarks/models/tf1_only0% | 0% | 81% | 12% | 5%
perfzero/lib/perfzero0% | 0% | 55% | 24% | 20%
scripts/tf_cnn_benchmarks/models0% | 0% | 28% | 42% | 28%
perfzero/lib0% | 0% | 53% | 46% | <1%
scripts/tf_cnn_benchmarks/models/experimental0% | 0% | 69% | 30% | <1%
perfzero/dockertest0% | 0% | 0% | 0% | 100%
scripts/tf_cnn_benchmarks/platforms/default0% | 0% | 0% | 0% | 100%
perfzero/scripts0% | 0% | 0% | 0% | 100%
scripts/tf_cnn_benchmarks/platforms0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
benchmark_cnn.py
in scripts/tf_cnn_benchmarks
2054 42
preprocessing.py
in scripts/tf_cnn_benchmarks
912 39
variable_mgr.py
in scripts/tf_cnn_benchmarks
538 71
convnet_builder.py
in scripts/tf_cnn_benchmarks
404 17
nasnet_model.py
in scripts/tf_cnn_benchmarks/models/tf1_only
404 19
ssd_model.py
in scripts/tf_cnn_benchmarks/models/tf1_only
376 20
allreduce.py
in scripts/tf_cnn_benchmarks
351 18
perfzero_config.py
in perfzero/lib/perfzero
331 6
nasnet_utils.py
in scripts/tf_cnn_benchmarks/models/tf1_only
328 23
utils.py
in perfzero/lib/perfzero
326 24
resnet_model.py
in scripts/tf_cnn_benchmarks/models
303 29
variable_mgr_util.py
in scripts/tf_cnn_benchmarks
294 26
cloud_manager.py
in perfzero/lib
294 11
batch_allreduce.py
in scripts/tf_cnn_benchmarks
291 22
deepspeech.py
in scripts/tf_cnn_benchmarks/models/experimental
232 17
ssd_dataloader.py
in scripts/tf_cnn_benchmarks
225 9
mobilenet.py
in scripts/tf_cnn_benchmarks/models/tf1_only
215 14
mobilenet_conv_blocks.py
in scripts/tf_cnn_benchmarks/models/tf1_only
198 8
model.py
in scripts/tf_cnn_benchmarks/models
181 29
datasets.py
in scripts/tf_cnn_benchmarks
172 22
report_utils.py
in perfzero/lib/perfzero
157 4
mlperf.py
in scripts/tf_cnn_benchmarks
151 18
all_reduce_benchmark.py
in scripts/tf_cnn_benchmarks
146 7
inception_model.py
in scripts/tf_cnn_benchmarks/models
142 9
benchmark.py
in perfzero/lib
141 5
benchmark_method_runner.py
in perfzero/lib/perfzero
136 3
model_config.py
in scripts/tf_cnn_benchmarks/models
129 4
cnn_util.py
in scripts/tf_cnn_benchmarks
116 22
setup.py
in perfzero/lib
116 3
coco_metric.py
in scripts/tf_cnn_benchmarks
113 5
official_ncf_model.py
in scripts/tf_cnn_benchmarks/models/experimental
103 7
mobilenet_v2.py
in scripts/tf_cnn_benchmarks/models/tf1_only
95 5
diff_benchmarks.py
in perfzero/dockertest
72 5
tensorflow_profiler.py
in perfzero/lib/perfzero
70 6
tpu_runtime_utils.py
in perfzero/lib/perfzero
66 5
densenet_model.py
in scripts/tf_cnn_benchmarks/models
60 8
benchmark_cnn_distributed_test_runner.py
in scripts/tf_cnn_benchmarks
59 4
ssd_constants.py
in scripts/tf_cnn_benchmarks
58 -
process_info_tracker.py
in perfzero/lib/perfzero
56 4
alexnet_model.py
in scripts/tf_cnn_benchmarks/models
51 5
device_utils.py
in perfzero/lib/perfzero
47 4
flags.py
in scripts/tf_cnn_benchmarks
43 7
official_resnet_model.py
in scripts/tf_cnn_benchmarks/models
43 3
vgg_model.py
in scripts/tf_cnn_benchmarks/models
42 7
util.py
in scripts/tf_cnn_benchmarks/platforms/default
41 9
plot_process_info.py
in perfzero/scripts
40 1
trivial_model.py
in scripts/tf_cnn_benchmarks/models
39 8
tf_cnn_benchmarks.py
in scripts/tf_cnn_benchmarks
37 1
googlenet_model.py
in scripts/tf_cnn_benchmarks/models
32 2
overfeat_model.py
in scripts/tf_cnn_benchmarks/models
22 2
Files With Most Units (Top 20)
File# lines# units
variable_mgr.py
in scripts/tf_cnn_benchmarks
538 71
benchmark_cnn.py
in scripts/tf_cnn_benchmarks
2054 42
preprocessing.py
in scripts/tf_cnn_benchmarks
912 39
model.py
in scripts/tf_cnn_benchmarks/models
181 29
resnet_model.py
in scripts/tf_cnn_benchmarks/models
303 29
variable_mgr_util.py
in scripts/tf_cnn_benchmarks
294 26
utils.py
in perfzero/lib/perfzero
326 24
nasnet_utils.py
in scripts/tf_cnn_benchmarks/models/tf1_only
328 23
datasets.py
in scripts/tf_cnn_benchmarks
172 22
batch_allreduce.py
in scripts/tf_cnn_benchmarks
291 22
cnn_util.py
in scripts/tf_cnn_benchmarks
116 22
ssd_model.py
in scripts/tf_cnn_benchmarks/models/tf1_only
376 20
nasnet_model.py
in scripts/tf_cnn_benchmarks/models/tf1_only
404 19
mlperf.py
in scripts/tf_cnn_benchmarks
151 18
allreduce.py
in scripts/tf_cnn_benchmarks
351 18
convnet_builder.py
in scripts/tf_cnn_benchmarks
404 17
deepspeech.py
in scripts/tf_cnn_benchmarks/models/experimental
232 17
mobilenet.py
in scripts/tf_cnn_benchmarks/models/tf1_only
215 14
cloud_manager.py
in perfzero/lib
294 11
ssd_dataloader.py
in scripts/tf_cnn_benchmarks
225 9
Files With Long Lines (Top 3)

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

File# lines# units# long lines
perfzero_config.py
in perfzero/lib/perfzero
331 6 23
cloud_manager.py
in perfzero/lib
294 11 3
benchmark_cnn.py
in scripts/tf_cnn_benchmarks
2054 42 1