benchmark.sh 551 字节
Newer Older
M
MRXLT 已提交
1
rm profile_log
M
MRXLT 已提交
2 3
#for thread_num in 1 2 4 8 16
for thread_num in 1 2
M
MRXLT 已提交
4
do
M
MRXLT 已提交
5 6 7 8 9 10
#for batch_size in 1 2 4 8 16 32 64 128 256 512
for batch_size in 1 2
do
    $PYTHONROOT/bin/python benchmark.py --thread $thread_num --batch_size $batch_size --model serving_client_conf/serving_client_conf.prototxt --request rpc > profile 2>&1
    echo "========================================"
    echo "batch size : $batch_size" >> profile_log
M
MRXLT 已提交
11
    $PYTHONROOT/bin/python ../util/show_profile.py profile $thread_num >> profile_log
M
MRXLT 已提交
12 13
    tail -n 1 profile >> profile_log
done
M
MRXLT 已提交
14
done