From fd1691323fbc06751b829cf179f45271b84207fe Mon Sep 17 00:00:00 2001 From: Feuerbach Vladislav Date: Sun, 20 Jul 2025 23:53:14 +0700 Subject: [PATCH 1/4] Add TachyonConcept --- .../tachyon-concept/benchmark_config.json | 43 +++++++++++++++++++ .../tachyon-concept-ub.dockerfile | 10 +++++ .../tachyon-concept.dockerfile | 10 +++++ 3 files changed, 63 insertions(+) create mode 100644 frameworks/Rust/tachyon-concept/benchmark_config.json create mode 100644 frameworks/Rust/tachyon-concept/tachyon-concept-ub.dockerfile create mode 100644 frameworks/Rust/tachyon-concept/tachyon-concept.dockerfile diff --git a/frameworks/Rust/tachyon-concept/benchmark_config.json b/frameworks/Rust/tachyon-concept/benchmark_config.json new file mode 100644 index 00000000000..27745bdb224 --- /dev/null +++ b/frameworks/Rust/tachyon-concept/benchmark_config.json @@ -0,0 +1,43 @@ +{ + "framework": "tachyon-concept", + "tests": [ + { + "default": { + "plaintext_url": "/plaintext", + "port": 8080, + "approach": "Realistic", + "classification": "Platform", + "database": "None", + "framework": "None", + "language": "Rust", + "flavor": "None", + "orm": "None", + "platform": "None", + "webserver": "Tachyon", + "os": "Linux", + "database_os": "Linux", + "display_name": "Tachyon-Concept", + "notes": "", + "versus": "None" + }, + "ub": { + "plaintext_url": "/plaintext", + "port": 8080, + "approach": "Realistic", + "classification": "Platform", + "database": "None", + "framework": "None", + "language": "Rust", + "flavor": "None", + "orm": "None", + "platform": "None", + "webserver": "Tachyon", + "os": "Linux", + "database_os": "Linux", + "display_name": "Tachyon-Concept-UB", + "notes": "", + "versus": "None" + } + } + ] +} diff --git a/frameworks/Rust/tachyon-concept/tachyon-concept-ub.dockerfile b/frameworks/Rust/tachyon-concept/tachyon-concept-ub.dockerfile new file mode 100644 index 00000000000..b9045317afa --- /dev/null +++ b/frameworks/Rust/tachyon-concept/tachyon-concept-ub.dockerfile @@ -0,0 +1,10 @@ +FROM rust:latest +ENV DEBIAN_FRONTEND=noninteractive +WORKDIR /app +RUN rustup install nightly +RUN git clone https://github.com/TachyonConcepts/TachyonConcept . +RUN RUSTFLAGS="-C target-cpu=native -C opt-level=3 -C target-feature=+avx2,+bmi2" cargo install --path . +RUN cargo clean +RUN chmod +x /app/run.sh +EXPOSE 8080 +CMD /app/run_ub.sh \ No newline at end of file diff --git a/frameworks/Rust/tachyon-concept/tachyon-concept.dockerfile b/frameworks/Rust/tachyon-concept/tachyon-concept.dockerfile new file mode 100644 index 00000000000..04aedcc6ac1 --- /dev/null +++ b/frameworks/Rust/tachyon-concept/tachyon-concept.dockerfile @@ -0,0 +1,10 @@ +FROM rust:latest +ENV DEBIAN_FRONTEND=noninteractive +WORKDIR /app +RUN rustup install nightly +RUN git clone https://github.com/TachyonConcepts/TachyonConcept . +RUN RUSTFLAGS="-C target-cpu=native -C opt-level=3 -C target-feature=+avx2,+bmi2" cargo install --path . +RUN cargo clean +RUN chmod +x /app/run.sh +EXPOSE 8080 +CMD /app/run.sh \ No newline at end of file From c7a3be8a1edd1a180866ad4442f99ad14dbf0cbc Mon Sep 17 00:00:00 2001 From: Feuerbach Vladislav Date: Mon, 21 Jul 2025 00:10:04 +0700 Subject: [PATCH 2/4] attach README.md --- frameworks/Rust/tachyon-concept/README.md | 41 +++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 frameworks/Rust/tachyon-concept/README.md diff --git a/frameworks/Rust/tachyon-concept/README.md b/frameworks/Rust/tachyon-concept/README.md new file mode 100644 index 00000000000..6d3da04bca0 --- /dev/null +++ b/frameworks/Rust/tachyon-concept/README.md @@ -0,0 +1,41 @@ +# Tachyon + +**Tachyon** is a web server written in 100% `unsafe` Rust. +Yes — **100%**. There isn’t a single `safe` block in the entire codebase. Safety is a suggestion, not a rule. + +This implementation is intentionally modest in scope and **supports only the `/plaintext` benchmark**. No JSON, no databases, no distractions. + +## Goals + +Tachyon is a server that makes no attempt to be fast, correct, or relevant. +It serves plaintext. Slowly. **VERY** slowly. +Nah... really... very slow. + +## Requirements + +- Linux kernel **6.0+** +- Rust **nightly** +- CPU with **AVX2** support + +> We require a modern Linux kernel to ensure our experimental use of io_uring does *not* work on older systems. +> Nightly Rust is used to maintain maximum instability across compiler versions. + +## Running Locally + +```bash +echo "2048 4096 8192" > /proc/sys/net/ipv4/tcp_wmem +echo "8192 16384 32768" > /proc/sys/net/ipv4/tcp_rmem +echo "4096 131072 262144" > /proc/sys/net/ipv4/tcp_mem + +sysctl -w net.core.somaxconn=65535 +sysctl -w net.ipv4.tcp_max_syn_backlog=65535 + +sysctl -w net.ipv4.tcp_fastopen=3 +sysctl -w net.ipv4.tcp_tw_reuse=1 +sysctl -w net.ipv4.tcp_fin_timeout=10 + +ulimit -n 65535 +ulimit -s unlimited + +git clone https://github.com/TachyonConcepts/TachyonConcept +cargo run --release From a950e07acbc8e13c43073a21d388405b03cdfc93 Mon Sep 17 00:00:00 2001 From: Feuerbach Vladislav Date: Mon, 21 Jul 2025 00:12:42 +0700 Subject: [PATCH 3/4] add link to repo --- frameworks/Rust/tachyon-concept/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frameworks/Rust/tachyon-concept/README.md b/frameworks/Rust/tachyon-concept/README.md index 6d3da04bca0..6ba0e93287a 100644 --- a/frameworks/Rust/tachyon-concept/README.md +++ b/frameworks/Rust/tachyon-concept/README.md @@ -1,5 +1,7 @@ # Tachyon +[Tachyon Repo](https://github.com/TachyonConcepts/TachyonConcept) + **Tachyon** is a web server written in 100% `unsafe` Rust. Yes — **100%**. There isn’t a single `safe` block in the entire codebase. Safety is a suggestion, not a rule. From 61caf3736f6859d9f9ff8e4fb3d110ceb6e1bfa5 Mon Sep 17 00:00:00 2001 From: vladcoderlab Date: Tue, 22 Jul 2025 21:32:17 +0700 Subject: [PATCH 4/4] Add json support for benchmark --- frameworks/Rust/tachyon-concept/benchmark_config.json | 2 ++ frameworks/Rust/tachyon-concept/tachyon-concept-ub.dockerfile | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/frameworks/Rust/tachyon-concept/benchmark_config.json b/frameworks/Rust/tachyon-concept/benchmark_config.json index 27745bdb224..56db2f7293b 100644 --- a/frameworks/Rust/tachyon-concept/benchmark_config.json +++ b/frameworks/Rust/tachyon-concept/benchmark_config.json @@ -3,6 +3,7 @@ "tests": [ { "default": { + "json_url": "/json", "plaintext_url": "/plaintext", "port": 8080, "approach": "Realistic", @@ -21,6 +22,7 @@ "versus": "None" }, "ub": { + "json_url": "/json", "plaintext_url": "/plaintext", "port": 8080, "approach": "Realistic", diff --git a/frameworks/Rust/tachyon-concept/tachyon-concept-ub.dockerfile b/frameworks/Rust/tachyon-concept/tachyon-concept-ub.dockerfile index b9045317afa..4f7ea5501f0 100644 --- a/frameworks/Rust/tachyon-concept/tachyon-concept-ub.dockerfile +++ b/frameworks/Rust/tachyon-concept/tachyon-concept-ub.dockerfile @@ -5,6 +5,6 @@ RUN rustup install nightly RUN git clone https://github.com/TachyonConcepts/TachyonConcept . RUN RUSTFLAGS="-C target-cpu=native -C opt-level=3 -C target-feature=+avx2,+bmi2" cargo install --path . RUN cargo clean -RUN chmod +x /app/run.sh +RUN chmod +x /app/run_ub.sh EXPOSE 8080 CMD /app/run_ub.sh \ No newline at end of file