benchmark_batch.sh 343 字节
Newer Older
M
MRXLT 已提交
1 2 3 4 5
rm profile_log
thread_num=1
for batch_size in 1 4 8 16 32 64 128 256
do
    $PYTHONROOT/bin/python benchmark_batch.py serving_client_conf/serving_client_conf.prototxt data.txt $thread_num $batch_size > profile 2>&1
M
MRXLT 已提交
6
    $PYTHONROOT/bin/python ../util/show_profile.py profile $thread_num >> profile_log
M
MRXLT 已提交
7 8
    tail -n 1 profile >> profile_log
done