Skip to content

Commit

Permalink
More accurate benchmark results (run in release mode without multitas…
Browse files Browse the repository at this point in the history
…king)
  • Loading branch information
kris701 committed Apr 10, 2024
1 parent 48bdfd0 commit 919f196
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ The experiments can be run by writing `dotnet test --configuration Release`.
# Performance
| Sudokus Solved | Max Search Time (ms) | Min Search Time (ms) | Average Search Time (ms) |
| - | - | - | - |
| 5153 | 6392.02 | 0.27 | 12.84 |
| 5157 | 719.58 | 0.13 | 2.19 |
4 changes: 3 additions & 1 deletion SudokuSolver.Tests/BaseTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
[assembly: Parallelize(Workers = 12, Scope = ExecutionScope.MethodLevel)]
#if DEBUG
[assembly: Parallelize(Workers = 12, Scope = ExecutionScope.MethodLevel)]
#endif

namespace SudokuSolver.Tests
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ public static void ClassCleanup()
"Average Search Time (ms)"});

_readme += Environment.NewLine + text;
#if RELEASE
File.WriteAllText(_readmeFile, _readme);
#endif
}

private class ExperimentResults()
Expand Down

0 comments on commit 919f196

Please sign in to comment.