Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

loadtest

Package Overview
Dependencies
Maintainers
1
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loadtest - npm Package Compare versions

Comparing version 1.2.14 to 1.2.15

1

bin/loadtest.js

@@ -34,2 +34,3 @@ #!/usr/bin/env node

recover: {key: 'r', description: 'Do not exit on socket receive errors (default)'},
secureProtocol: {key: 's', args: 1, description: 'TLS/SSL secure protocol method to use'},
keepalive: {key: 'k', description: 'Use a keep-alive http agent'},

@@ -36,0 +37,0 @@ version: {key: 'V', description: 'Show version number and exit'},

@@ -129,2 +129,5 @@ 'use strict';

headers.addUserAgent(options.headers);
if (params.secureProtocol) {
options.secureProtocol = params.secureProtocol;
}
log.debug('Options: %j', options);

@@ -131,0 +134,0 @@ }

4

package.json
{
"name": "loadtest",
"version": "1.2.14",
"version": "1.2.15",
"description": "Run load tests for your web application. Mostly ab-compatible interface, with an option to force requests per second. Includes an API for automated load testing.",

@@ -14,3 +14,3 @@ "homepage": "https://github.com/alexfernandez/loadtest",

"dependencies": {
"prototypes": ">= 0.4.0",
"prototypes": ">= 0.4.3",
"agentkeepalive": "^2.0.3",

@@ -17,0 +17,0 @@ "log": "1.4.*",

@@ -223,2 +223,10 @@ [![Build Status](https://secure.travis-ci.org/alexfernandez/loadtest.png)](http://travis-ci.org/alexfernandez/loadtest)

#### `-s`
The TLS/SSL method to use. (e.g. TLSv1_method)
Example:
$ loadtest -n 1000 -s TLSv1_method https://www.example.com
#### `-V`

@@ -384,3 +392,3 @@

$ loadtest http://localhost:7357/ -t 20 -c 10 --rps 5000
$ loadtest http://localhost:7357/ -t 20 -c 10 --rps 500
...

@@ -583,2 +591,25 @@ Requests: 0, requests per second: 0, mean latency: 0 ms

#### `secureProtocol`
The TLS/SSL method to use. (e.g. TLSv1_method)
Example:
```javascript
var loadtest = require('loadtest');
var options = {
url: 'https://www.example.com',
maxRequests: 100,
secureProtocol: 'TLSv1_method'
};
loadtest.loadTest(options, function(error) {
if (error) {
return console.error('Got an error: %s', error);
}
console.log('Tests run successfully');
});
```
#### `statusCallback`

@@ -585,0 +616,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc