Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

autocannon npm

'use strict'

const autocannon = require('autocannon')

autocannon({
  url: 'http://localhost:3000',
  connections: 10, //default
  pipelining: 1, // default
  duration: 10 // default
}, console.log)

// async/await
async function foo () {
  const result = await autocannon({
    url: 'http://localhost:3000',
    connections: 10, //default
    pipelining: 1, // default
    duration: 10 // default
  })
  console.log(result)
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: events onclick 
Javascript :: javascript documentation 
Javascript :: react testing library 
Javascript :: js add timestamp clg 
Javascript :: get string length javascript 
Javascript :: string length javascript 
Javascript :: angular input date pattern validation 
Javascript :: typescript clear array 
Javascript :: how to export fs.readFile 
Javascript :: isupper 
Javascript :: google sheets get ranges 
Javascript :: what does event emitter do in angular 
Javascript :: search with multiple field in node js mongodb 
Javascript :: js download 
Javascript :: node http2 post 
Javascript :: The element.onclick Property 
Javascript :: round value down html 
Javascript :: javascript loop last index 
Javascript :: for of and for in javascript 
Javascript :: how to change created_at format with javascript rails 
Javascript :: sumar un mes a una fecha javascript moment 
Javascript :: js convert a string into a number 
Javascript :: JavaScript try...catch Statement 
Javascript :: factorial bigger than 170 javascript 
Javascript :: angular 8 remove cookies 
Javascript :: jsconfig 
Javascript :: How to use `setState` callback on react hooks 
Javascript :: material ui flex direction 
Javascript :: javascript extract json from string 
Javascript :: stack overflow js bubble sort 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =