Compare.NotEqual<T>

Static Method in Compare

Declaration

public static float NotEqual<T>(Func<T> foo, Func<T> bar, int iterations, bool log = true, bool logIndividual = false)
    where T : IEquatable<T>

Description

Compares how many results of the two functions are not equal for a given amount of iterations.

Type Parameters

T

Parameters

fooThe first function to execute.
barThe second function to execute.
iterationsThe amount of times each function is executed.
logLogs the final comparison result.
logIndividualLogs the result of each iteration of the functions.

Returns

floatThe percentage of equal results.