mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-09 13:26:48 +00:00
Add syscall-related benchmarks
This commit is contained in:
parent
0021f3014c
commit
02ad3d8cab
5
test/benchmark/lmbench-fstat/config.json
Normal file
5
test/benchmark/lmbench-fstat/config.json
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"alert_threshold": "125%",
|
||||||
|
"pattern": "Simple fstat",
|
||||||
|
"field": "3"
|
||||||
|
}
|
14
test/benchmark/lmbench-fstat/result_template.json
Normal file
14
test/benchmark/lmbench-fstat/result_template.json
Normal 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"
|
||||||
|
}
|
||||||
|
]
|
10
test/benchmark/lmbench-fstat/run.sh
Normal file
10
test/benchmark/lmbench-fstat/run.sh
Normal 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
|
5
test/benchmark/lmbench-open/config.json
Normal file
5
test/benchmark/lmbench-open/config.json
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"alert_threshold": "125%",
|
||||||
|
"pattern": "Simple open\\/close",
|
||||||
|
"field": "3"
|
||||||
|
}
|
14
test/benchmark/lmbench-open/result_template.json
Normal file
14
test/benchmark/lmbench-open/result_template.json
Normal 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"
|
||||||
|
}
|
||||||
|
]
|
10
test/benchmark/lmbench-open/run.sh
Normal file
10
test/benchmark/lmbench-open/run.sh
Normal 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
|
5
test/benchmark/lmbench-stat/config.json
Normal file
5
test/benchmark/lmbench-stat/config.json
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"alert_threshold": "125%",
|
||||||
|
"pattern": "Simple stat",
|
||||||
|
"field": "3"
|
||||||
|
}
|
14
test/benchmark/lmbench-stat/result_template.json
Normal file
14
test/benchmark/lmbench-stat/result_template.json
Normal 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"
|
||||||
|
}
|
||||||
|
]
|
10
test/benchmark/lmbench-stat/run.sh
Normal file
10
test/benchmark/lmbench-stat/run.sh
Normal 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
|
Loading…
x
Reference in New Issue
Block a user