mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-23 17:33:23 +00:00
Add benchmark CI for sysbench and getpid
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
1b22267a87
commit
36841c50d4
16
regression/benchmark/sysbench-cpu/run.sh
Executable file
16
regression/benchmark/sysbench-cpu/run.sh
Executable 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
|
||||
|
Reference in New Issue
Block a user