mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-22 17:03:23 +00:00
Add lmbench TCP connect latency test
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
316e4bf2c6
commit
34352dc0d9
1
.github/workflows/benchmark_asterinas.yml
vendored
1
.github/workflows/benchmark_asterinas.yml
vendored
@ -58,6 +58,7 @@ jobs:
|
||||
- lmbench-select-tcp
|
||||
- lmbench-http-bandwidth
|
||||
- lmbench-tcp-bandwidth-localhost
|
||||
- lmbench-tcp-connect-latency
|
||||
fail-fast: false
|
||||
timeout-minutes: 60
|
||||
container:
|
||||
|
7
test/benchmark/lmbench-tcp-connect-latency/config.json
Normal file
7
test/benchmark/lmbench-tcp-connect-latency/config.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"alert_threshold": "125%",
|
||||
"alert_tool": "customSmallerIsBetter",
|
||||
"search_pattern": "TCP\\/IP connection cost to 127.0.0.1:",
|
||||
"result_index": "6",
|
||||
"description": "The latency of TCP connection on localhost."
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Average TCP connection latency on Linux",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "linux_avg"
|
||||
},
|
||||
{
|
||||
"name": "Average TCP connection latency on Asterinas",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "aster_avg"
|
||||
}
|
||||
]
|
11
test/benchmark/lmbench-tcp-connect-latency/run.sh
Normal file
11
test/benchmark/lmbench-tcp-connect-latency/run.sh
Normal file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
set -e
|
||||
|
||||
echo "*** Running lmbench TCP connection latency test***"
|
||||
|
||||
/benchmark/bin/lmbench/lat_connect -s
|
||||
/benchmark/bin/lmbench/lat_connect 127.0.0.1
|
||||
/benchmark/bin/lmbench/lat_connect -S 127.0.0.1
|
Reference in New Issue
Block a user