Skip to content

Commit 8827252

Browse files
committed
Bump regression precision for small iteration counts
1 parent f04027c commit 8827252

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/bench_heap_profile.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ for phase in $PHASES; do
180180
prev_val=$(grep "^${prev_phase_key}=" "$DATA" | cut -d= -f2)
181181
delta=$((cur - prev_val))
182182
fi
183-
steps_m=$(awk "BEGIN {printf \"%.2f\", $steps / 1000000}")
183+
steps_m=$(awk "BEGIN {printf \"%.6f\", $steps / 1000000}")
184184
PAIRS="$PAIRS $steps_m $delta"
185185
done
186186

@@ -216,7 +216,7 @@ for size in $PROGRAMS; do
216216
steps=$(grep "^steps=" "$DATA" | cut -d= -f2)
217217
peak=$(grep "^peak=" "$DATA" | cut -d= -f2)
218218
[ -z "$peak" ] && continue
219-
steps_m=$(awk "BEGIN {printf \"%.2f\", $steps / 1000000}")
219+
steps_m=$(awk "BEGIN {printf \"%.6f\", $steps / 1000000}")
220220
PEAK_PAIRS="$PEAK_PAIRS $steps_m $peak"
221221
done
222222

0 commit comments

Comments
 (0)