From 51a1f3c61b32a91cedd5dfe80a892f8126862df4 Mon Sep 17 00:00:00 2001 From: slava Date: Mon, 26 May 2025 18:13:44 +0500 Subject: [PATCH] init --- Dockerfile | 24 ++++++++ DockerfileCloud | 23 ++++++++ DockerfileHardware | 24 ++++++++ README.md | 40 +++++++++++++ cloud/suite-definition.xml | 65 +++++++++++++++++++++ hardware/suite-definition.xml | 107 ++++++++++++++++++++++++++++++++++ 6 files changed, 283 insertions(+) create mode 100644 Dockerfile create mode 100644 DockerfileCloud create mode 100644 DockerfileHardware create mode 100644 README.md create mode 100644 cloud/suite-definition.xml create mode 100644 hardware/suite-definition.xml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e437df0 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +FROM ubuntu:20.04 + +ENV DEBIAN_FRONTEND=noninteractive + +RUN apt-get update && \ + apt install -y \ + apt-utils \ + libzip-dev \ + nano \ + php7.4-zip \ + wget + +RUN wget http://phoronix-test-suite.com/releases/repo/pts.debian/files/phoronix-test-suite_10.4.0_all.deb && \ + apt install -y ./phoronix-test-suite_10.4.0_all.deb + +RUN phoronix-test-suite install pts/osbench \ + pts/pybench \ + pts/tiobench \ + pts/ramspeed \ + pts/compress-7zip \ + pts/openssl \ + pts/sockperf + +COPY hardware/suite-definition.xml /var/lib/phoronix-test-suite/test-suites/local/hardware/suite-definition.xml diff --git a/DockerfileCloud b/DockerfileCloud new file mode 100644 index 0000000..afc65c9 --- /dev/null +++ b/DockerfileCloud @@ -0,0 +1,23 @@ +FROM ubuntu:20.04 + +ENV DEBIAN_FRONTEND=noninteractive + +RUN apt-get update && \ + apt install -y \ + apt-utils \ + libzip-dev \ + nano \ + php7.4-zip \ + wget + +RUN wget http://phoronix-test-suite.com/releases/repo/pts.debian/files/phoronix-test-suite_10.4.0_all.deb && \ + apt install -y ./phoronix-test-suite_10.4.0_all.deb + +RUN phoronix-test-suite install pts/sqlite \ + pts/redis \ + pts/cassandra \ + pts/apache \ + pts/nginx \ + pts/blogbench + +COPY cloud/suite-definition.xml /var/lib/phoronix-test-suite/test-suites/local/cloud/suite-definition.xml diff --git a/DockerfileHardware b/DockerfileHardware new file mode 100644 index 0000000..e437df0 --- /dev/null +++ b/DockerfileHardware @@ -0,0 +1,24 @@ +FROM ubuntu:20.04 + +ENV DEBIAN_FRONTEND=noninteractive + +RUN apt-get update && \ + apt install -y \ + apt-utils \ + libzip-dev \ + nano \ + php7.4-zip \ + wget + +RUN wget http://phoronix-test-suite.com/releases/repo/pts.debian/files/phoronix-test-suite_10.4.0_all.deb && \ + apt install -y ./phoronix-test-suite_10.4.0_all.deb + +RUN phoronix-test-suite install pts/osbench \ + pts/pybench \ + pts/tiobench \ + pts/ramspeed \ + pts/compress-7zip \ + pts/openssl \ + pts/sockperf + +COPY hardware/suite-definition.xml /var/lib/phoronix-test-suite/test-suites/local/hardware/suite-definition.xml diff --git a/README.md b/README.md new file mode 100644 index 0000000..6080e21 --- /dev/null +++ b/README.md @@ -0,0 +1,40 @@ +# phoronix-test-suite-docker + +This repository contains different Dockerfiles with [Phoronix Test Suite](https://www.phoronix-test-suite.com/) and a set of [benchmarks](https://openbenchmarking.org/) already installed. + +### Cloud +``` +phoronix-test-suite run cloud +``` + +#### Database +- [pts/sqlite](https://openbenchmarking.org/test/pts/sqlite) +- [pts/redis](https://openbenchmarking.org/test/pts/redis) +- [pts/cassandra](https://openbenchmarking.org/test/pts/cassandra) + +#### Server +- [pts/apache](https://openbenchmarking.org/test/pts/apache) +- [pts/nginx](https://openbenchmarking.org/test/pts/nginx) +- [pts/blogbench](https://openbenchmarking.org/test/pts/blogbench) + +### Hardware +``` +phoronix-test-suite run hardware +``` + +### System Test +- [pts/osbench](https://openbenchmarking.org/test/pts/osbench) +- [pts/pybench](https://openbenchmarking.org/test/pts/pybench) + +#### Disk +- [pts/tiobench](https://openbenchmarking.org/test/pts/tiobench) + +#### Memory +- [pts/ramspeed](https://openbenchmarking.org/test/pts/ramspeed) + +#### Processor +- [pts/compress-7zip](https://openbenchmarking.org/test/pts/compress-7zip) +- [pts/openssl](https://openbenchmarking.org/test/pts/openssl) + +#### Network +- [pts/sockperf](https://openbenchmarking.org/test/pts/sockperf) \ No newline at end of file diff --git a/cloud/suite-definition.xml b/cloud/suite-definition.xml new file mode 100644 index 0000000..4f6a302 --- /dev/null +++ b/cloud/suite-definition.xml @@ -0,0 +1,65 @@ + + + + + cloud + 1.0.0 + Other + cloud suite + nichr + + + pts/sqlite-2.1.0 + 1 + Threads / Copies: 1 + + + + pts/sqlite-2.1.0 + 32 + Threads / Copies: 32 + + + + pts/redis-1.2.0 + -t set + Test: SET + + + + pts/redis-1.2.0 + -t get + Test: GET + + + + pts/cassandra-1.0.3 + MIXED_1_1 + Test: Mixed 1:1 + + + + pts/apache-1.7.2 + + + + + + pts/nginx-1.2.2 + + + + + + pts/blogbench-1.1.0 + READ + Test: Read + + + + pts/blogbench-1.1.0 + WRITE + Test: Write + + + diff --git a/hardware/suite-definition.xml b/hardware/suite-definition.xml new file mode 100644 index 0000000..001dce4 --- /dev/null +++ b/hardware/suite-definition.xml @@ -0,0 +1,107 @@ + + + + + hardware + 1.0.0 + Other + hardware suite + nichr + + + pts/osbench-1.0.1 + create_files.exe target + Test: Create Files + + + + pts/osbench-1.0.1 + create_processes.exe + Test: Create Processes + + + + pts/osbench-1.0.1 + create_threads.exe + Test: Create Threads + + + + pts/osbench-1.0.1 + launch_programs.exe + Test: Launch Programs + + + + pts/osbench-1.0.1 + mem_alloc.exe + Test: Memory Allocations + + + + pts/pybench-1.1.3 + + + + + + pts/tiobench-1.3.1 + -k3 -k2 -k1 -f 32 -t 4 + Test: Write - Size Per Thread: 32MB - Thread Count: 4 + + + + pts/tiobench-1.3.1 + -k3 -k1 -f 32 -t 4 + Test: Read - Size Per Thread: 32MB - Thread Count: 4 + + + + pts/ramspeed-1.4.3 + COPY -b 6 + Type: Copy - Benchmark: Floating Point + + + + pts/ramspeed-1.4.3 + ADD -b 6 + Type: Add - Benchmark: Floating Point + + + + pts/ramspeed-1.4.3 + AVERAGE -b 6 + Type: Average - Benchmark: Floating Point + + + + pts/compress-7zip-1.7.1 + + + + + + pts/openssl-1.11.0 + + + + + + pts/sockperf-1.0.0 + under-load + Test: Latency Under Load + + + + pts/sockperf-1.0.0 + ping-pong + Test: Latency Ping Pong + + + + pts/sockperf-1.0.0 + throughput + Test: Throughput + + +