Download the PHP package fruit/benchkit without Composer

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

BenchKit

This package is part of Fruit Framework.

BenchKit is set of tools helping you benchmark your program.

Build Status

Synopsis

See mybench.php in example folder.

How to write benchmarks

A benchmark test must be function or public method. It must receive only one parameter with type-hinting.

Organize your benchmarks

Benchmarks are grouped by their class. So it's suggested to put different group of benchmarks into different files.

Benchmark function are collected into an unnamed group.

Command line helper

bench is command line benchmark runner. It will scan specified directory recursivly, find out all benchmark functions, and run. For example:

Thanks to CLIFramework, you can run bench help run to see supported command line arguments.

bench does not support construct arguments, you have to write your own benchmark executor to register benchmarks and run it.

XHProf

You can gather xhprof data when running benchmarks with default command line runner by

Passing constructor arguments to formatter

You can pass a string as constructor argument to formatter with --sa and --pa options.

Generate multiple summary without running benchmarks several times

Use Fruit\BenchKit\Formatter\ChainSummary, and pass constructor argument to specify what formatters you want.

Beware about shell escaping and php string escaping because builtin formatters accepts argument in JSON format. Use --argdebug when in doubt.

License

Any version of MIT, GPL or LGPL.


All versions of benchkit with dependencies

PHP Build Version
Package Version
Requires corneltek/cliframework Version ~3
fruit/pathkit 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 fruit/benchkit contains the following files

Loading the files please wait ....