<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>benchmarkdotnet on Arjun Krishna - Software Developer</title>
    <link>https://www.arjunkrishna.us/categories/benchmarkdotnet/</link>
    <description>Recent content in benchmarkdotnet on Arjun Krishna - Software Developer</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Wed, 05 May 2021 00:00:00 +0000</lastBuildDate><atom:link href="https://www.arjunkrishna.us/categories/benchmarkdotnet/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Improving Moving Average implementation in conjunction with BenchmarkDotNet</title>
      <link>https://www.arjunkrishna.us/blog/moving-average-improvement-using-benchmark-dot-net/</link>
      <pubDate>Wed, 05 May 2021 00:00:00 +0000</pubDate>
      
      <guid>https://www.arjunkrishna.us/blog/moving-average-improvement-using-benchmark-dot-net/</guid>
      <description>Last night I read an article about someone working on moving average calculation. I remembered I had done a similar exercise few years ago. I put it into BenchmarkDotNet and then wanted to try ArrayPool and ReadOnlySpan features in C# to improve its performance. I do not do much open-source stuff, so feel free to improve it and let me know where I have gone wrong. BenchmarkConsoleTest .
Github Repo The code is available on github : BenchmarkConsoleTest Moving Average Sample Implementation [Benchmark] public double[] MovingAverageDeltaSum() { var currentFrameSize = 0; double cumulativeSum = 0; ReadOnlySpan&amp;lt;double&amp;gt; dataSpan = Data.</description>
    </item>
    
  </channel>
</rss>
