Add process-related benchmarks

This commit is contained in:
Yuke Peng 2024-07-18 15:22:13 +08:00 committed by Tate, Hongliang Tian
parent 3462da986e
commit 922176641c
9 changed files with 84 additions and 0 deletions

View File

@ -0,0 +1,5 @@
{
"alert_threshold": "125%",
"pattern": "18 ",
"field": "2"
}

View File

@ -0,0 +1,14 @@
[
{
"name": "Average context switch latency on Linux",
"unit": "ms",
"value": 0,
"extra": "linux_avg"
},
{
"name": "Average context switch latency on Asterinas",
"unit": "ms",
"value": 0,
"extra": "aster_avg"
}
]

View File

@ -0,0 +1,9 @@
#!/bin/sh
# SPDX-License-Identifier: MPL-2.0
set -e
echo "*** Running the LMbench context switch latency test ***"
/benchmark/bin/lmbench/lat_ctx -P 1 18

View File

@ -0,0 +1,5 @@
{
"alert_threshold": "125%",
"pattern": "Process fork\\+execve",
"field": "3"
}

View File

@ -0,0 +1,14 @@
[
{
"name": "Average exec latency on Linux",
"unit": "ms",
"value": 0,
"extra": "linux_avg"
},
{
"name": "Average exec latency on Asterinas",
"unit": "ms",
"value": 0,
"extra": "aster_avg"
}
]

View File

@ -0,0 +1,9 @@
#!/bin/sh
# SPDX-License-Identifier: MPL-2.0
set -e
echo "*** Running the LMbench exec latency test ***"
/benchmark/bin/lmbench/lat_proc -P 1 exec

View File

@ -0,0 +1,5 @@
{
"alert_threshold": "125%",
"pattern": "Process fork\\+\\/bin\\/sh",
"field": "4"
}

View File

@ -0,0 +1,14 @@
[
{
"name": "Average shell latency on Linux",
"unit": "ms",
"value": 0,
"extra": "linux_avg"
},
{
"name": "Average shell latency on Asterinas",
"unit": "ms",
"value": 0,
"extra": "aster_avg"
}
]

View File

@ -0,0 +1,9 @@
#!/bin/sh
# SPDX-License-Identifier: MPL-2.0
set -e
echo "*** Running the LMbench shell latency test ***"
/benchmark/bin/lmbench/lat_proc -P 1 shell