Add lmbench localhost TCP latency test

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

View File

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

View File

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

View File

@ -0,0 +1,14 @@
[
{
"name": "Average TCP latency on Linux",
"unit": "µs",
"value": 0,
"extra": "linux_avg"
},
{
"name": "Average TCP 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 TCP latency test ***"
/benchmark/bin/lmbench/lat_tcp -s
/benchmark/bin/lmbench/lat_tcp -P 1 127.0.0.1
/benchmark/bin/lmbench/lat_tcp -S 127.0.0.1