diff --git a/.github/workflows/benchmark_asterinas.yml b/.github/workflows/benchmark_asterinas.yml index 81e3c7f2..8c6d40c5 100644 --- a/.github/workflows/benchmark_asterinas.yml +++ b/.github/workflows/benchmark_asterinas.yml @@ -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 diff --git a/test/benchmark/lmbench/summary.json b/test/benchmark/lmbench/summary.json index 48f2106f..923a9628 100644 --- a/test/benchmark/lmbench/summary.json +++ b/test/benchmark/lmbench/summary.json @@ -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" ] -} \ No newline at end of file +} diff --git a/test/benchmark/lmbench/tcp_loopback_bw/config.json b/test/benchmark/lmbench/tcp_loopback_bw/config.json index 4b49e560..345a8ebd 100644 --- a/test/benchmark/lmbench/tcp_loopback_bw/config.json +++ b/test/benchmark/lmbench/tcp_loopback_bw/config.json @@ -4,5 +4,5 @@ "search_pattern": "0.004096 ", "result_index": "2", "description": "bw_tcp -l", - "title": "[TCP sockets] The bandwidth (localhost)" -} \ No newline at end of file + "title": "[TCP sockets] The bandwidth (localhost, 4KB message)" +} diff --git a/test/benchmark/lmbench/tcp_loopback_bw/result_template.json b/test/benchmark/lmbench/tcp_loopback_bw/result_template.json index 5fd2e909..af220b4d 100644 --- a/test/benchmark/lmbench/tcp_loopback_bw/result_template.json +++ b/test/benchmark/lmbench/tcp_loopback_bw/result_template.json @@ -11,4 +11,4 @@ "value": 0, "extra": "aster_result" } -] \ No newline at end of file +] diff --git a/test/benchmark/lmbench/tcp_loopback_bw_64k/config.json b/test/benchmark/lmbench/tcp_loopback_bw_64k/config.json new file mode 100644 index 00000000..b1feb1a6 --- /dev/null +++ b/test/benchmark/lmbench/tcp_loopback_bw_64k/config.json @@ -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)" +} diff --git a/test/benchmark/lmbench/tcp_loopback_bw_64k/result_template.json b/test/benchmark/lmbench/tcp_loopback_bw_64k/result_template.json new file mode 100644 index 00000000..af220b4d --- /dev/null +++ b/test/benchmark/lmbench/tcp_loopback_bw_64k/result_template.json @@ -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" + } +] diff --git a/test/benchmark/lmbench/tcp_loopback_bw_64k/run.sh b/test/benchmark/lmbench/tcp_loopback_bw_64k/run.sh new file mode 100644 index 00000000..31dae042 --- /dev/null +++ b/test/benchmark/lmbench/tcp_loopback_bw_64k/run.sh @@ -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