Vibe coded a benchmark tool for Shared Hosting

Hey LES,

I vibe coded a single-file PHP dashboard to monitor and benchmark Shared Hosting performance. It’s designed to be lightweight, secure, and zero-dependency.

Repo: https://github.com/loayai/php-hosting-benchmark

Quick Install:
1. Download bench.php.
2. Edit the password inside the file (Security requirement).
3. Upload & Run.

Key Features:

  • Zero Installation: Just a single bench.php file. No Composer, no npm, and no CLI access required.
  • Secure by Design: The script forces a password change on the first run (it will not execute with default credentials) and automatically cleans up test files after execution.
  • Disk I/O Testing: Performs file write and copy operations to verify actual disk speeds, helping identify if storage is slow or heavily oversold.
  • Database Performance: Supports both MySQL/MariaDB and SQLite. It measures query throughput (INSERT, SELECT, UPDATE) to simulate real-world CMS loads like WordPress.
  • Network & Connectivity: Checks latency to major hubs (Google, Cloudflare) and monitors live RX/TX traffic usage during the test.
  • Smart Scoring System: Aggregates all metrics into a single 0-10 score. (9.0+ indicates premium performance, while < 3.0 suggests a heavily oversold host).
  • System Information: Displays Server OS, Kernel version, Uptime, PHP Version, and Memory Limits immediately.

Here is what it looks like:

Screenshot

✨🎁 Low end deals Telegram tracker: https://t.me/lowendweb

Comments

  • msattmsatt Hosting ProviderOG

    @loay Well done, these are the sorts of projects FOSSVPS is happy to support. Drop me a PM if you would like a free VPS to help with your work.
    Mike

    Thanked by (2)loay sh97

    Virmach is NOT worth the risk.

  • looking good and useful.

    Thanked by (1)loay
  • Looks good, ran it once

    Thanked by (1)loay
  • I'd recommend perhaps integrating the SQL in the benchmark and requiring the host/port/user/db/pass as constants just like the admin user/pass.

    Thanked by (1)loay
  • The end result looks great! I was a little surprised that it's over 7,000 (!) lines of code, but there are extensive comments, so those add up. Cool idea :)

Sign In or Register to comment.