Skip to content

Commit

Permalink
Fix averaging error in benchmarking function
Browse files Browse the repository at this point in the history
  • Loading branch information
scottmckendry committed Dec 16, 2023
1 parent 13172c1 commit 337ba84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 2022/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func GetSolutionStatistics(solutions map[string]func()) []SolutionStatistics {
Name: problemName,
Day: functionName[6:8],
Part: functionName[9:10],
ExecutionTime: (averageExecutionTime / 100).Round(time.Microsecond),
ExecutionTime: (averageExecutionTime / 10).Round(time.Microsecond),
})
}

Expand Down
2 changes: 1 addition & 1 deletion 2023/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func GetSolutionStatistics(solutions map[string]func()) []SolutionStatistics {
Name: problemName,
Day: functionName[6:8],
Part: functionName[9:10],
ExecutionTime: (averageExecutionTime / 100).Round(time.Microsecond),
ExecutionTime: (averageExecutionTime / 10).Round(time.Microsecond),
})
}

Expand Down

0 comments on commit 337ba84

Please sign in to comment.