This file contains hidden or 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
| // Results from Benchmark.NET | |
| // | Method | Mean | Error | StdDev | Min | Max | | |
| // |--------------- |---------:|--------:|--------:|---------:|---------:| | |
| // | FindRecipe | 304.3 ns | 0.76 ns | 0.71 ns | 303.2 ns | 305.8 ns | | |
| // | FastFindRecipe | 125.6 ns | 0.27 ns | 0.25 ns | 125.3 ns | 126.1 ns | | |
| using BenchmarkDotNet.Attributes; | |
| using BenchmarkDotNet.Running; | |
| using System.Diagnostics.CodeAnalysis; |
This file contains hidden or 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
| // System Specs | |
| // ============ | |
| // These benchmarks were run on an Intel i7-9700k @ 3.6 GHz | |
| // | |
| // How it was run | |
| // =============== | |
| // The correct recipe is at the very end of the list of recipes. Which means this must run | |
| // through the entire list, the worst case scenario. The rest of the recipes are randomized | |
| // to offer some variation, but I don't set the slots where the correct recipe has the correct slots. | |
| // to ensure we don't accidentally exit early. |