From 39a66aea67a0a6cf883a37761ac87cd1bed81ea0 Mon Sep 17 00:00:00 2001 From: Yuke Peng Date: Fri, 2 Aug 2024 21:27:19 +0800 Subject: [PATCH] Add unix bandwidth test --- test/benchmark/lmbench-unix-bandwidth/config.json | 7 +++++++ .../lmbench-unix-bandwidth/result_template.json | 14 ++++++++++++++ test/benchmark/lmbench-unix-bandwidth/run.sh | 9 +++++++++ 3 files changed, 30 insertions(+) create mode 100644 test/benchmark/lmbench-unix-bandwidth/config.json create mode 100644 test/benchmark/lmbench-unix-bandwidth/result_template.json create mode 100644 test/benchmark/lmbench-unix-bandwidth/run.sh diff --git a/test/benchmark/lmbench-unix-bandwidth/config.json b/test/benchmark/lmbench-unix-bandwidth/config.json new file mode 100644 index 00000000..6123079e --- /dev/null +++ b/test/benchmark/lmbench-unix-bandwidth/config.json @@ -0,0 +1,7 @@ +{ + "alert_threshold": "125%", + "alert_tool": "customBiggerIsBetter", + "search_pattern": "sock stream bandwidth", + "result_index": "5", + "description": "The bandwidth of UNIX domain socket communication on a single processor." +} \ No newline at end of file diff --git a/test/benchmark/lmbench-unix-bandwidth/result_template.json b/test/benchmark/lmbench-unix-bandwidth/result_template.json new file mode 100644 index 00000000..df9e2f24 --- /dev/null +++ b/test/benchmark/lmbench-unix-bandwidth/result_template.json @@ -0,0 +1,14 @@ +[ + { + "name": "Average unix bandwidth on Linux", + "unit": "MB/s", + "value": 0, + "extra": "linux_avg" + }, + { + "name": "Average unix bandwidth on Asterinas", + "unit": "MB/s", + "value": 0, + "extra": "aster_avg" + } +] \ No newline at end of file diff --git a/test/benchmark/lmbench-unix-bandwidth/run.sh b/test/benchmark/lmbench-unix-bandwidth/run.sh new file mode 100644 index 00000000..3752cded --- /dev/null +++ b/test/benchmark/lmbench-unix-bandwidth/run.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +# SPDX-License-Identifier: MPL-2.0 + +set -e + +echo "*** Running the LMbench unix bandwidth test ***" + +/benchmark/bin/lmbench/bw_unix -P 1 \ No newline at end of file