Skip to content

ThomasUgh/Benchmark-Script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ VPS Benchmark Script - Bytebench

Version License Bash

Professionelles VPS Benchmarking mit automatischer Discord-Integration

Features β€’ Installation β€’ Benchmark-Werte β€’ Changelog


πŸ“Š Übersicht

Bytebench ist ein umfassendes Benchmark-Tool fΓΌr VPS/Server, das automatisch Hardware- und Netzwerk-Performance misst und die Ergebnisse strukturiert an Discord sendet.

🎯 Highlights

βœ… Automatische Paket-Installation
βœ… CPU Single & Multi-Core Tests
βœ… RAM Performance mit sysbench
βœ… Professionelle Disk-Tests mit FIO (Write/Read/Mixed)
βœ… IOPS-Messung fΓΌr alle Storage-Tests
βœ… Netzwerk-Speed via Speedtest-CLI
βœ… Automatisches Cleanup aller Testdaten
βœ… Discord Webhook Integration mit strukturiertem Embed

🎨 Features

🧠 CPU Benchmarks

  • Single-Core Performance: Sysbench Events/Score
  • Multi-Core Performance: Nutzt alle verfΓΌgbaren Threads
  • Ideal fΓΌr Vergleiche zwischen verschiedenen CPU-Modellen

πŸ’Ύ RAM Benchmark

  • Durchsatz: Gemessen in MiB/s
  • Operations: Anzahl der Memory Operations
  • Multi-threaded Test fΓΌr realistische Werte

πŸ’½ Disk Benchmarks (FIO)

Test Type Beschreibung Messwerte
Sequential Write 1GB, 128k Blocks, 30s MiB/s + IOPS
Sequential Read 1GB, 128k Blocks, 30s MiB/s + IOPS
Mixed 70/30 2GB, 64k Blocks, 60s MiB/s + IOPS (Read/Write)
  • βœ… Direct I/O fΓΌr realistische Werte
  • βœ… Automatisches Cleanup nach Test
  • βœ… IOPS-Messung fΓΌr latency-sensitive Workloads

🌐 Netzwerk Test

  • Speedtest-CLI mit Server-Info & Standort
  • Ping, Download & Upload Geschwindigkeit
  • Automatische Best-Server-Auswahl

πŸ“¦ Installation

# 1) Repository klonen
git clone https://github.com/ThomasUgh/Benchmark-Script.git
cd Benchmark-Script

# 2) Skript anpassen (Webhook + Servername)
nano Bytebench.sh
#   WEBHOOK_URL="https://discord.com/api/webhooks/DEIN_WEBHOOK_HIER"
#   SERVER_NAME="Mein VPS / Node-Name"

# 3) AusfΓΌhrbar machen
chmod +x Bytebench.sh

# 4) Starten
./Bytebench.sh

πŸ’‘ Hinweis: Das Script installiert automatisch alle benΓΆtigten Pakete (sysbench, fio, speedtest-cli, etc.)


πŸ“Š Gemessene Werte

🧠 CPU Performance
Single-Core:  Sysbench Events (hΓΆher = besser)
Multi-Core:   Sysbench Events mit allen Threads
πŸ’Ύ RAM Performance
Throughput:   MiB/s Durchsatz
Operations:   Anzahl der Memory Operations
πŸ’½ Disk Performance
Sequential Write:  MiB/s + IOPS
Sequential Read:   MiB/s + IOPS  
Mixed 70R/30W:     MiB/s + IOPS (getrennt fΓΌr Read/Write)
🌐 Netzwerk Performance
Speedtest-CLI:
  β†’ Server & Standort
  β†’ Ping (ms)
  β†’ Download (Mbit/s)
  β†’ Upload (Mbit/s)

πŸ› οΈ Technische Details

Systemanforderungen

  • OS: Linux (Ubuntu/Debian bevorzugt)
  • Shell: Bash 4.0+
  • Root: Empfohlen fΓΌr Paket-Installation

Automatisch installierte Pakete

sysbench      # CPU & RAM Benchmarks
fio           # Disk I/O Tests
speedtest-cli # Netzwerk Speed Tests
curl          # Webhook Requests
bc            # Berechnungen
jq            # JSON Parsing
lsb_release   # OS Information

Benchmark-Parameter

FIO Tests:

Write:  --size=1G --bs=128k --rw=write --direct=1 --runtime=30s
Read:   --size=1G --bs=128k --rw=read --direct=1 --runtime=30s
Mixed:  --size=2G --bs=64k --rw=randrw --rwmixread=70 --iodepth=16 --numjobs=4 --runtime=60s

Sysbench Memory:

--threads=$(nproc) --time=30s

πŸ“Έ Discord Output

Das Script sendet ein strukturiertes Embed mit:

πŸ“Š VPS Benchmark abgeschlossen

━━━━━━━━━ Hardware ━━━━━━━━━
🧠 CPU: [Model]
πŸ’Ύ RAM: [Size] MB
πŸ“€ SSD: [Model]

━━━━━━━━━ CPU Benchmarks ━━━━━━━━━
🧠 Single-Core: [Score] Punkte
🧠 Multi-Core: [Score] Punkte

━━━━━━━━━ RAM Benchmark ━━━━━━━━━
πŸ’Ύ Throughput: [Speed] MiB/s
πŸ’Ύ Operations: [Ops] Ops

━━━━━━━━━ Disk Benchmarks (FIO) ━━━━━━━━━
πŸ“€ Sequential Write: [Speed] MiB/s ([IOPS] IOPS)
πŸ“₯ Sequential Read: [Speed] MiB/s ([IOPS] IOPS)
πŸ”€ Mixed (70R/30W): [Details]

━━━━━━━━━ Netzwerk Tests ━━━━━━━━━
🌐 Speedtest-CLI: [Details]

πŸ“ Changelog

πŸŽ‰ v2.0 (11.11.2025)

+ Netzwerk-Test mit Speedtest-CLI (Server-Info + Standort)
+ RAM-Test auf sysbench memory umgestellt
+ Disk-Tests komplett auf FIO umgestellt
+ IOPS-Messung fΓΌr alle Disk-Tests
+ Realistic Mixed Test (70R/30W) hinzugefΓΌgt
+ Automatisches Cleanup aller Testdaten
+ Verbessertes Discord Embed Layout
+ Bessere Terminal-Ausgabe mit ASCII-Boxen
+ Zeitformat ohne Timezone (nur HH:MM:SS)
+ Korrigierte RAM-Speed Berechnung

πŸ“¦ v1.0

  • Initiale Version mit grundlegenden Benchmarks

🀝 Contributing

Contributions sind willkommen! Γ–ffne gerne Issues oder Pull Requests.

πŸ“„ Lizenz

MIT License - Thomas U.


Made with ❀️ by Thomas U.

About

VPS-Benchmark Script (with Webhook)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages