opensearch-project / opensearch-benchmark
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
  • For duplication, we look at places in code where there are 6 or more lines of code that are exactly the same.
  • Before duplication is calculated, the code is cleaned to remove empty lines, comments, and frequently duplicated constructs such as imports.
  • You should aim at having as little as possible (<5%) of duplicated code as high-level of duplication can lead to maintenance difficulties, poor factoring, and logical contradictions.
Learn more...
Duplication Overall
  • 11% duplication:
    • 16,385 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,883 duplicated lines
  • 307 duplicates
system11% (1,883 lines)
Duplication per Extension
py11% (1,833 lines)
yml45% (50 lines)
Duplication per Component (primary)
osbenchmark18% (1,196 lines)
opensearch-benchmark-provisionconfigs/1.093% (184 lines)
opensearch-benchmark-provisionconfigs/main93% (184 lines)
osbenchmark/workload5% (148 lines)
osbenchmark/worker_coordinator3% (106 lines)
osbenchmark/builder1% (38 lines)
osbenchmark/utils2% (27 lines)
it0% (0 lines)
ROOT0% (0 lines)
osbenchmark/tracker0% (0 lines)
benchmarks0% (0 lines)
benchmarks/workload0% (0 lines)
benchmarks/worker_coordinator0% (0 lines)
scripts0% (0 lines)
docker0% (0 lines)

Duplication Between Components (50+ lines)

G opensearch-benchmark-provisionconfigs/1.0 opensearch-benchmark-provisionconfigs/1.0 opensearch-benchmark-provisionconfigs/main opensearch-benchmark-provisionconfigs/main opensearch-benchmark-provisionconfigs/1.0--opensearch-benchmark-provisionconfigs/main 368 osbenchmark/builder osbenchmark/builder osbenchmark/workload osbenchmark/workload osbenchmark/builder--osbenchmark/workload 72

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 307 duplicates...
Size#FoldersFilesLinesCode
57 x 2 opensearch-benchmark-pro...ins/v1/repository_azure
opensearch-benchmark-pro...ins/v1/repository_azure
plugin.py
plugin.py
33:118 (100%)
33:118 (100%)
view
57 x 2 opensearch-benchmark-pro...lugins/v1/repository_s3
opensearch-benchmark-pro...lugins/v1/repository_s3
plugin.py
plugin.py
34:120 (100%)
34:120 (100%)
view
49 x 2 osbenchmark
osbenchmark
chart_generator.py
chart_generator.py
215:265 (2%)
394:444 (2%)
view
45 x 2 opensearch-benchmark-pro...ugins/v1/repository_gcs
opensearch-benchmark-pro...ugins/v1/repository_gcs
plugin.py
plugin.py
31:96 (100%)
32:97 (100%)
view
42 x 2 osbenchmark
osbenchmark
chart_generator.py
chart_generator.py
94:135 (2%)
276:317 (2%)
view
39 x 2 osbenchmark
osbenchmark
chart_generator.py
chart_generator.py
472:510 (2%)
690:728 (2%)
view
32 x 2 osbenchmark
osbenchmark
chart_generator.py
chart_generator.py
831:862 (1%)
1017:1048 (1%)
view
32 x 2 osbenchmark
osbenchmark
chart_generator.py
chart_generator.py
924:955 (1%)
1017:1048 (1%)
view
32 x 2 osbenchmark
osbenchmark
chart_generator.py
chart_generator.py
831:862 (1%)
924:955 (1%)
view
30 x 2 osbenchmark
osbenchmark
chart_generator.py
chart_generator.py
512:541 (1%)
730:759 (1%)
view
30 x 2 osbenchmark
osbenchmark
chart_generator.py
chart_generator.py
319:348 (1%)
512:541 (1%)
view
30 x 2 osbenchmark
osbenchmark
chart_generator.py
chart_generator.py
137:166 (1%)
512:541 (1%)
view
30 x 2 osbenchmark
osbenchmark
chart_generator.py
chart_generator.py
137:166 (1%)
730:759 (1%)
view
30 x 2 osbenchmark
osbenchmark
chart_generator.py
chart_generator.py
137:166 (1%)
319:348 (1%)
view
30 x 2 osbenchmark
osbenchmark
chart_generator.py
chart_generator.py
319:348 (1%)
730:759 (1%)
view
22 x 2 osbenchmark
osbenchmark
chart_generator.py
chart_generator.py
924:945 (1%)
1488:1509 (1%)
view
22 x 2 osbenchmark
osbenchmark
chart_generator.py
chart_generator.py
1017:1038 (1%)
1488:1509 (1%)
view
22 x 2 osbenchmark
osbenchmark
chart_generator.py
chart_generator.py
831:852 (1%)
1488:1509 (1%)
view
21 x 2 osbenchmark
osbenchmark
chart_generator.py
chart_generator.py
94:114 (1%)
469:489 (1%)
view
21 x 2 osbenchmark
osbenchmark
chart_generator.py
chart_generator.py
276:296 (1%)
469:489 (1%)
view
Duplicated Units
The list of top 9 duplicated units.
See data for all 9 unit duplicates...
Size#FoldersFilesLinesCode
27 x 2 opensearch-benchmark-pro...ugins/v1/repository_gcs
opensearch-benchmark-pro...ugins/v1/repository_gcs
plugin.py
plugin.py
0:0 
0:0 
view
26 x 2 opensearch-benchmark-pro...ins/v1/repository_azure
opensearch-benchmark-pro...ins/v1/repository_azure
plugin.py
plugin.py
0:0 
0:0 
view
27 x 2 opensearch-benchmark-pro...lugins/v1/repository_s3
opensearch-benchmark-pro...lugins/v1/repository_s3
plugin.py
plugin.py
0:0 
0:0 
view
15 x 2 opensearch-benchmark-pro...ins/v1/repository_azure
opensearch-benchmark-pro...ins/v1/repository_azure
plugin.py
plugin.py
0:0 
0:0 
view
15 x 2 opensearch-benchmark-pro...lugins/v1/repository_s3
opensearch-benchmark-pro...lugins/v1/repository_s3
plugin.py
plugin.py
0:0 
0:0 
view
10 x 4 opensearch-benchmark-pro...ins/v1/repository_azure
opensearch-benchmark-pro...lugins/v1/repository_s3
opensearch-benchmark-pro...ins/v1/repository_azure
opensearch-benchmark-pro...lugins/v1/repository_s3
plugin.py
plugin.py
plugin.py
plugin.py
0:0 
0:0 
0:0 
0:0 
view
10 x 2 opensearch-benchmark-pro...ugins/v1/repository_gcs
opensearch-benchmark-pro...ugins/v1/repository_gcs
plugin.py
plugin.py
0:0 
0:0 
view
8 x 2 osbenchmark/workload
osbenchmark/workload
workload.py
workload.py
0:0 
0:0 
view
13 x 2 osbenchmark
osbenchmark
telemetry.py
telemetry.py
0:0 
0:0 
view