const cannon = (title = null) => new Promise((yes, no) => { autocannon( { title, url: argv.u || 'http://localhost:5050/users/rayo', connections: argv.c || 100, pipelining: argv.p || 10, duration: argv.d || 5 }, (error, result) => (error ? no(error) : yes(result)) ); })
const cannon = (title = null) => new Promise((yes, no) => { autocannon( { title, url: argv.u || 'http://localhost:5050/users/rayo', connections: argv.c || 100, pipelining: argv.p || 10, duration: argv.d || 5 }, (error, result) => (error ? no(error) : yes(result)) ); })