Skip to content

Instantly share code, notes, and snippets.

View hypervis0r's full-sized avatar
💣
0wned

Hypervisor hypervis0r

💣
0wned
View GitHub Profile
@hypervis0r
hypervis0r / Benchmark.cs
Created May 14, 2022 00:46
List<T> Any vs Exists vs Contains
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
[HtmlExporter]
public class LINQBenchmarks
{
[Params(10_000, 100_000, 1_000_000, 10_000_000)]
public int N;
private List<string> list { get; set; } = new List<string>();