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 0.2.6 to 0.2.7

2

bin/loadtest.js

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

assignArgument('t', args, 'maxSeconds', options);
assignArgument('C', args, 'cookie', options);
assignArgument('C', args, 'cookies', options);
assignArgument('T', args, 'contentType', options);

@@ -30,0 +30,0 @@ assignArgument('r', args, 'recover', options, true);

@@ -62,2 +62,6 @@

### 2013-01-16: version 0.2.7
* Corrected bug in -C option for sending cookies.
* Set the correct Cookie header for test cookies.

@@ -91,3 +91,3 @@ 'use strict';

{
options.headers['Set-Cookie'] = params.cookies;
options.headers.Cookie = params.cookies;
}

@@ -384,5 +384,3 @@ }

{
testing.run({
maxSeconds: testMaxSeconds,
}, callback);
testing.run([testMaxSeconds], callback);
};

@@ -389,0 +387,0 @@

@@ -107,6 +107,3 @@ 'use strict';

log.debug('Running all tests');
testing.run({
integration: testIntegration,
delay: testDelay,
}, 4000, callback);
testing.run([testIntegration, testDelay], 4000, callback);
};

@@ -113,0 +110,0 @@

@@ -13,2 +13,3 @@ 'use strict';

var util = require('util');
var net = require('net');
var Log = require('log');

@@ -51,3 +52,11 @@ var timing = require('./timing.js');

{
server = http.createServer(listen);
if (options.socket)
{
// just for internal debugging
server = net.createServer(socketListen);
}
else
{
server = http.createServer(listen);
}
server.on('error', function(error)

@@ -115,2 +124,23 @@ {

/**
* Listen on a socket.
*/
function socketListen(socket)
{
socket.on('error', function(error)
{
log.error('socket error: %s', error);
socket.end();
});
socket.on('data', readData);
}
/**
* Read some data off the socket.
*/
function readData(data)
{
log.info('data: %s', data);
}
/**
* Debug headers and other interesting information: POST body.

@@ -117,0 +147,0 @@ */

@@ -482,8 +482,8 @@ 'use strict';

{
var tests = {
latencyIds: testLatencyIds,
latencyRequests: testLatencyRequests,
latencyPercentiles: testLatencyPercentiles,
timer: testTimer
};
var tests = [
testLatencyIds,
testLatencyRequests,
testLatencyPercentiles,
testTimer
];
testing.run(tests, callback);

@@ -490,0 +490,0 @@ };

{
"name": "loadtest",
"version": "0.2.6",
"version": "0.2.7",
"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.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/alexfernandez/loadtest",

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