diff --git a/test/benchmark/lmbench-file-rd-bandwidth/config.json b/test/benchmark/lmbench-file-rd-bandwidth/config.json new file mode 100644 index 000000000..7fa807f6d --- /dev/null +++ b/test/benchmark/lmbench-file-rd-bandwidth/config.json @@ -0,0 +1,7 @@ +{ + "alert_threshold": "125%", + "alert_tool": "customBiggerIsBetter", + "search_pattern": "536.87", + "result_index": "2", + "description": "The bandwidth of reading a file on a single processor." +} \ No newline at end of file diff --git a/test/benchmark/lmbench-file-rd-bandwidth/result_template.json b/test/benchmark/lmbench-file-rd-bandwidth/result_template.json new file mode 100644 index 000000000..b570e0463 --- /dev/null +++ b/test/benchmark/lmbench-file-rd-bandwidth/result_template.json @@ -0,0 +1,14 @@ +[ + { + "name": "Average file read bandwidth on Linux", + "unit": "MB/s", + "value": 0, + "extra": "linux_avg" + }, + { + "name": "Average file read bandwidth on Asterinas", + "unit": "MB/s", + "value": 0, + "extra": "aster_avg" + } +] \ No newline at end of file diff --git a/test/benchmark/lmbench-file-rd-bandwidth/run.sh b/test/benchmark/lmbench-file-rd-bandwidth/run.sh new file mode 100644 index 000000000..627873430 --- /dev/null +++ b/test/benchmark/lmbench-file-rd-bandwidth/run.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +# SPDX-License-Identifier: MPL-2.0 + +set -e + +echo "*** Running the LMbench file read bandwidth test ***" + +dd if=/dev/zero of=/ext2/test_file bs=1M count=512 +/benchmark/bin/lmbench/bw_file_rd -P 1 512m io_only /ext2/test_file