Reorganize the structure of benchmarks

This commit is contained in:
Fabing Li
2024-09-13 17:35:52 +08:00
committed by Tate, Hongliang Tian
parent 7a13c0dff6
commit 32bfa76703
126 changed files with 362 additions and 282 deletions

View File

@ -0,0 +1,8 @@
{
"alert_threshold": "130%",
"alert_tool": "customSmallerIsBetter",
"search_pattern": "avg:",
"result_index": "NF",
"description": "sysbench cpu",
"title": "[CPU] CPU performance"
}

View File

@ -0,0 +1,14 @@
[
{
"name": "Average Execution Time per CPU on Linux",
"unit": "ms",
"value": 0,
"extra": "linux_result"
},
{
"name": "Average Execution Time per CPU on Asterinas",
"unit": "ms",
"value": 0,
"extra": "aster_result"
}
]

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

View File

@ -0,0 +1,8 @@
{
"alert_threshold": "130%",
"alert_tool": "customSmallerIsBetter",
"search_pattern": "avg:",
"result_index": "NF",
"description": "sysbench threads",
"title": "[Threads] Threads performance"
}

View File

@ -0,0 +1,14 @@
[
{
"name": "Average Execution Time per Thread on Linux",
"unit": "ms",
"value": 0,
"extra": "linux_result"
},
{
"name": "Average Execution Time per Thread on Asterinas",
"unit": "ms",
"value": 0,
"extra": "aster_result"
}
]

View File

@ -0,0 +1,16 @@
#!/bin/sh
# SPDX-License-Identifier: MPL-2.0
set -e
TEST_TIME=${1:-60}
TEST_THREADS=${2:-200}
echo "*** Doing sysbench with ${TEST_THREADS} threads for ${TEST_TIME} seconds ***"
/benchmark/bin/sysbench threads \
--threads=${TEST_THREADS} \
--thread-yields=100 \
--thread-locks=4 \
--time=${TEST_TIME} run