mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-08 21:06:48 +00:00
Benchmark TCP localhost with 64K messages
This commit is contained in:
parent
5b336eabdc
commit
17ea6e91b0
1
.github/workflows/benchmark_asterinas.yml
vendored
1
.github/workflows/benchmark_asterinas.yml
vendored
@ -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
|
||||
|
@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -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)"
|
||||
}
|
||||
|
@ -11,4 +11,4 @@
|
||||
"value": 0,
|
||||
"extra": "aster_result"
|
||||
}
|
||||
]
|
||||
]
|
||||
|
8
test/benchmark/lmbench/tcp_loopback_bw_64k/config.json
Normal file
8
test/benchmark/lmbench/tcp_loopback_bw_64k/config.json
Normal 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)"
|
||||
}
|
@ -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"
|
||||
}
|
||||
]
|
11
test/benchmark/lmbench/tcp_loopback_bw_64k/run.sh
Normal file
11
test/benchmark/lmbench/tcp_loopback_bw_64k/run.sh
Normal 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
|
Loading…
x
Reference in New Issue
Block a user