Skip to content

Instantly share code, notes, and snippets.

@JonCanning
Last active January 14, 2023 12:27
Show Gist options
  • Save JonCanning/a910241a013693ea2673f350de11a591 to your computer and use it in GitHub Desktop.
Save JonCanning/a910241a013693ea2673f350de11a591 to your computer and use it in GitHub Desktop.
F# BenchmarkDotNet script
#r "nuget:BenchmarkDotNet"
open BenchmarkDotNet.Running
open BenchmarkDotNet.Attributes
[<InProcessAttribute true; MemoryDiagnoser>]
type Runner() =
[<Benchmark>]
member _.Test1() = "test1"
[<Benchmark>]
member _.Test2() = "test2"
BenchmarkRunner.Run<Runner>() |> ignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment