diff --git a/test/benchmark/lmbench-ctx/config.json b/test/benchmark/lmbench-ctx/config.json new file mode 100644 index 000000000..e3023e1db --- /dev/null +++ b/test/benchmark/lmbench-ctx/config.json @@ -0,0 +1,5 @@ +{ + "alert_threshold": "125%", + "pattern": "18 ", + "field": "2" +} diff --git a/test/benchmark/lmbench-ctx/result_template.json b/test/benchmark/lmbench-ctx/result_template.json new file mode 100644 index 000000000..b522dcd2a --- /dev/null +++ b/test/benchmark/lmbench-ctx/result_template.json @@ -0,0 +1,14 @@ +[ + { + "name": "Average context switch latency on Linux", + "unit": "ms", + "value": 0, + "extra": "linux_avg" + }, + { + "name": "Average context switch latency on Asterinas", + "unit": "ms", + "value": 0, + "extra": "aster_avg" + } +] \ No newline at end of file diff --git a/test/benchmark/lmbench-ctx/run.sh b/test/benchmark/lmbench-ctx/run.sh new file mode 100644 index 000000000..7f453e880 --- /dev/null +++ b/test/benchmark/lmbench-ctx/run.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +# SPDX-License-Identifier: MPL-2.0 + +set -e + +echo "*** Running the LMbench context switch latency test ***" + +/benchmark/bin/lmbench/lat_ctx -P 1 18 \ No newline at end of file diff --git a/test/benchmark/lmbench-exec/config.json b/test/benchmark/lmbench-exec/config.json new file mode 100644 index 000000000..c61b9d0c6 --- /dev/null +++ b/test/benchmark/lmbench-exec/config.json @@ -0,0 +1,5 @@ +{ + "alert_threshold": "125%", + "pattern": "Process fork\\+execve", + "field": "3" +} diff --git a/test/benchmark/lmbench-exec/result_template.json b/test/benchmark/lmbench-exec/result_template.json new file mode 100644 index 000000000..0865b8dec --- /dev/null +++ b/test/benchmark/lmbench-exec/result_template.json @@ -0,0 +1,14 @@ +[ + { + "name": "Average exec latency on Linux", + "unit": "ms", + "value": 0, + "extra": "linux_avg" + }, + { + "name": "Average exec latency on Asterinas", + "unit": "ms", + "value": 0, + "extra": "aster_avg" + } +] \ No newline at end of file diff --git a/test/benchmark/lmbench-exec/run.sh b/test/benchmark/lmbench-exec/run.sh new file mode 100644 index 000000000..339df926e --- /dev/null +++ b/test/benchmark/lmbench-exec/run.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +# SPDX-License-Identifier: MPL-2.0 + +set -e + +echo "*** Running the LMbench exec latency test ***" + +/benchmark/bin/lmbench/lat_proc -P 1 exec \ No newline at end of file diff --git a/test/benchmark/lmbench-shell/config.json b/test/benchmark/lmbench-shell/config.json new file mode 100644 index 000000000..0d723aac2 --- /dev/null +++ b/test/benchmark/lmbench-shell/config.json @@ -0,0 +1,5 @@ +{ + "alert_threshold": "125%", + "pattern": "Process fork\\+\\/bin\\/sh", + "field": "4" +} diff --git a/test/benchmark/lmbench-shell/result_template.json b/test/benchmark/lmbench-shell/result_template.json new file mode 100644 index 000000000..e6ed6c46b --- /dev/null +++ b/test/benchmark/lmbench-shell/result_template.json @@ -0,0 +1,14 @@ +[ + { + "name": "Average shell latency on Linux", + "unit": "ms", + "value": 0, + "extra": "linux_avg" + }, + { + "name": "Average shell latency on Asterinas", + "unit": "ms", + "value": 0, + "extra": "aster_avg" + } +] \ No newline at end of file diff --git a/test/benchmark/lmbench-shell/run.sh b/test/benchmark/lmbench-shell/run.sh new file mode 100644 index 000000000..acd64c446 --- /dev/null +++ b/test/benchmark/lmbench-shell/run.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +# SPDX-License-Identifier: MPL-2.0 + +set -e + +echo "*** Running the LMbench shell latency test ***" + +/benchmark/bin/lmbench/lat_proc -P 1 shell \ No newline at end of file