mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-14 15:56:47 +00:00
Add lmbench unix connect latency test
This commit is contained in:
parent
069cd7932b
commit
30726ad880
1
.github/workflows/benchmark_asterinas.yml
vendored
1
.github/workflows/benchmark_asterinas.yml
vendored
@ -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
|
||||
|
7
test/benchmark/lmbench-unix-connect-latency/config.json
Normal file
7
test/benchmark/lmbench-unix-connect-latency/config.json
Normal 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."
|
||||
}
|
@ -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"
|
||||
}
|
||||
]
|
10
test/benchmark/lmbench-unix-connect-latency/run.sh
Normal file
10
test/benchmark/lmbench-unix-connect-latency/run.sh
Normal 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
|
Loading…
x
Reference in New Issue
Block a user