Added ability to add benchmark results from hardware page
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2024-02-09 13:57:01 -05:00
parent 5628c69d66
commit 1e0cd49cf8
4 changed files with 48 additions and 7 deletions
+10
View File
@@ -8,4 +8,14 @@ module Helpers
return dt.strftime('%B %d, %Y @ %I:%M:%S %p %Z')
end
def average_array(arr, decimals = 1)
sum = 0
arr.each do |i|
sum += i
end
return (sum / arr.length).round(decimals)
end
end