Skip to content

Commit

Permalink
benchmark updates
Browse files Browse the repository at this point in the history
  • Loading branch information
1eyewonder committed Sep 17, 2024
1 parent 3442e14 commit 6875038
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions benchmarks/SeqTests.fs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module SeqTests

open BenchmarkDotNet.Attributes
open FsToolkit.ErrorHandling
//open FsToolkit.ErrorHandling
open System.Threading
open System
open BenchmarkDotNet.Attributes
Expand Down Expand Up @@ -48,7 +48,7 @@ module sequenceResultMTests =
[<MemoryDiagnoser>]
type SeqBenchmarks() =

member _.GetOkSeq size =
member _.GetOkSeq size : Result<int, string> seq =
seq {
for i in 1..size do
yield Ok i
Expand All @@ -60,7 +60,9 @@ type SeqBenchmarks() =
[<Benchmark(Baseline = true, Description = "v1")>]
member this.test1() =
sequenceResultMTests.v1.sequenceResultM (this.GetOkSeq this.Size)
|> ignore

[<Benchmark(Description = "v2")>]
member this.test2() =
sequenceResultMTests.v2.sequenceResultM (this.GetOkSeq this.Size)
|> ignore

0 comments on commit 6875038

Please sign in to comment.