Skip to content

Commit

Permalink
Fixup to previous commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneia committed Oct 8, 2015
1 parent 0e4f7a0 commit c03ac4d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/scripts/bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

function n_times {
for i in $(seq $1); do
echo $(bench/$bench || echo "0")
echo $(bench/$2 || echo "0")
done
}

Expand All @@ -12,9 +12,9 @@ function median_stdev {
}

for bench in $(ls bench/); do
if [ -z "$SAMPLESIZE" ]; then
if [ -z "$SNABB_PERF_SAMPLESIZE" ]; then
echo $bench $(n_times 1 $bench) "-"
else
echo $bench $(n_times $SAMPLESIZE $bench | median_stdev)
echo $bench $(n_times $SNABB_PERF_SAMPLESIZE $bench | median_stdev)
fi
done

0 comments on commit c03ac4d

Please sign in to comment.