Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 

Repository files navigation

PHP Benchmark Script

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.

πŸš€ Overview

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.

πŸ“₯ How to Download

Option 1: Via Terminal (SSH)

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

Option 2: Manual Download

  1. Download the bench.php file from this repository.
  2. Upload it to your server using FTP (e.g., FileZilla) or your hosting control panel's file manager.

πŸ› οΈ Usage

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.

πŸ“Š Sample Results

  • Math: 0.231s
  • String: 0.154s
  • Loops: 0.112s
  • Total Time: 0.497s

πŸ“„ License

This project is open-source and available under the MIT License.

About

Advanced PHP Benchmark v1.0

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages