Socket
Socket
Sign inDemoInstall

siege

Package Overview
Dependencies
2
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.2 to 0.1.0

examples/tornado/app.py

5

examples/helloworld/siege.test.js
var siege = require('../../siege')
siege(__dirname + '/app.js')
// siege(__dirname + '/app.js')
siege()
.host('localhost')
.on(3000)
.concurrent(100)
.concurrent(30)
.for(10000).times

@@ -8,0 +9,0 @@ .get('/')

2

package.json

@@ -5,3 +5,3 @@ {

"description": "http benchmark by nodejs",
"version": "0.0.2",
"version": "0.1.0",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

@@ -101,3 +101,3 @@ var http = require('http')

var running = 0;
var concurrent = task.concurrent || options.concurrent || 15;
var concurrent = http.globalAgent.maxSockets = task.concurrent || options.concurrent || 15;
var done = 0;

@@ -167,2 +167,4 @@ var repeat = task.repeat || options.repeat;

})
res.resume()

@@ -169,0 +171,0 @@ });

@@ -32,3 +32,4 @@ var http = require('http')

console.log('try to listen at %s', PORT);
http.createServer(app).listen(PORT)
console.log('server listen at %s', PORT)
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