PHP Classes

How to Test PHP Memory Usage of Variable Stored in Classes in Different Ways Using the Package PHP Performance Benchmark: Test the memory usage of classes to store values

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2025-03-28 (Yesterday) RSS 2.0 feedNot yet rated by the usersTotal: Not yet counted Not yet ranked
Version License PHP version Categories
php-performance-benc 1.0GNU General Publi...5PHP 5, Language, Performance and opti...
Description 

Author

This package can test the memory usage of classes to store values.

It provides different classes that store constant values in different ways:

- As class constant

- As static variable

- As static method that returns the value

The package provides a script that can measure the memory usage when a class is used.

Picture of naveen
  Performance   Level  
Name: naveen <contact>
Classes: 6 packages by
Country: India India
Innovation award
Innovation award
Nominee: 2x

Winner: 2x

Instructions

Please check this example script to learn how to use this package.

  Files folder image Files (4)  
File Role Description
Plain text file class_constant.php Class Class source
Plain text file static_method.php Class Class source
Plain text file static_variable.php Class Class source
Plain text file test.php Example Example script

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads  
 100%
Total:0
This week:0