Skip to content

Commit

Permalink
Update benchmark script focusing on FNT only
Browse files Browse the repository at this point in the history
  • Loading branch information
lamphamsy committed Mar 19, 2019
1 parent 673fa6c commit 22561b8
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions scripts/benchmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,23 @@ fi
chunk_size=51200
# for rs-fnt with different packet sizes
word_size=2
for ec_type in rs-fnt rs-fnt-sys; do
for k in 16; do
for n in 256 1024; do
m=$((n-k))
for pkt_size in 256 512 1024; do
${bin} -e ${ec_type} -w ${word_size} -k ${k} -m ${m} -c ${chunk_size} -s ${sce_type} -g ${threads_nb} -f ${show_type} -p ${pkt_size} -n ${samples_nb}
done
for word_size in 1 2; do
for type_size in 2 4; do
max_len=$((256**word_size))
if ((type_size>word_size)); then
for ec_type in rs-fnt rs-fnt-sys; do
for k in 16 64; do
for n in 32 256 1024; do
if ((n<max_len)) && ((n>k)); then
m=$((n-k))
for pkt_size in 512; do
${bin} -e ${ec_type} -w ${word_size} -t ${type_size} -k ${k} -m ${m} -c ${chunk_size} -s ${sce_type} -g ${threads_nb} -f ${show_type} -p ${pkt_size} -n ${samples_nb}
show_type=0
done
fi
done
done
done
fi
done
done
done

0 comments on commit 22561b8

Please sign in to comment.