Skip to content

Instantly share code, notes, and snippets.

View martinothamar's full-sized avatar

Martin Othamar martinothamar

View GitHub Profile
@martinothamar
martinothamar / Program.cs
Created April 1, 2024 18:05
Benchmarking various ways to await an array of `ValueTask`'s
using System;
using System.Buffers;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using System.Threading.Tasks.Sources;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Configs;