mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-08 21:06:48 +00:00
Add unix latency benchmark
This commit is contained in:
parent
02ad3d8cab
commit
e22d23429e
5
test/benchmark/lmbench-unix-latency/config.json
Normal file
5
test/benchmark/lmbench-unix-latency/config.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"alert_threshold": "125%",
|
||||
"pattern": "sock stream latency",
|
||||
"field": "5"
|
||||
}
|
14
test/benchmark/lmbench-unix-latency/result_template.json
Normal file
14
test/benchmark/lmbench-unix-latency/result_template.json
Normal file
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Average unix latency on Linux",
|
||||
"unit": "ms",
|
||||
"value": 0,
|
||||
"extra": "linux_avg"
|
||||
},
|
||||
{
|
||||
"name": "Average unix latency on Asterinas",
|
||||
"unit": "ms",
|
||||
"value": 0,
|
||||
"extra": "aster_avg"
|
||||
}
|
||||
]
|
9
test/benchmark/lmbench-unix-latency/run.sh
Normal file
9
test/benchmark/lmbench-unix-latency/run.sh
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
set -e
|
||||
|
||||
echo "*** Running the LMbench unix latency test ***"
|
||||
|
||||
/benchmark/bin/lmbench/lat_unix -P 1
|
Loading…
x
Reference in New Issue
Block a user