Add lmbench localhost UDP latency test

This commit is contained in:
Yuke Peng
2024-08-26 17:37:30 +08:00
committed by Tate, Hongliang Tian
parent a84ed69f5f
commit 83d42d0783
4 changed files with 33 additions and 0 deletions

View File

@ -60,6 +60,7 @@ jobs:
- lmbench-tcp-bandwidth-localhost - lmbench-tcp-bandwidth-localhost
- lmbench-tcp-connect-latency - lmbench-tcp-connect-latency
- lmbench-tcp-latency-localhost - lmbench-tcp-latency-localhost
- lmbench-udp-latency-localhost
fail-fast: false fail-fast: false
timeout-minutes: 60 timeout-minutes: 60
container: container:

View File

@ -0,0 +1,7 @@
{
"alert_threshold": "125%",
"alert_tool": "customSmallerIsBetter",
"search_pattern": "UDP latency using 127.0.0.1:",
"result_index": "5",
"description": "The latency of UDP on localhost."
}

View File

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

View File

@ -0,0 +1,11 @@
#!/bin/sh
# SPDX-License-Identifier: MPL-2.0
set -e
echo "*** Running lmbench UDP latency test ***"
/benchmark/bin/lmbench/lat_udp -s
/benchmark/bin/lmbench/lat_udp -P 1 127.0.0.1
/benchmark/bin/lmbench/lat_udp -S 127.0.0.1