Skip to content

Commit b3b4e73

Browse files
committed
Benchmark script test: FecFnt supports only T = 2*w
1 parent f7e2e00 commit b3b4e73

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

scripts/benchmark.sh

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -44,24 +44,22 @@ fi
4444

4545
chunk_size=51200
4646
# for rs-fnt with different packet sizes
47-
word_size=2
4847
for word_size in 1 2; do
49-
for type_size in 2 4; do
50-
max_len=$((256**word_size))
51-
if ((type_size>word_size)); then
52-
for ec_type in rs-fnt rs-fnt-sys; do
53-
for k in 16 64; do
54-
for n in 32 256 1024; do
55-
if ((n<max_len)) && ((n>k)); then
56-
m=$((n-k))
57-
for pkt_size in 512; do
58-
${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}
59-
show_type=0
60-
done
61-
fi
48+
type_size=$((word_size*2))
49+
max_len=$((256**word_size))
50+
if ((type_size>word_size)); then
51+
for ec_type in rs-fnt rs-fnt-sys; do
52+
for k in 16 64; do
53+
for n in 32 256 1024; do
54+
if ((n<max_len)) && ((n>k)); then
55+
m=$((n-k))
56+
for pkt_size in 512; do
57+
${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}
58+
show_type=0
6259
done
63-
done
60+
fi
6461
done
65-
fi
66-
done
62+
done
63+
done
64+
fi
6765
done

0 commit comments

Comments
 (0)