public BenchmarkResult(BenchmarkParameters parameters) { this.parameters = parameters; lastOperationFinishedDate = DateTime.Now; messages = new List<string>(); Histogram = new Histogram(); Stopwatch = new Stopwatch(); StartTimer(); }
public void Merge(Histogram other) { if (other.min < min) min = other.min; if (other.max > max) max = other.max; num += other.num; sum += other.sum; sumSquares += other.sumSquares; for (var b = 0; b < NumberOfBuckets; b++) { buckets[b] += other.buckets[b]; } }