public static DoNothingStatic ( int arg, string hkwStr = null, bool bogusBool = true, decimal bogusDec = 0m, IEnumerable |
||
arg | int | |
hkwStr | string | |
bogusBool | bool | |
bogusDec | decimal | |
sequence | IEnumerable |
|
return | int |
public static int DoNothingStatic(int arg = 0, string hkwStr = null, bool bogusBool = true, decimal bogusDec = 0m, IEnumerable<int> sequence = null)
{
return arg;
}
public void CallPerfStaticCounterProfile() { int parmInt = 123; string parmStr = "bogus"; bool parmBool = false; decimal parmDec = 1.0m; int[] arr = { 1, 2, 3, 4, 5 }; long runsPerSec; runsPerSec = RunCounter.SpinPerSec(MillisecToRun, () => AOP.Invoke(() => SomeTestClass.DoNothingStatic(parmInt, parmStr, parmBool, parmDec, arr))); this.TestContext.WriteLine("SomeTestClass.DoNothingStatic(parmInt, parmStr, parmBool, parmDec, arr) non-parallel perf test result: {0} calls/second.", runsPerSec); }