Last active
January 14, 2023 12:27
-
-
Save JonCanning/a910241a013693ea2673f350de11a591 to your computer and use it in GitHub Desktop.
F# BenchmarkDotNet script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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