mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-28 03:43:23 +00:00
Reorganize the structure of benchmarks
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
7a13c0dff6
commit
32bfa76703
8
test/benchmark/sysbench/cpu_lat/config.json
Normal file
8
test/benchmark/sysbench/cpu_lat/config.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"alert_threshold": "130%",
|
||||
"alert_tool": "customSmallerIsBetter",
|
||||
"search_pattern": "avg:",
|
||||
"result_index": "NF",
|
||||
"description": "sysbench cpu",
|
||||
"title": "[CPU] CPU performance"
|
||||
}
|
14
test/benchmark/sysbench/cpu_lat/result_template.json
Normal file
14
test/benchmark/sysbench/cpu_lat/result_template.json
Normal 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"
|
||||
}
|
||||
]
|
16
test/benchmark/sysbench/cpu_lat/run.sh
Executable file
16
test/benchmark/sysbench/cpu_lat/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
|
||||
|
8
test/benchmark/sysbench/thread_lat/config.json
Normal file
8
test/benchmark/sysbench/thread_lat/config.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"alert_threshold": "130%",
|
||||
"alert_tool": "customSmallerIsBetter",
|
||||
"search_pattern": "avg:",
|
||||
"result_index": "NF",
|
||||
"description": "sysbench threads",
|
||||
"title": "[Threads] Threads performance"
|
||||
}
|
14
test/benchmark/sysbench/thread_lat/result_template.json
Normal file
14
test/benchmark/sysbench/thread_lat/result_template.json
Normal 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"
|
||||
}
|
||||
]
|
16
test/benchmark/sysbench/thread_lat/run.sh
Executable file
16
test/benchmark/sysbench/thread_lat/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:-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
|
Reference in New Issue
Block a user