Download the PHP package mmdm/sim-benchmark without Composer

On this page you can find all versions of the php package mmdm/sim-benchmark. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sim-benchmark

Simplicity Benchmark

A library to benchmark codes time elapsed and memory usage.

Install

composer

Or you can simply download zip file from github and extract it, then put file to your project library and use it like other libraries.

Just add line below to autoload files:

and you are good to go.

How to use

Available functions

start($label):

This method starts a benchmark for a specific label.

Note: This method just work one time for a specific label.

pause($label):

This method pause a benchmark for a specific label.

Note: If you use this method multiple times before resume method, first call will apply.

resume($label):

This method resume a benchmark for a specific label.

Note: If you use this method multiple times before pause method, first call will apply.

stop($label):

This method stop a benchmark for a specific label.

Note: This method just work one time for a specific label.

getTime($label):

This method get time for a specific label.

Note: Use this function before start and stop methods, will cause exception.

Note: Returns time as microseconds in float format

getMemory($label):

This method get memory for a specific label.

Note: Use this function before start and stop methods, will cause exception.

Note: Returns memory as bytes in int format

get($label):

This method get time and memory for a specific label.

Note: Use this function before start and stop methods, will cause exception.

Note: Returns an array like below format

getReport($label):

This method show a report of a specific label.

Note: Use this function before start and stop methods, will cause exception.

Note: This method is void

License

Under MIT license.


All versions of sim-benchmark with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
ext-mbstring Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mmdm/sim-benchmark contains the following files

Loading the files please wait ....