From 64c17f38535bc84bcf6cb768a18d48ac310004e5 Mon Sep 17 00:00:00 2001 From: Yuke Peng Date: Thu, 4 Jul 2024 16:59:18 +0800 Subject: [PATCH] Remove home-brewed getpid benchmark --- .github/workflows/benchmark_asterinas.yml | 1 - test/Makefile | 2 -- test/benchmark/getpid/config.json | 5 ----- test/benchmark/getpid/result_template.json | 14 -------------- test/benchmark/getpid/run.sh | 9 --------- 5 files changed, 31 deletions(-) delete mode 100644 test/benchmark/getpid/config.json delete mode 100644 test/benchmark/getpid/result_template.json delete mode 100644 test/benchmark/getpid/run.sh diff --git a/.github/workflows/benchmark_asterinas.yml b/.github/workflows/benchmark_asterinas.yml index a58423b78..b8c75405b 100644 --- a/.github/workflows/benchmark_asterinas.yml +++ b/.github/workflows/benchmark_asterinas.yml @@ -14,7 +14,6 @@ jobs: benchmark: - sysbench-cpu - sysbench-thread - - getpid - lmbench-getpid - lmbench-fork - lmbench-signal diff --git a/test/Makefile b/test/Makefile index 80ede0be6..8d2be5c73 100644 --- a/test/Makefile +++ b/test/Makefile @@ -95,8 +95,6 @@ $(INITRAMFS)/benchmark/bin: @cp -r /usr/local/benchmark/unixbench $@ @cp -r /usr/local/benchmark/lmbench $@ @cp /usr/local/benchmark/fio/bin/fio $@ - @# Replace the homebrewed getpid with a standard benchmark like UnixBench or LMbench. - @gcc -O2 $(CUR_DIR)/apps/getpid/getpid.c -o $@/getpid # Make necessary directories. $(INITRAMFS_EMPTY_DIRS): diff --git a/test/benchmark/getpid/config.json b/test/benchmark/getpid/config.json deleted file mode 100644 index d27458bbc..000000000 --- a/test/benchmark/getpid/config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "alert_threshold": "125%", - "pattern": "Syscall average latency:", - "field": "4" -} diff --git a/test/benchmark/getpid/result_template.json b/test/benchmark/getpid/result_template.json deleted file mode 100644 index 1f7acf766..000000000 --- a/test/benchmark/getpid/result_template.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "name": "Average Syscall Latency on Linux", - "unit": "ns", - "value": 0, - "extra": "linux_avg" - }, - { - "name": "Average Syscall Latency on Asterinas", - "unit": "ns", - "value": 0, - "extra": "aster_avg" - } -] \ No newline at end of file diff --git a/test/benchmark/getpid/run.sh b/test/benchmark/getpid/run.sh deleted file mode 100644 index 152cb8dae..000000000 --- a/test/benchmark/getpid/run.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -# SPDX-License-Identifier: MPL-2.0 - -set -e - -echo "*** Running getpid ***" - -/benchmark/bin/getpid \ No newline at end of file