Download the PHP package mts7/benchmarks without Composer

On this page you can find all versions of the php package mts7/benchmarks. 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 benchmarks

Benchmarks

A framework for benchmarking simple functionality

codecov

Installation

Usage

Benchmarks includes a container for dependency injection, which makes setting up the benchmark quicker and easier.

Single Method Call

The run method accepts an array of callables and will execute each callable for the number of iterations per sample for the number of samples and provides the callable with a parameter of the current iteration. All the necessary steps to benchmark are included in the correct order by using the run method.

After calling run, any report class can accept the results and process them.

Multiple Method Calls

In this form, the framework provides the time calculation results of each callable rather than the raw data. Output formatting is handled by a report object.

When there is only one callable to check or a desire or preference to test each callable independently (without the framework), buildSamples will work. This is the internal method that calls the callable and sets up timing.

Comparisons

The framework does show the users which subjects under test perform quicker than others and by how much, meaning this is a useful tool for comparison rather than for timing.

While the framework handles the timing and execution of the subjects under test, it does not handle the creation or organization of the subjects under test. Since each system is different, there are no constant times for any of the benchmarks across systems.

On a MacBook Pro with M1 Pro, some benchmarks were 2.5 times longer than running with a smaller version of this framework. The base benchmark times on the same system took 2 times longer to execute than on PHP Sandbox.

Future Enhancements

Included Benchmarks

Note these are not included in the distribution package and are only available in the source.

All of these benchmarks are ready to execute by running php benchmarks/{file-name}.php.


All versions of benchmarks with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
mts7/php-dependency-injection Version ^1
mts7/php-execution-timer Version ^1
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 mts7/benchmarks contains the following files

Loading the files please wait ....