Skip to content

Commit

Permalink
uadk: add test.sh for performance testing
Browse files Browse the repository at this point in the history
Signed-off-by: Zhangfei Gao <[email protected]>
  • Loading branch information
zhangfeigao committed Jan 6, 2025
1 parent 212b5ec commit 97736f1
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
set -x

echo "Testing sm3 /sm4, sync & async"
echo "Testing hw, hw+ce, ce"
echo "Testing hw, hw+sve, sve"

#sm4 sync
numactl --cpubind=0 --membind=0 uadk_tool benchmark --alg sm4-128-ecb --mode sva --opt 0 --sync --pktlen 1024 --seconds 10 --multi 1 --thread 8 --ctxnum 8 --init2

#sm4 async
numactl --cpubind=0 --membind=0 uadk_tool benchmark --alg sm4-128-ecb --mode sva --opt 0 --async --pktlen 1024 --seconds 10 --multi 1 --thread 8 --ctxnum 8 --init2


#sm3 sync
numactl --cpubind=0 --membind=0 uadk_tool benchmark --alg sm3 --mode sva --opt 0 --sync --pktlen 1024 --seconds 20 --multi 1 --thread 8 --ctxnum 8 --init2

#sm3 async
numactl --cpubind=0 --membind=0 uadk_tool benchmark --alg sm3 --mode sva --opt 0 --async --pktlen 1024 --seconds 20 --multi 1 --thread 8 --ctxnum 8 --init2

0 comments on commit 97736f1

Please sign in to comment.