
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
load-tester
Advanced tools
A load testing server - v0.5.0
connectionsdurationrunsheadersbaseUrls, randomly choosing a baseUrl to test againstforms, randomly choosing a form to POST withhttp://node-load-tester.herokuapp.com
Note: free heroku instances have bandwidth caps
<codeBlock("npm install -g " + name)>
npm install -g load-tester
load-tester 3000
Basic front-end at: http://localhost:3000
POST /job
Create a load test Job
Job Object PropertiesbaseUrl (String) - Target URLbaseUrls (Array[String]) - Target URLsheaders (Object) - Header/Value pairs to apply to all Requestsruns (Number) - Number of times to run through the sequenceduration (Number) - Keep running through the sequence for durationmsconnections (Number) - Number of HTTP clients (each will run through the sequence)sequence (Array[Request]) - The sequence of Requests to execute (a new cookie jar is created per sequence)Request Object Propertiesmethod (String) - HTTP Method to use (default:"GET")path (String) - URL Path to be appended to baseUrlheaders (Object) - Header/Value pairs to apply to this Request (overrides Job headers)form (Object) - Object to application/form encodeforms (Array[Object]) - Round-robin through objects to application/form encodeexpect (Object) - Expectation definition object
code (Number) - Expect a particular HTTP status code (default:200)contains (String) - Expect the HTTP body to containmatch (String) - Expect the HTTP body to match new RegExp(match)Note: There must be one expectation
Note: Failed expections are accumulated in the results, e.g:
"errors": {
"expected code: 404 got: 200 (for GET /test/user)": 2
}
We'll target http://echo.jpillora.com, run the following sequence:
/ (home) and expect a 200/api/login with creds and expect a 200/test/user and check it's 200)/test/user and check it's 404)<showFile("example/basic.json")>
{
"baseUrl": "http://echo.jpillora.com",
"duration": 5000,
"connections": 1,
"sequence": [
{ "method": "GET", "path": "/" },
{ "method": "POST", "path": "/api/login", "form":{"username":"foo","password":"bar"} },
{ "method": "GET", "path": "/test/user" },
{ "method": "GET", "path": "/logout" },
{ "method": "GET", "path": "/test/user", "expect": { "code": 404 } }
]
}
Since http://echo.jpillora.com is just an echo server, it didn't actually login,
so the second /test/user still responded with 200, which is seen as a failure:
{
"paths": {
"GET /": {
"pass": 2,
"fail": 0,
"total": 2,
"avgResponseTime": 877
},
"POST /api/login": {
"pass": 2,
"fail": 0,
"total": 2,
"avgResponseTime": 936
},
"GET /test/user": {
"pass": 2,
"fail": 2,
"total": 4,
"avgResponseTime": 692
},
"GET /logout": {
"pass": 2,
"fail": 0,
"total": 2,
"avgResponseTime": 660
}
},
"errors": {
"expected code: 404 got: 200 (for GET /test/user)": 2
},
"pass": 8,
"fail": 2,
"total": 10,
"totalTime": 7719,
"avgResponseTime": 791
}
<showFile("example/random-forms.json")>
{
"baseUrl": "http://echo.jpillora.com",
"duration": 5000,
"connections": 1,
"sequence": [
{ "method": "POST", "path": "/api/login", "forms":[
{"username":"foo","password":"bar"},
{"username":"ping","password":"pong"},
{"username":"zap","password":"zoop"}
]
}
]
}
<showFile("example/expectations.json")>
{
"baseUrl": "http://echo.jpillora.com",
"runs": 3,
"connections": 1,
"sequence": [
{ "method": "GET", "path": "/api/code-test", "expect": { "code": 408 } },
{ "method": "GET", "path": "/api/string-test", "expect": { "contains": "abc" } },
{ "method": "GET", "path": "/api/regex-test", "expect": { "match": "^a[Bb]c$" } }
]
}
runs is how many times to run the sequence. Can be used with or instead of duration.
<showFile("example/load-balancer.json")>
{
"baseUrls": [
"http://74.125.237.114",
"http://74.125.237.115",
"http://74.125.237.116"
],
"headers": {
"host": "www.google.com.au"
},
"duration": 5000,
"connections": 1,
"sequence": [
{ "path": "/" }
]
}
Every request will round-robin through the baseUrls
Requests may also specify a header object which will override the job's header object
<license()>
Copyright © 2013 Jaime Pillora <dev@jpillora.com>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
A load testing server
We found that load-tester demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.