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.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Running; | |
using ProtoBuf; | |
using ProtoBuf.Meta; |
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.Reflection; | |
using System.Reflection.Emit; | |
using System.Runtime.InteropServices; | |
using BenchmarkDotNet.Attributes; | |
namespace TestApp | |
{ | |
[MemoryDiagnoser] | |
public class DecimalConverter |
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.Text.RegularExpressions; | |
using BenchmarkDotNet.Attributes; | |
namespace TestApp | |
{ | |
[MemoryDiagnoser] | |
public class TextNormalizerBenchmark | |
{ | |
private string _valueLowerCase = "headername"; |
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.Text; | |
using Baseline; | |
using BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Diagnosers; | |
using Org.SbeTool.Sbe.Dll; | |
namespace Org.SbeTool.Sbe.Benchmarks.Bench.Benchmarks | |
{ | |
[HardwareCounters(HardwareCounter.BranchMispredictions, HardwareCounter.BranchInstructions)] | |
[MemoryDiagnoser] |
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.Diagnostics; | |
using System.Runtime.CompilerServices; | |
namespace ThreadSuspension | |
{ | |
internal class Program | |
{ | |
private static readonly CancellationTokenSource _cts = new CancellationTokenSource(); | |
private static IIdleStrategy _idleStrategy = new NoOpIdleStrategy(); |