0
kicks
C# Sum an Array – Performance Analysis
The problem on which mechanism to use in your programming has between some trouble for some areas, here I did an analysis on summing up an array of double. The goal is to choose the tradeoff between easiest of LINQ and performance of FOREACH, as we all know that LINQ implement the IEnumerable class. Here I create a test project to measure the time span on summing up the array base on difference array dimension, than write the results to a CSV file, where I pot a LINQ vs. FOREACH graph to see the tradeoff.