示例#1
0
 public static void Class(Int32 numberIterations)
 {
     for (int i = 0; i < numberIterations; ++i)
     {
         _64BytesClass s = new _64BytesClass();
         s.a = 1; s.b = 1; s.c = 1; s.d = 1; s.e = 1; s.f = 1; s.g = 1; s.h = 1;
         s.i = 1; s.j = 1; s.k = 1; s.l = 1; s.m = 1; s.n = 1; s.o = 1; s.p = 1;
         int j = StructVsClassParams.f(s);
     }
 }
示例#2
0
 public static void StructRef(Int32 numberIterations)
 {
     for (int i = 0; i < numberIterations; ++i)
     {
         _64BytesStruct s;
         s.a = 1; s.b = 1; s.c = 1; s.d = 1; s.e = 1; s.f = 1; s.g = 1; s.h = 1;
         s.i = 1; s.j = 1; s.k = 1; s.l = 1; s.m = 1; s.n = 1; s.o = 1; s.p = 1;
         int j = StructVsClassParams.fref(ref s);
     }
 }
示例#3
0
 public static void Struct8Calls(Int32 numberIterations)
 {
     for (int i = 0; i < numberIterations; ++i)
     {
         _64BytesStruct s;
         s.a = 1; s.b = 1; s.c = 1; s.d = 1; s.e = 1; s.f = 1; s.g = 1; s.h = 1;
         s.i = 1; s.j = 1; s.k = 1; s.l = 1; s.m = 1; s.n = 1; s.o = 1; s.p = 1;
         int j = StructVsClassParams.f(s);
         int k = StructVsClassParams.f(s);
         int l = StructVsClassParams.f(s);
         int m = StructVsClassParams.f(s);
         int n = StructVsClassParams.f(s);
         int o = StructVsClassParams.f(s);
         int p = StructVsClassParams.f(s);
         int q = StructVsClassParams.f(s);
     }
 }
 private void StructVsClassParamBtn_Click(object sender, System.EventArgs e)
 {
     DotNetPerformance.ResultOutput.Output.DisplayResults(StructVsClassParams.RunTest(),
                                                          PerfTest.FormMain.CurrentDisplay, PerfTest.FormMain.DisplayConfigSetting);
 }