Struct ThreadingStats
- Namespace
- BenchmarkDotNet.Engines
- Assembly
- BenchmarkDotNet.dll
public struct ThreadingStats : IEquatable<ThreadingStats>
- Implements
-
Constructors
ThreadingStats(long, long, long)
public ThreadingStats(long completedWorkItemCount, long lockContentionCount, long totalOperations)
Parameters
completedWorkItemCount
long
lockContentionCount
long
totalOperations
long
Properties
CompletedWorkItemCount
public readonly long CompletedWorkItemCount { get; }
Property Value
- long
Empty
public static ThreadingStats Empty { get; }
Property Value
- ThreadingStats
LockContentionCount
public readonly long LockContentionCount { get; }
Property Value
- long
TotalOperations
public readonly long TotalOperations { get; }
Property Value
- long
Methods
Equals(ThreadingStats)
public bool Equals(ThreadingStats other)
Parameters
other
ThreadingStats
Returns
- bool
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
- bool
GetHashCode()
public override int GetHashCode()
Returns
- int
Parse(string)
public static ThreadingStats Parse(string line)
Parameters
line
string
Returns
- ThreadingStats
ReadFinal()
public static ThreadingStats ReadFinal()
Returns
- ThreadingStats
ReadInitial()
public static ThreadingStats ReadInitial()
Returns
- ThreadingStats
ToOutputLine()
public string ToOutputLine()
Returns
- string
ToString()
public override string ToString()
Returns
- string
WithTotalOperations(long)
public ThreadingStats WithTotalOperations(long totalOperationsCount)
Parameters
totalOperationsCount
long
Returns
- ThreadingStats
Operators
operator +(ThreadingStats, ThreadingStats)
public static ThreadingStats operator +(ThreadingStats left, ThreadingStats right)
Parameters
left
ThreadingStats
right
ThreadingStats
Returns
- ThreadingStats
operator -(ThreadingStats, ThreadingStats)
public static ThreadingStats operator -(ThreadingStats left, ThreadingStats right)
Parameters
left
ThreadingStats
right
ThreadingStats
Returns
- ThreadingStats