mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-09 13:26:48 +00:00
Add process-related benchmarks
This commit is contained in:
parent
3462da986e
commit
922176641c
5
test/benchmark/lmbench-ctx/config.json
Normal file
5
test/benchmark/lmbench-ctx/config.json
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"alert_threshold": "125%",
|
||||||
|
"pattern": "18 ",
|
||||||
|
"field": "2"
|
||||||
|
}
|
14
test/benchmark/lmbench-ctx/result_template.json
Normal file
14
test/benchmark/lmbench-ctx/result_template.json
Normal 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"
|
||||||
|
}
|
||||||
|
]
|
9
test/benchmark/lmbench-ctx/run.sh
Normal file
9
test/benchmark/lmbench-ctx/run.sh
Normal 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
|
5
test/benchmark/lmbench-exec/config.json
Normal file
5
test/benchmark/lmbench-exec/config.json
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"alert_threshold": "125%",
|
||||||
|
"pattern": "Process fork\\+execve",
|
||||||
|
"field": "3"
|
||||||
|
}
|
14
test/benchmark/lmbench-exec/result_template.json
Normal file
14
test/benchmark/lmbench-exec/result_template.json
Normal 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"
|
||||||
|
}
|
||||||
|
]
|
9
test/benchmark/lmbench-exec/run.sh
Normal file
9
test/benchmark/lmbench-exec/run.sh
Normal 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
|
5
test/benchmark/lmbench-shell/config.json
Normal file
5
test/benchmark/lmbench-shell/config.json
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"alert_threshold": "125%",
|
||||||
|
"pattern": "Process fork\\+\\/bin\\/sh",
|
||||||
|
"field": "4"
|
||||||
|
}
|
14
test/benchmark/lmbench-shell/result_template.json
Normal file
14
test/benchmark/lmbench-shell/result_template.json
Normal 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"
|
||||||
|
}
|
||||||
|
]
|
9
test/benchmark/lmbench-shell/run.sh
Normal file
9
test/benchmark/lmbench-shell/run.sh
Normal 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
|
Loading…
x
Reference in New Issue
Block a user