A simple, lightweight PHP script to measure the performance of your server or hosting environment. It executes various computational tasks and reports the time taken for each.
This benchmark performs intensive operations to test:
- Mathematical Performance: Square roots, trigonometry, and complex arithmetic.
- String Manipulation: Formatting, reversing, and repeating large strings.
- Loops & Logic: Performance of basic control structures and iterations.
- Environment Info: Identifies the PHP version and Server OS.
Use wget or curl to download the file directly to your public directory:
wget https://raw.githubusercontent.com/gr8man/PHP_Benchmark/refs/heads/main/bench.php
or
curl -O https://raw.githubusercontent.com/gr8man/PHP_Benchmark/refs/heads/main/bench.php
- Download the bench.php file from this repository.
- Upload it to your server using FTP (e.g., FileZilla) or your hosting control panel's file manager.
Once the file is on your server, simply access it through your web browser:
http://your-domain.com/bench.php
The script will execute immediately and display a table with the results.
Note: Lower execution times indicate a faster server.
- Math: 0.231s
- String: 0.154s
- Loops: 0.112s
- Total Time: 0.497s
This project is open-source and available under the MIT License.