Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Collections.Generic;
using System.Threading;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
using MongoDB.Bson;
namespace ConsoleApp2
{
class Program
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using MongoDB.Bson;
using MongoDB.Bson.Serialization;
using Xunit;
namespace MongoDB.Bson.Tests.Serialization.ArraySerializer
{
@dnickless
dnickless / TestPerformanceIndexOfAny
Created September 11, 2017 19:28
Compares the performance between the latest IndexOfAny implementation for two chars to test with a 4x unrolled version
using System;
using System.Diagnostics;
namespace StringPerformance
{
class Program
{
private static string _s;
static void Main(string[] args)