Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 19 13:46
    salmanm commented #300
  • Nov 19 13:34

    salmanm on master

    feat: add support for context i… fix: lint Merge pull request #304 from sa… (compare)

  • Nov 19 13:34
    salmanm closed #304
  • Nov 19 13:34
    salmanm closed #279
  • Nov 19 13:28
    salmanm synchronize #304
  • Nov 19 13:26
    salmanm synchronize #304
  • Nov 19 13:25

    salmanm on 279

    feat: add support for context i… (compare)

  • Nov 19 13:21

    salmanm on dependabot-automerge

    (compare)

  • Nov 19 13:20

    mcollina on master

    chore: add dependabot automerge… (compare)

  • Nov 19 13:20
    mcollina closed #306
  • Nov 19 13:20
    mcollina commented #304
  • Nov 19 13:19

    dependabot-preview[bot] on npm_and_yarn

    (compare)

  • Nov 19 13:19

    mcollina on master

    Bump standard from 15.0.1 to 16… (compare)

  • Nov 19 13:19
    mcollina closed #302
  • Nov 19 13:19

    mcollina on master

    feat: setupRequest/onResponse s… (compare)

  • Nov 19 13:19
    mcollina closed #298
  • Nov 19 13:17
    mcollina closed #300
  • Nov 19 11:29
    salmanm commented #300
  • Nov 19 10:51
    salmanm edited #306
  • Nov 19 10:42
    salmanm synchronize #306
I've been playing around with GoLang a lot lately, and I had the idea to try replicate autocannon as a fun experiment. It was pretty easy, ~250 lines of code for a barebones implementation.
Matteo Collina
@mcollina
@alex-ppg please open an issue.
Alexander Papageorgiou
@alex-ppg
I opened PR #239 for adding the ability to mutate each request independently via a setupRequest property on each request rather than providing a setupClient property, I would appreciate your thoughts on this.
Alexander Papageorgiou
@alex-ppg
I think I'll need to open another PR, but is it possible to force autocannon to construct each request in the requests array each time it is called? What I am basically trying to do is sequentially create multiple entities and then conduct PATCH requests on these entities but it appears that the PR I opened does not solve the issue as setupRequest is only called based on the number of connections.
Matteo Collina
@mcollina
@alex-ppg that will slow down things significantly
Please make sure that you can actually address your use case in your next PR.
(write an actual test that does what you need, and possibly test using npm link)
Alexander Papageorgiou
@alex-ppg
Well @mcollina we can perhaps supplement a new parameter that will dictate the number of requests to do in total so that they are constructed in advance?
Matteo Collina
@mcollina
That would work
it should already be there (I think)
Ilia Isupov
@SwinX
Hi guys. Maybe you can advice how can I add authorization cookies to requests autocannon does?
I need to shoot pages which are hidden behind authentication.
moonthug
@moonthug
Hi all. Does autocannon work with clusters/child_process? It seems to not be able to read the JSON 🤔\
Roman Milovskiy
@dcromster
Hello!
How i can send x-www-form-urlencoded ? -F and -b did not work
Roman Milovskiy
@dcromster
ok. it works with '{data}' :)
thanx!
^)
Jannis Pohlmann
@Jannis

Hi! Autocannon is amazing. I'm so glad I found something like wrk that can be used as a JS/TS library! I seem to be running into a bug though:

In onRequest, the body is almost always partial. Sometimes it starts from the beginning and is truncated, other times it starts somewhere in the middle. Is this a known issue?

Jannis Pohlmann
@Jannis
I think the way the way this is implemented currently just calls onResponse every time more body data is read from the response. If the response is longer, it could be called multiple times.
I think you'd expect onResponse to only be called once when the response message is complete.
Looking into a fix.
Jannis Pohlmann
@Jannis
Fix submitted here: mcollina/autocannon#276
Ian Crowther
@iancrowther
im looking to run some tests on fastly using http/2. is this something i can use autocanon for?
Preet Parekh
@preetjdp
Is there a way to log the response being being received by autocannon, could not find anything concrete in the documentation.