-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
uadk: add test.sh for performance testing
Signed-off-by: Zhangfei Gao <[email protected]>
- Loading branch information
1 parent
212b5ec
commit 9598e0a
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
set -x | ||
|
||
echo "Testing sm3 /sm4, sync & async" | ||
echo "Testing hw, hw+ce, ce" | ||
echo "Testing hw, hw+sve, sve" | ||
|
||
default_size=8192 | ||
values=(1 2 4 8 16 32) | ||
|
||
if [ -n "$1" ]; then | ||
size=$1 | ||
else | ||
size=$default_size | ||
fi | ||
|
||
for x in "${values[@]}" | ||
do | ||
echo $x | ||
#sm4 sync | ||
numactl --cpubind=0 --membind=0 uadk_tool benchmark --alg sm4-128-ecb --mode sva --opt 0 --sync --pktlen $size --seconds 10 --multi 1 --thread $x --ctxnum $x --init2 --prefetch | ||
|
||
#sm4 async | ||
numactl --cpubind=0 --membind=0 uadk_tool benchmark --alg sm4-128-ecb --mode sva --opt 0 --async --pktlen $size --seconds 10 --multi 1 --thread $x --ctxnum $x --init2 --prefetch | ||
|
||
|
||
#sm3 sync | ||
numactl --cpubind=0 --membind=0 uadk_tool benchmark --alg sm3 --mode sva --opt 0 --sync --pktlen $size --seconds 20 --multi 1 --thread $x --ctxnum $x --init2 --prefetch | ||
|
||
#sm3 async | ||
numactl --cpubind=0 --membind=0 uadk_tool benchmark --alg sm3 --mode sva --opt 0 --async --pktlen $size --seconds 20 --multi 1 --thread $x --ctxnum $x --init2 --prefetch | ||
done |