mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-09 13:26:48 +00:00
Add lmbench signal protection test
This commit is contained in:
parent
21255655c0
commit
8ce86e4d98
1
.github/workflows/benchmark_asterinas.yml
vendored
1
.github/workflows/benchmark_asterinas.yml
vendored
@ -38,6 +38,7 @@ jobs:
|
||||
# Signal-related benchmarks
|
||||
- lmbench-signal
|
||||
- lmbench-signal-install
|
||||
- lmbench-signal-prot
|
||||
# File-related benchmarks
|
||||
- lmbench-file-rd-bandwidth
|
||||
- lmbench-select-file
|
||||
|
7
test/benchmark/lmbench-signal-prot/config.json
Normal file
7
test/benchmark/lmbench-signal-prot/config.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"alert_threshold": "125%",
|
||||
"alert_tool": "customSmallerIsBetter",
|
||||
"search_pattern": "Protection fault:",
|
||||
"result_index": "3",
|
||||
"description": "The latency to catch a protection fault on a single processor."
|
||||
}
|
14
test/benchmark/lmbench-signal-prot/result_template.json
Normal file
14
test/benchmark/lmbench-signal-prot/result_template.json
Normal file
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Average protection fault latency on Linux",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "linux_avg"
|
||||
},
|
||||
{
|
||||
"name": "Average protection fault latency on Asterinas",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "aster_avg"
|
||||
}
|
||||
]
|
10
test/benchmark/lmbench-signal-prot/run.sh
Normal file
10
test/benchmark/lmbench-signal-prot/run.sh
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
set -e
|
||||
|
||||
echo "*** Running the LMbench protection fault latency test ***"
|
||||
|
||||
dd if=/dev/zero of=/ext2/test_file bs=1M count=256
|
||||
/benchmark/bin/lmbench/lat_sig prot /ext2/test_file
|
Loading…
x
Reference in New Issue
Block a user