Socket
Socket
Sign inDemoInstall

loadtest

Package Overview
Dependencies
29
Maintainers
1
Versions
122
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.0.3 to 5.0.4

lib/hrtimer.js

12

lib/httpClient.js

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

const Log = require('log');
const timing = require('./timing.js');
const {HighResolutionTimer} = require('./hrtimer.js');
const headers = require('./headers.js');

@@ -118,3 +118,3 @@

const interval = 1000 / this.params.requestsPerSecond;
this.requestTimer = new timing.HighResolutionTimer(interval, () => this.makeRequest());
this.requestTimer = new HighResolutionTimer(interval, () => this.makeRequest());
}

@@ -152,3 +152,3 @@

// adding proxy configuration
// adding proxy configuration
if (this.params.proxy) {

@@ -160,4 +160,4 @@ const proxy = this.params.proxy;

}
// Disable certificate checking

@@ -182,3 +182,3 @@ if (this.params.insecure === true) {

}
if (this.params.hasOwnProperty('timeout')) {
if (this.params.timeout) {
const timeout = parseInt(this.params.timeout);

@@ -185,0 +185,0 @@ if (!timeout) {

@@ -16,3 +16,4 @@ 'use strict';

const websocket = require('./websocket.js');
const timing = require('./timing.js');
const {Latency} = require('./latency.js');
const {HighResolutionTimer} = require('./hrtimer.js');

@@ -107,3 +108,3 @@ // globals

start() {
this.latency = new timing.Latency(this.options);
this.latency = new Latency(this.options);
this.startClients();

@@ -113,3 +114,3 @@ if (this.options.maxSeconds) {

}
this.showTimer = new timing.HighResolutionTimer(SHOW_INTERVAL_MS, () => this.latency.showPartial());
this.showTimer = new HighResolutionTimer(SHOW_INTERVAL_MS, () => this.latency.showPartial());
this.showTimer.unref()

@@ -116,0 +117,0 @@ }

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

const Log = require('log');
const timing = require('./timing.js');
const {Latency} = require('./latency.js');

@@ -36,3 +36,3 @@ // globals

this.wsServer = null;
this.latency = new timing.Latency({});
this.latency = new Latency({});
this.debuggedTime = Date.now();

@@ -39,0 +39,0 @@ if (options.quiet) {

{
"name": "loadtest",
"version": "5.0.3",
"version": "5.0.4",
"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",

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

const tests = {};
const libs = ['timing', 'integration', 'loadtest', 'headers', 'testserver', 'websocket', 'httpClient'];
const libs = ['hrtimer', 'latency', 'integration', 'loadtest', 'headers', 'testserver', 'websocket', 'httpClient'];
libs.forEach(function(lib)

@@ -26,0 +26,0 @@ {

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc