anthropics / s5cmd
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 387 units with 6,899 lines of code in units (80.1% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (109 lines of code)
    • 25 medium complex units (1,547 lines of code)
    • 51 simple units (1,783 lines of code)
    • 310 very simple units (3,460 lines of code)
0% | 1% | 22% | 25% | 50%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
go0% | 1% | 23% | 25% | 48%
py0% | 0% | 15% | 24% | 59%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
command0% | 3% | 19% | 28% | 48%
storage0% | 0% | 34% | 22% | 43%
bench0% | 0% | 17% | 47% | 35%
benchmark0% | 0% | 13% | 3% | 82%
orderedwriter0% | 0% | 87% | 0% | 12%
useragent0% | 0% | 0% | 60% | 39%
log0% | 0% | 0% | 21% | 78%
error0% | 0% | 0% | 56% | 43%
parallel0% | 0% | 0% | 0% | 100%
strutil0% | 0% | 0% | 0% | 100%
progressbar0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
version0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
109 28 1
102 19 1
83 18 1
80 17 1
109 17 1
80 17 1
67 16 1
70 16 3
73 15 1
52 15 1
43 15 1
40 15 1
20 14 1
44 14 1
49 14 6
48 12 2
68 12 1
56 12 1
70 11 1
70 11 1
58 11 3
60 11 1
52 11 1
29 11 1
53 11 1
71 11 1
54 10 2
14 10 1
16 10 3
50 10 1
46 10 2
54 10 1
52 10 0
53 9 1
54 9 1
28 9 2
22 8 1
17 8 2
22 8 1
48 8 1
34 8 4
21 8 1
23 8 1
24 8 4
35 7 1
38 7 1
31 7 5
30 7 1
21 7 1
16 7 1