Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a new feature to support run with multiple url #260

Merged
merged 1 commit into from Jul 28, 2020

Conversation

homura
Copy link
Contributor

@homura homura commented May 18, 2020

This is a non-breaking-change feature

Why we need this feature

When we bench a distributed system across continents (such as a blockchain system), there is often no load balancing. At this time, if it supports natively multi-node bench, it will be very convenient.

How to use it

Added a compatible new feature to support multiple URLs like this

autocannon http://localhost:1234 http://localhost:1235

also programmatically supported with

const autocannon = require('autocannon')

autocannon({
    url: ['http://foo.bar:3000', 'http://baz.qux:3001']
})

keep the code style

keep the code style
Copy link
Owner

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mcollina mcollina merged commit f6e103e into mcollina:master Jul 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants