This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Base64Benchmarks | |
{ | |
public class Base64EncodeBenchmarks | |
{ | |
private const int N = 20 * 1024 * 1024; | |
private readonly byte[] _data; | |
public Base64EncodeBenchmarks() | |
{ | |
_data = new byte[N]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Validating benchmarks: | |
// ***** BenchmarkRunner: Start ***** | |
// ***** Found 6 benchmark(s) in total ***** | |
// ***** Building 1 exe(s) in Parallel: Start ***** | |
// start dotnet restore /p:UseSharedCompilation=false /p:BuildInParallel=false /m:1 in C:\dev\benchmarks\comparative\Base32Encoding\Base32Benchmarks\bin\Release\net5.0\a48ffabe-b44d-4206-a833-2aeb7f0f6330 | |
// command took 2,02s and exited with 0 | |
// start dotnet build -c Release --no-restore /p:UseSharedCompilation=false /p:BuildInParallel=false /m:1 in C:\dev\benchmarks\comparative\Base32Encoding\Base32Benchmarks\bin\Release\net5.0\a48ffabe-b44d-4206-a833-2aeb7f0f6330 | |
// command took 3,31s and exited with 0 | |
// ***** Done, took 00:00:05 (5.46 sec) ***** | |
// Found 6 benchmarks: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using BenchmarkDotNet.Attributes; | |
namespace Base32Benchmarks | |
{ | |
// <ItemGroup> | |
// <PackageReference Include = "Albireo.Base32" Version="1.2.0" /> | |
// <PackageReference Include = "BenchmarkDotNet" Version="0.12.1" /> | |
// <PackageReference Include = "deniszykov.BaseN" Version="3.0.0" /> | |
// <PackageReference Include = "SimpleBase" Version="3.0.2" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using BenchmarkDotNet.Attributes; | |
namespace Base32Benchmarks | |
{ | |
// <ItemGroup> | |
// <PackageReference Include = "Albireo.Base32" Version="1.2.0" /> | |
// <PackageReference Include = "BenchmarkDotNet" Version="0.12.1" /> | |
// <PackageReference Include = "deniszykov.BaseN" Version="3.0.0" /> | |
// <PackageReference Include = "SimpleBase" Version="3.0.2" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Threading.Tasks; | |
using NAudio.Utils; | |
namespace NAudioBugTest | |
{ | |
class Program | |
{ | |
static CircularBuffer _testBuffer; | |
static long _added, _skipped, _count; |