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