mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-25 02:13:24 +00:00
Add benchmark CI for sysbench and getpid
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
1b22267a87
commit
36841c50d4
5
regression/benchmark/sysbench-cpu/config.json
Normal file
5
regression/benchmark/sysbench-cpu/config.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"alert_threshold": "130%",
|
||||
"pattern": "avg:",
|
||||
"field": "NF"
|
||||
}
|
14
regression/benchmark/sysbench-cpu/result_template.json
Normal file
14
regression/benchmark/sysbench-cpu/result_template.json
Normal file
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Average Execution Time per CPU on Linux",
|
||||
"unit": "ms",
|
||||
"value": 0,
|
||||
"extra": "linux_avg"
|
||||
},
|
||||
{
|
||||
"name": "Average Execution Time per CPU on Asterinas",
|
||||
"unit": "ms",
|
||||
"value": 0,
|
||||
"extra": "aster_avg"
|
||||
}
|
||||
]
|
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