mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-21 08:26:30 +00:00
Add lmbench localhost UDP latency test
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
a84ed69f5f
commit
83d42d0783
1
.github/workflows/benchmark_asterinas.yml
vendored
1
.github/workflows/benchmark_asterinas.yml
vendored
@ -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:
|
||||||
|
7
test/benchmark/lmbench-udp-latency-localhost/config.json
Normal file
7
test/benchmark/lmbench-udp-latency-localhost/config.json
Normal 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."
|
||||||
|
}
|
@ -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"
|
||||||
|
}
|
||||||
|
]
|
11
test/benchmark/lmbench-udp-latency-localhost/run.sh
Normal file
11
test/benchmark/lmbench-udp-latency-localhost/run.sh
Normal 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
|
Reference in New Issue
Block a user