Benchmark.Compare
Static Method in Benchmark
Declaration
public static double Compare(Action foo, Action bar, int iterations, bool log = true)
Description
Compares the execution time between two functions with a given amount of iterations.
Parameters
foo | The first function to be executed. |
bar | The second function to be executed. |
iterations | The amount of times each function is executed. |
log | Logs the result to the console. |
Returns
double | The difference in execution time of the two functions in milliseconds. |