Add syscall-related benchmarks
This commit is contained in:
parent
0021f3014c
commit
02ad3d8cab
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"alert_threshold": "125%",
|
||||
"pattern": "Simple fstat",
|
||||
"field": "3"
|
||||
}
|
||||
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
|
|
@ -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
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"alert_threshold": "125%",
|
||||
"pattern": "Simple open\\/close",
|
||||
"field": "3"
|
||||
}
|
||||
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
|
|
@ -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
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"alert_threshold": "125%",
|
||||
"pattern": "Simple stat",
|
||||
"field": "3"
|
||||
}
|
||||
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
|
|
@ -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
|
||||
Loading…
Reference in New Issue