Download the PHP package quillstack/benchmark without Composer

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

Benchmark HTTP requests and command line calls

StyleCI Build Status CodeFactor Downloads Packagist PHP Version Support Packagist License

This repository contains a script to test HTTP GET requests or command line calls.

PHP usage

You can install this package using Composer:

In PHP console you can use this library by running commands:

List available commands

If you installed this library as a package in your project, you can run these commands:

List of available commands
HTTP GET requests
Command line calls

Cloned reposotiry

If you cloned this repository to your local computer, use these commands:

To see detailed descriptions for every command, ready Bash usage below.

Bash usage

You can also use Bash commands to run benchmarks. These commands work only if you clone this repository to your computer or server.

HTTP GET requests

Usage:

Where:

Output:

What means we sent 10 GET requests to this host. We decided to send two requests at the time. The entire test took around 2.5 seconds. It means the website could server 4 requests per second with 0.5 seconds the average response time.

Command line calls

If you want to test command line calls, be sure every call respond with an execution time (in seconds):

For PHP the script could look like:

Usage example:

Output:

The results say we called the script 10 times with 2 concurrently calls. Our test took around 250 milliseconds, what means we could call this script 40 times per seconds, and average call time would be 1 millisecond.

Different results

You can have different results for different parameters. For example the results for the same script:

are different for these parameters:

Because we increased the number of concurrent calls.

If we use the same concurrent calls like in the first command line example:

The results should be similar to the first ones:

What gives use around 40 calls per second, if we have two concurrent calls.

Quill Stack

If you want to know more about other solutions, visit the website: \ https://quillstack.com/

The Quill Stack


All versions of benchmark with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4
symfony/console Version ^5.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 quillstack/benchmark contains the following files

Loading the files please wait ....