diff --git a/.github/workflows/benchmark_asterinas.yml b/.github/workflows/benchmark_asterinas.yml index bcdfc0ccf..89846afe4 100644 --- a/.github/workflows/benchmark_asterinas.yml +++ b/.github/workflows/benchmark_asterinas.yml @@ -26,6 +26,7 @@ jobs: # IPC-related benchmarks - lmbench-unix-latency - lmbench-unix-bandwidth + - lmbench-unix-connect-latency - lmbench-pipe-latency - lmbench-pipe-bandwidth # Syscall-related benchmarks diff --git a/test/benchmark/lmbench-unix-connect-latency/config.json b/test/benchmark/lmbench-unix-connect-latency/config.json new file mode 100644 index 000000000..13b919605 --- /dev/null +++ b/test/benchmark/lmbench-unix-connect-latency/config.json @@ -0,0 +1,7 @@ +{ + "alert_threshold": "125%", + "alert_tool": "customSmallerIsBetter", + "search_pattern": "UNIX connection cost:", + "result_index": "4", + "description": "The latency of UNIX domain socket connection on a single processor." +} \ No newline at end of file diff --git a/test/benchmark/lmbench-unix-connect-latency/result_template.json b/test/benchmark/lmbench-unix-connect-latency/result_template.json new file mode 100644 index 000000000..fc4d2f6c4 --- /dev/null +++ b/test/benchmark/lmbench-unix-connect-latency/result_template.json @@ -0,0 +1,14 @@ +[ + { + "name": "Average unix connect latency on Linux", + "unit": "µs", + "value": 0, + "extra": "linux_avg" + }, + { + "name": "Average unix connect latency on Asterinas", + "unit": "µs", + "value": 0, + "extra": "aster_avg" + } +] \ No newline at end of file diff --git a/test/benchmark/lmbench-unix-connect-latency/run.sh b/test/benchmark/lmbench-unix-connect-latency/run.sh new file mode 100644 index 000000000..3d94d2e73 --- /dev/null +++ b/test/benchmark/lmbench-unix-connect-latency/run.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +# SPDX-License-Identifier: MPL-2.0 + +set -e + +echo "*** Running the LMbench unix connect latency test ***" + +/benchmark/bin/lmbench/lat_unix_connect -s +/benchmark/bin/lmbench/lat_unix_connect -P 1 \ No newline at end of file