Add benchmark CI for sysbench and getpid

This commit is contained in:
Fabing Li
2024-06-26 20:07:44 +08:00
committed by Tate, Hongliang Tian
parent 1b22267a87
commit 36841c50d4
14 changed files with 302 additions and 9 deletions

View File

@ -0,0 +1,16 @@
#!/bin/sh
# SPDX-License-Identifier: MPL-2.0
set -e
TEST_TIME=${1:-60}
TEST_THREADS=${2:-4}
echo "*** Doing sysbench CPU test with ${TEST_THREADS} threads for ${TEST_TIME} seconds ***"
/benchmark/bin/sysbench cpu \
--threads=${TEST_THREADS} \
--time=${TEST_TIME} \
--cpu-max-prime=20000 run