1.0.20 • Published 7 months ago

loadstorm v1.0.20

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

LoadStorm

LoadStorm is a powerful command-line interface (CLI) tool crafted to stress-test web pages by executing concurrent requests. It empowers developers and QA teams to evaluate website performance under heavy loads, pinpointing potential bottlenecks and ensuring optimal user experience.

npm version github install size author

Description

LoadStorm is designed to simulate high traffic scenarios on websites, allowing users to measure response times, evaluate performance metrics, and analyze system details under load conditions.

Features

  • Concurrent Requests: Simulate multiple requests to a website concurrently.
  • Performance Metrics: Measure response times and provide performance statistics.
  • Customizable: Configure the number of requests and the level of concurrency.
  • Internet Speed: Measure download speed during testing.
  • System Details: Display host information, operating system, CPU model, and memory.

Installation

You can run it directly using npx:

npx loadstorm --site=https://your-domain.com --requests=20 --concurrency=5 --detailed-log=true

Usage

LoadStorm can be run from the command line with various options.

npx loadstorm --site=https://your-domain.com --requests=20 --concurrency=5 --detailed-log=true

Options

--site (required): The URL of the site to test.

--site=https://your-domain.com

--requests (required): The number of requests to generate.

--requests=50

--concurrency (required): The number of concurrent requests to make.

--concurrency=10

--detailed-log (optional): Enable detailed logging of request times. Default is false.

--detailed-log=true

--headers (optional): Custom headers in JSON format for the requests.

--headers='{\"Authorization\":\"Bearer token\"}'

--method (optional): HTTP method for the requests. Default is GET.

--method=POST

--payload (optional): Payload data for POST, PUT, and DELETE requests.

--payload='{\"key\":\"value\"}'

Example Command

npx loadstorm --site=https://your-domain.com --requests=50 --concurrency=10 --headers="{\"Authorization\":\"Bearer token\"}" --method=POST --payload="{\"key\":\"value\"}"

Example Output

Welcome to LoadStorm! Starting load testing...
Running 20 requests with a concurrency level of 5...
Progress: 100.00%
Load test completed successfully!

šŸ“Š REPORT
─────────────────────────┬──────────────────────────────────────────────────────
 Metric                │ Value
─────────────────────────┼──────────────────────────────────────────────────────
 URL                   │ https://your-domain.com
 Number of Requests    │ 10
 Concurrency Level     │ 10
 Start Time            │ 26/6/2024, 2:57:30 pm
 End Time              │ 26/6/2024, 2:57:32 pm
 Total Time            │ 2.63 seconds
 Average Response Time │ 1.90 seconds
 90th Percentile       │ 2023 ms
 95th Percentile       │ 2040 ms
 99th Percentile       │ 2071 ms
─────────────────────────┼──────────────────────────────────────────────────────
 Internet Speed        │ Download Speed: 13.58 Mbps
─────────────────────────┼──────────────────────────────────────────────────────
 System Details        | Hostname: Mahesh
                       | Operating System: Windows_NT 10.0.22631
                       | CPU Model: 12th Gen Intel(R) Core(TM) i3-12100
                       | Memory: 7.72 GB
─────────────────────────┓──────────────────────────────────────────────────────

Donate

Would you like to support the advancement of this plugin? Donate to this plugin

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any bugs or enhancements.

License

MIT

Author

Mahesh Thorat

If you find LoadStorm useful, consider donating: https://pages.razorpay.com/maheshmthorat

1.0.20

7 months ago

1.0.19

10 months ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago