npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

loadstorm

v1.0.20

Published

LoadStorm is a simple CLI tool designed to test the load and performance of web pages by generating multiple requests concurrently. It helps developers and QA teams to analyze how their websites handle high traffic and identify potential performance bottl

Downloads

361

Readme

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