Skip to content

Commit 9f0f8cb

Browse files
author
Yiannis Tsiouris
committed
Fix bugs in speedups and stddev
1 parent a04dffc commit 9f0f8cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ collect_results ()
7777
> results/runtime.res
7878
pr -m -t results/runtime_beam.res results/runtime_hipe.res \
7979
results/runtime_erllvm.res \
80-
| gawk '{print $1 "\t" $2/$4 "\t" $4/$6 "\t\t" $2 "\t" $4 "\t" $6}' \
80+
| gawk '{print $1 "\t" $2/$6 "\t" $4/$6 "\t\t" $2 "\t" $4 "\t" $6}' \
8181
>> results/runtime.res
8282
## Print average performance results of current execution:
8383
awk '{btl += $2; htl += $3} END {print "Runtime BTL:", btl/(NR-1), \

stats.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,5 +100,5 @@ std_dev(Values) ->
100100
Avg = avg(Values),
101101
Sums = lists:foldl(
102102
fun(V, Acc) -> D = V - Avg, Acc + (D * D) end, 0, Values),
103-
math:sqrt(Sums / L - 1.0)
103+
math:sqrt(Sums / (L - 1))
104104
end.

0 commit comments

Comments
 (0)