Add lmbench localhost TCP bandwidth test

This commit is contained in:
Yuke Peng
2024-08-26 17:35:36 +08:00
committed by Tate, Hongliang Tian
parent 9fec6ce95a
commit 316e4bf2c6
4 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,7 @@
{
"alert_threshold": "125%",
"alert_tool": "customBiggerIsBetter",
"search_pattern": "0.004096 ",
"result_index": "2",
"description": "The bandwidth of TCP with 4096 message size in localhost."
}

View File

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