This commit is contained in:
Patrick Stevens
2022-12-15 21:54:26 +00:00
committed by GitHub
parent 7b966eaa18
commit 5984daee58
12 changed files with 379 additions and 31 deletions

View File

@@ -47,7 +47,7 @@ type Benchmark11To15 () =
[<GlobalSetup>]
member _.Setup () = Run.shouldWrite <- false
[<Params(11, 12, 13, 14)>]
[<Params(11, 12, 13, 14, 15)>]
member val Day = 0 with get, set
[<Params(false, true)>]
@@ -55,7 +55,7 @@ type Benchmark11To15 () =
[<Benchmark>]
member this.Benchmark () : unit =
Run.allRuns.[this.Day - 1] this.IsPartOne (Inputs.day this.Day)
Run.allRuns.[this.Day - 1] (not this.IsPartOne) (Inputs.day this.Day)
[<GlobalCleanup>]
member _.Cleanup () = Run.shouldWrite <- true