microsoft / MPI.NET
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 353 units with 7,262 lines of code in units (70.4% of code).
    • 1 very complex units (363 lines of code)
    • 0 complex units (0 lines of code)
    • 19 medium complex units (1,531 lines of code)
    • 46 simple units (1,689 lines of code)
    • 287 very simple units (3,679 lines of code)
4% | 0% | 21% | 23% | 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
c56% | 0% | 0% | 14% | 28%
cs0% | 0% | 23% | 24% | 52%
pl0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Benchmarks/NetPipe56% | 0% | 0% | 14% | 28%
MPI0% | 0% | 18% | 27% | 54%
Benchmarks/Netpipe_cs0% | 0% | 57% | 13% | 29%
Benchmarks/netpipe_cs_generic0% | 0% | 57% | 13% | 29%
Benchmarks/netpipe_cs_tortoise0% | 0% | 54% | 14% | 31%
Benchmarks/netpipe_cs_hare0% | 0% | 53% | 14% | 32%
Benchmarks/Netcoll_cs0% | 0% | 27% | 0% | 72%
TestCommons0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
int main()
in Benchmarks/NetPipe/netmpi.c
363 75 2
static void Main()
in Benchmarks/Netcoll_cs/netcoll_cs.cs
76 22 1
static void Main()
in Benchmarks/Netpipe_cs/Netpipe_cs.cs
118 22 1
static void Main()
in Benchmarks/netpipe_cs_generic/Netpipe_cs.cs
118 22 1
public void ReduceScatter()
in MPI/Intercommunicator.cs
170 22 4
33 22 1
static void Main()
in Benchmarks/netpipe_cs_tortoise/Netpipe_cs.cs
105 21 1
static void Main()
in Benchmarks/netpipe_cs_hare/Netpipe_cs.cs
101 20 1
public Environment()
in MPI/Environment.cs
98 18 2
public void ReduceScatter()
in MPI/Intracommunicator.cs
88 16 4
public void ScatterFromFlattened()
in MPI/Intercommunicator.cs
74 15 4
public void AllgatherFlattened()
in MPI/Intercommunicator.cs
66 13 3
public void AlltoallFlattened()
in MPI/Intercommunicator.cs
85 13 4
58 12 6
public void Reduce()
in MPI/Intercommunicator.cs
76 12 4
public void AlltoallFlattened()
in MPI/Intracommunicator.cs
55 12 4
public void ScatterFromFlattened()
in MPI/Intracommunicator.cs
60 12 4
61 11 4
38 11 0
public void WaitAll()
in MPI/Serialization.cs
51 11 1