bruno icon indicating copy to clipboard operation
bruno copied to clipboard

Performance testing using @usebruno/cli

Open AlenDavid opened this issue 7 months ago • 2 comments

I have checked the following:

  • [X] I've searched existing issues and found nothing related to my issue.

Describe the feature you want to add

Bruno's CLI is a powerful tool that allows me endpoint documentation and testing, both in the source code and in the terminal. I would like to have the option to set performance testing configuration and run performance tests against my systems.

Mockups or Images of the feature

Mockups

Command

bru run --p[erformance] path/to/my/file.bru

Example Result

{
  "file/meta/name/here": {
    "url": "https://google.com",
    "method": "GET",
    "headers": {},
    "body": "",
    "result": {
      "connections": 10,
      "execution_time_seconds": 10.07,
      "requests": 1130,
      "read": "1.58MB",
      "requests_per_second": 112.24,
      "transfer_per_second": "160.76KB",
      "threads": 2,
      "thread_stats": {
        "latency_average": 88.96,
        "latency_max": 317.78,
        "latency_standard_deviation": 23.4,
        "requests_per_second_average": 56.49,
        "requests_per_second_max": 99,
        "requests_per_second_standard_deviation": 12.49
      }
    }
  },
  "other/file": {
    "...": "..."
  }
}

AlenDavid avatar Jul 15 '24 16:07 AlenDavid