load-generator
generates network load
Last updated 2 years ago by jaggli .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install load-generator 
SYNC missed versions from official npm registry.

load-generator

Usage

<summary>

Step 1 Create a configuration file, and save it as load-generator.json

</summary>
{
  "wait": 500,
  "instances": 2,
  "urls": [
    "http://www.example.com/{lang}/",
    "http://www.example.com/{lang}/?sort={sort}&page={page}"
  ],
  "values": {
    "lang": [
      "de", "fr", "it", "en"
    ],
    "sort": [
      "1", "2", "3", "4", "5", "7", "8", "10"
    ],
    "page": [
      "1", "2", "3", "4", "5", "7", "8", "10"
    ]
  }
}

One url is picked randomly and all placeholders are replaced by values from the value object.

Step 2 Run npx load-generator in the same directory. The laod test imediately starts.

If you are using a old npm version prior 5.2.0, you can install the package globally

Step 3 Hit ESC to stop the load test

Screenshot

screenshot

Current Tags

  • 0.1.2                                ...           latest (2 years ago)

4 Versions

  • 0.1.2                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 4
Dependencies (4)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |