opensearch-project / opensearch-benchmark
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 70 files with 16,784 lines of code.
    • 6 very long files (8,342 lines of code)
    • 5 long files (3,480 lines of code)
    • 5 medium size files (1,734 lines of codeclsfd_ftr_w_mp_ins)
    • 11 small files (1,637 lines of code)
    • 43 very small files (1,591 lines of code)
49% | 20% | 10% | 9% | 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
py50% | 20% | 10% | 9% | 8%
yml0% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
cfg0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
osbenchmark64% | 20% | 0% | 10% | 4%
osbenchmark/worker_coordinator95% | 0% | 0% | 4% | <1%
osbenchmark/workload42% | 57% | 0% | 0% | <1%
osbenchmark/builder0% | 28% | 69% | 0% | 2%
osbenchmark/utils0% | 0% | 23% | 39% | 37%
it0% | 0% | 0% | 100% | 0%
scripts0% | 0% | 0% | 100% | 0%
opensearch-benchmark-provisionconfigs/1.00% | 0% | 0% | 0% | 100%
opensearch-benchmark-provisionconfigs/main0% | 0% | 0% | 0% | 100%
osbenchmark/tracker0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
docker0% | 0% | 0% | 0% | 100%
benchmarks0% | 0% | 0% | 0% | 100%
benchmarks/workload0% | 0% | 0% | 0% | 100%
benchmarks/worker_coordinator0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
chart_generator.py
in osbenchmark
1790 45
runner.py
in osbenchmark/worker_coordinator
1496 101
worker_coordinator.py
in osbenchmark/worker_coordinator
1411 151
metrics.py
in osbenchmark
1397 143
telemetry.py
in osbenchmark
1135 120
loader.py
in osbenchmark/workload
1113 84
params.py
in osbenchmark/workload
852 84
benchmark.py
in osbenchmark
845 13
workload.py
in osbenchmark/workload
664 111
supplier.py
in osbenchmark/builder
574 72
results_publisher.py
in osbenchmark
545 54
builder.py
in osbenchmark/builder
488 52
provisioner.py
in osbenchmark/builder
375 37
provision_config.py
in osbenchmark/builder
362 45
io.py
in osbenchmark/utils
308 64
launcher.py
in osbenchmark/builder
201 16
client.py
in osbenchmark
195 16
net.py
in osbenchmark/utils
180 16
async_connection.py
in osbenchmark
177 11
config.py
in osbenchmark
164 27
__init__.py
in it
157 26
analyze.py
in scripts
155 11
actor.py
in osbenchmark
135 11
scheduler.py
in osbenchmark/worker_coordinator
128 26
console.py
in osbenchmark/utils
124 25
opts.py
in osbenchmark/utils
114 18
repo.py
in osbenchmark/utils
108 7
versions.py
in osbenchmark/utils
99 16
setup.py
in root
91 1
process.py
in osbenchmark/utils
86 9
git.py
in osbenchmark/utils
80 16
benchmarkd.py
in osbenchmark
77 4
jvm.py
in osbenchmark/utils
70 10
plugin.py
in opensearch-benchmark-provisionconfigs/1.0/plugins/v1/repository_s3
63 6
plugin.py
in opensearch-benchmark-provisionconfigs/main/plugins/v1/repository_s3
63 6
plugin.py
in opensearch-benchmark-provisionconfigs/1.0/plugins/v1/repository_azure
62 6
plugin.py
in opensearch-benchmark-provisionconfigs/main/plugins/v1/repository_azure
62 6
index.py
in osbenchmark/tracker
62 5
modules.py
in osbenchmark/utils
56 5
corpus.py
in osbenchmark/tracker
56 5
tracker.py
in osbenchmark/tracker
54 3
time.py
in osbenchmark
53 15
plugin.py
in opensearch-benchmark-provisionconfigs/1.0/plugins/v1/repository_gcs
49 5
plugin.py
in opensearch-benchmark-provisionconfigs/main/plugins/v1/repository_gcs
49 5
convert.py
in osbenchmark/utils
48 13
__init__.py
in osbenchmark
42 2
log.py
in osbenchmark
41 6
sysstats.py
in osbenchmark/utils
39 11
java_resolver.py
in osbenchmark/builder
39 1
docker-compose-tests.yml
in docker
36 -
Files With Most Units (Top 20)
File# lines# units
worker_coordinator.py
in osbenchmark/worker_coordinator
1411 151
metrics.py
in osbenchmark
1397 143
telemetry.py
in osbenchmark
1135 120
workload.py
in osbenchmark/workload
664 111
runner.py
in osbenchmark/worker_coordinator
1496 101
loader.py
in osbenchmark/workload
1113 84
params.py
in osbenchmark/workload
852 84
supplier.py
in osbenchmark/builder
574 72
io.py
in osbenchmark/utils
308 64
results_publisher.py
in osbenchmark
545 54
builder.py
in osbenchmark/builder
488 52
chart_generator.py
in osbenchmark
1790 45
provision_config.py
in osbenchmark/builder
362 45
provisioner.py
in osbenchmark/builder
375 37
config.py
in osbenchmark
164 27
__init__.py
in it
157 26
scheduler.py
in osbenchmark/worker_coordinator
128 26
console.py
in osbenchmark/utils
124 25
opts.py
in osbenchmark/utils
114 18
versions.py
in osbenchmark/utils
99 16
Files With Long Lines (Top 20)

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

File# lines# units# long lines
worker_coordinator.py
in osbenchmark/worker_coordinator
1411 151 47
loader.py
in osbenchmark/workload
1113 84 38
benchmark.py
in osbenchmark
845 13 34
telemetry.py
in osbenchmark
1135 120 32
metrics.py
in osbenchmark
1397 143 29
supplier.py
in osbenchmark/builder
574 72 25
chart_generator.py
in osbenchmark
1790 45 23
params.py
in osbenchmark/workload
852 84 20
provision_config.py
in osbenchmark/builder
362 45 20
runner.py
in osbenchmark/worker_coordinator
1496 101 19
results_publisher.py
in osbenchmark
545 54 14
workload.py
in osbenchmark/workload
664 111 14
builder.py
in osbenchmark/builder
488 52 12
provisioner.py
in osbenchmark/builder
375 37 9
client.py
in osbenchmark
195 16 7
repo.py
in osbenchmark/utils
108 7 6
__init__.py
in it
157 26 5
actor.py
in osbenchmark
135 11 5
net.py
in osbenchmark/utils
180 16 4
launcher.py
in osbenchmark/builder
201 16 3