From 837c7bebb61a72e248336e42bd9c1d1b2e9c7fd0 Mon Sep 17 00:00:00 2001 From: Yuke Peng Date: Thu, 22 Aug 2024 12:27:08 +0800 Subject: [PATCH] Add lmbench lmdd test --- .github/workflows/benchmark_asterinas.yml | 1 + test/benchmark/lmbench-lmdd/config.json | 7 +++++++ test/benchmark/lmbench-lmdd/result_template.json | 14 ++++++++++++++ test/benchmark/lmbench-lmdd/run.sh | 9 +++++++++ 4 files changed, 31 insertions(+) create mode 100644 test/benchmark/lmbench-lmdd/config.json create mode 100644 test/benchmark/lmbench-lmdd/result_template.json create mode 100644 test/benchmark/lmbench-lmdd/run.sh diff --git a/.github/workflows/benchmark_asterinas.yml b/.github/workflows/benchmark_asterinas.yml index 5042dbabc..bcdfc0ccf 100644 --- a/.github/workflows/benchmark_asterinas.yml +++ b/.github/workflows/benchmark_asterinas.yml @@ -45,6 +45,7 @@ jobs: - lmbench-fs-create-delete-files-0k - lmbench-fs-create-delete-files-10k - lmbench-fcntl + - lmbench-lmdd # Mmap-related benchmarks - lmbench-pagefault - lmbench-mmap-bandwidth diff --git a/test/benchmark/lmbench-lmdd/config.json b/test/benchmark/lmbench-lmdd/config.json new file mode 100644 index 000000000..4a9de331a --- /dev/null +++ b/test/benchmark/lmbench-lmdd/config.json @@ -0,0 +1,7 @@ +{ + "alert_threshold": "125%", + "alert_tool": "customBiggerIsBetter", + "search_pattern": "lmdd result:", + "result_index": "7", + "description": "The bandwidth of file copy." +} diff --git a/test/benchmark/lmbench-lmdd/result_template.json b/test/benchmark/lmbench-lmdd/result_template.json new file mode 100644 index 000000000..f5b1803b3 --- /dev/null +++ b/test/benchmark/lmbench-lmdd/result_template.json @@ -0,0 +1,14 @@ +[ + { + "name": "Average file copy bandwidth on Linux", + "unit": "MB/s", + "value": 0, + "extra": "linux_avg" + }, + { + "name": "Average file copy bandwidth on Asterinas", + "unit": "MB/s", + "value": 0, + "extra": "aster_avg" + } +] \ No newline at end of file diff --git a/test/benchmark/lmbench-lmdd/run.sh b/test/benchmark/lmbench-lmdd/run.sh new file mode 100644 index 000000000..df519df0f --- /dev/null +++ b/test/benchmark/lmbench-lmdd/run.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +# SPDX-License-Identifier: MPL-2.0 + +set -e + +echo "*** Running the LMbench lmdd test ***" + +echo -n "lmdd result: " & /benchmark/bin/lmbench/lmdd if=/dev/zero of=/ext2/test_file bs=1M count=512 \ No newline at end of file