Skip to main content

Benchmarking tool to compare REST and GraphQL API performance

Project description

apibeat

A simple CLI tool to benchmark and compare REST vs GraphQL API performance by measuring average latency.

Features

  • Measure average latency of REST and GraphQL endpoints
  • Support custom HTTP methods (GET, POST, etc.) for REST
  • Accept GraphQL queries via CLI
  • Simple, clean CLI interface
  • Useful for API optimization and performance comparisons

Installation

Install from PyPI

pip install apibeat



### Use a different HTTP method (REST)

```bash
apibeat --url https://api.example.com/data --method POST


### Use a different HTTP method (GraphQL Apis)


```bash
apibeat --type graphql --url https://api.example.com/graphql --query "{ users { id name } }"

## CLI Arguments

| Argument  | Description                                   | Required            | Default |
|-----------|-----------------------------------------------|---------------------|---------|
| `--url`   | The API endpoint URL to benchmark              | Yes                 | `NA`     |
| `--type`  | API type: `rest` or `graphql`                  | No                  | `rest`  |
| `--method`| HTTP method for REST requests                   | No (only for REST)  | `GET`   |
| `--query` | GraphQL query string (required if `--type graphql`) | Conditional         |  `NA`       |


For any questions or support, please open an issue or contact [demonking15543@gmail.com](mailto:demonking15543@gmail.com).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apibeat-0.1.6.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

apibeat-0.1.6-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file apibeat-0.1.6.tar.gz.

File metadata

  • Download URL: apibeat-0.1.6.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for apibeat-0.1.6.tar.gz
Algorithm Hash digest
SHA256 3ab5715c9c4b0bb9e96fa40cace0090410b76a1ac573ccc728d4780f20142121
MD5 ca46cb2a7215d6169a29223342afe67d
BLAKE2b-256 7cae0816a1523097a940c01db50976c3551e95e7bd9f7f91981bc5c3fb0a0193

See more details on using hashes here.

File details

Details for the file apibeat-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: apibeat-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for apibeat-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 638ecb26e72aa2c1c3c2a8ef19931c4d05957b964c5ebdcaaadf7323f3e5fc4f
MD5 054f14d6ef0b5b24a67ffe7119e1e2b7
BLAKE2b-256 b90f69e42de641afe7e3f79dcc8db0e56d44e80c0409d2a77d6a779022026df6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page