Benchmark TCP localhost with 64K messages

This commit is contained in:
Ruihan Li 2024-09-29 09:21:28 +08:00 committed by Tate, Hongliang Tian
parent 5b336eabdc
commit 17ea6e91b0
7 changed files with 39 additions and 4 deletions

View File

@ -56,6 +56,7 @@ jobs:
- lmbench/ext2_copy_files_bw
# Network-related benchmark
- lmbench/tcp_loopback_bw
- lmbench/tcp_loopback_bw_64k
- lmbench/tcp_loopback_lat
- lmbench/tcp_loopback_connect_lat
- lmbench/tcp_loopback_select_lat

View File

@ -32,10 +32,11 @@
"ramfs_create_delete_files_10k_ops",
"ext2_copy_files_bw",
"tcp_loopback_bw",
"tcp_loopback_bw_64k",
"tcp_loopback_lat",
"tcp_loopback_connect_lat",
"tcp_loopback_select_lat",
"tcp_loopback_http_bw",
"udp_loopback_lat"
]
}
}

View File

@ -4,5 +4,5 @@
"search_pattern": "0.004096 ",
"result_index": "2",
"description": "bw_tcp -l",
"title": "[TCP sockets] The bandwidth (localhost)"
}
"title": "[TCP sockets] The bandwidth (localhost, 4KB message)"
}

View File

@ -11,4 +11,4 @@
"value": 0,
"extra": "aster_result"
}
]
]

View File

@ -0,0 +1,8 @@
{
"alert_threshold": "125%",
"alert_tool": "customBiggerIsBetter",
"search_pattern": "0.065536 ",
"result_index": "2",
"description": "bw_tcp -l",
"title": "[TCP sockets] The bandwidth (localhost, 64KB message)"
}

View File

@ -0,0 +1,14 @@
[
{
"name": "Average TCP bandwidth on Linux",
"unit": "MB/s",
"value": 0,
"extra": "linux_result"
},
{
"name": "Average TCP bandwidth on Asterinas",
"unit": "MB/s",
"value": 0,
"extra": "aster_result"
}
]

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 65536 -P 1 127.0.0.1
/benchmark/bin/lmbench/bw_tcp -S 127.0.0.1