Skip to content

Instantly share code, notes, and snippets.

@1ceOcean
1ceOcean / bench.cs
Created July 9, 2026 08:48
use `dotnet run -c Release --project benchmarks/Hshg.SingleFileBench -- --dimension 2` run c like bench
using System.Diagnostics;
using System.Globalization;
using System.Numerics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
BenchOptions options = BenchOptions.Parse(args);
if (options.Dimension == 3)
@1ceOcean
1ceOcean / gist:e82f5a004a5f748c387845fe1f0b1f92
Created July 9, 2026 08:46
use `dotnet run -c Release --project benchmarks/Hshg.SingleFileBench -- --dimension 2` run c like bench
using System.Diagnostics;
using System.Globalization;
using System.Numerics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
BenchOptions options = BenchOptions.Parse(args);
if (options.Dimension == 3)