Add syscall-related benchmarks

This commit is contained in:
Yuke Peng 2024-07-18 15:24:28 +08:00 committed by Tate, Hongliang Tian
parent 0021f3014c
commit 02ad3d8cab
9 changed files with 87 additions and 0 deletions

View File

@ -0,0 +1,5 @@
{
"alert_threshold": "125%",
"pattern": "Simple fstat",
"field": "3"
}

View File

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

View File

@ -0,0 +1,10 @@
#!/bin/sh
# SPDX-License-Identifier: MPL-2.0
set -e
echo "*** Running the LMbench fstat latency test ***"
touch test_file
/benchmark/bin/lmbench/lat_syscall -P 1 fstat test_file

View File

@ -0,0 +1,5 @@
{
"alert_threshold": "125%",
"pattern": "Simple open\\/close",
"field": "3"
}

View File

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

View File

@ -0,0 +1,10 @@
#!/bin/sh
# SPDX-License-Identifier: MPL-2.0
set -e
echo "*** Running the LMbench open latency test ***"
touch test_file
/benchmark/bin/lmbench/lat_syscall -P 1 open test_file

View File

@ -0,0 +1,5 @@
{
"alert_threshold": "125%",
"pattern": "Simple stat",
"field": "3"
}

View File

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

View File

@ -0,0 +1,10 @@
#!/bin/sh
# SPDX-License-Identifier: MPL-2.0
set -e
echo "*** Running the LMbench stat latency test ***"
touch test_file
/benchmark/bin/lmbench/lat_syscall -P 1 stat test_file