Add lmbench unix connect latency test

This commit is contained in:
Yuke Peng 2024-08-22 16:09:42 +08:00 committed by Tate, Hongliang Tian
parent 069cd7932b
commit 30726ad880
4 changed files with 32 additions and 0 deletions

View File

@ -26,6 +26,7 @@ jobs:
# IPC-related benchmarks
- lmbench-unix-latency
- lmbench-unix-bandwidth
- lmbench-unix-connect-latency
- lmbench-pipe-latency
- lmbench-pipe-bandwidth
# Syscall-related benchmarks

View File

@ -0,0 +1,7 @@
{
"alert_threshold": "125%",
"alert_tool": "customSmallerIsBetter",
"search_pattern": "UNIX connection cost:",
"result_index": "4",
"description": "The latency of UNIX domain socket connection on a single processor."
}

View File

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

View File

@ -0,0 +1,10 @@
#!/bin/sh
# SPDX-License-Identifier: MPL-2.0
set -e
echo "*** Running the LMbench unix connect latency test ***"
/benchmark/bin/lmbench/lat_unix_connect -s
/benchmark/bin/lmbench/lat_unix_connect -P 1