public void DoD_Parser_StructOfArrays_SIMD() { DoDPOParser_v4 parser = new DoDPOParser_v4(); var dodLines_v4 = parser.Parse(lines, out var index); for (int s = 0; s < Samples; s++) { double sum = SumAmount(dodLines_v4, index); } }
public static void TestAmountPO_DoD_SoA_SIMD() { var parser = new DoDPOParser_v4(); var lines = parser.Parse(@"C:\Users\Y700-17\Desktop\DataOrientedDesign\DoDSamples\DoDSamples\Samples\POParser\Sample.po", out var index); Utils.Measure(() => { for (int s = 0; s < samples; s++) { double sum = 0; sum = parser.SumAmount(lines, index); } }); }
public void DoD_Parser_StructOfArrays() { DoDPOParser_v4 parser = new DoDPOParser_v4(); var dodLines_v4 = parser.Parse(lines, out var index); for (int s = 0; s < Samples; s++) { double sum = 0; for (int i = 0; i < index; i++) { sum += dodLines_v4.Amount[i]; } } }