Skip to content

admonkey/phpmemtest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

PHP CLI script to measure a function's processing time and peak memory allocation.

Default 1,000,000 iterations to average time.

Usage

php get_time_peak_mem.php <script> <function> <parameter> [<iterations>]

Example

php get_time_peak_mem.php fun.php test_me hello

Output:

Time (ms):   1.4238095283508E-7
Peak Memory: 246240

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages