- Linux-x64
- build/publish native assets
- OSX-x64
- build/publish native assets
- Win-x64
- build/publish native assets
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
[Benchmark] | |
public void IndexOfShort_Match() | |
{ | |
"Hello World!".IndexOf('o'); | |
"Hello World!".IndexOf('e'); | |
"Hello World!".IndexOf('!'); | |
} | |
[Benchmark] | |
public void IndexOfShort_Miss() |
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 BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Running; | |
using System; | |
using System.Numerics; | |
namespace ComplexBenchmark | |
{ | |
public class Program | |
{ | |
public static void Main(string[] args) |
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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>netcoreapp2.1</TargetFramework> | |
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | |
</PropertyGroup> | |
<ItemGroup> | |
<PackageReference Include="BenchmarkDotNet" Version="0.10.14" /> |
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 BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Running; | |
using System; | |
using System.Runtime.InteropServices; | |
using System.Threading.Tasks; | |
namespace ParallelForBenchmark | |
{ | |
class Program | |
{ |
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 Microsoft.Data.DataView { | |
public sealed class BooleanDataViewType : PrimitiveDataViewType { | |
public static BooleanDataViewType Instance { get; } | |
public override bool Equals(DataViewType other); | |
public override string ToString(); | |
} | |
public abstract class DataViewRow : IDisposable { | |
protected DataViewRow(); | |
public abstract long Batch { get; } | |
public abstract long Position { get; } |
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 BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Running; | |
using Microsoft.Azure.Amqp; | |
using Microsoft.Azure.Amqp.Encoding; | |
using System; | |
using System.Runtime.InteropServices; | |
[MemoryDiagnoser] | |
public class AmqpBench | |
{ |