Giter Club home page Giter Club logo

Comments (4)

Igorpollo avatar Igorpollo commented on May 27, 2024 1

Yes... worked with wrk.
Possible a autocannon bug...Thanks!

from router.

savsgio avatar savsgio commented on May 27, 2024

Could you share your code? please

from router.

savsgio avatar savsgio commented on May 27, 2024

I have been testing autocannon POST requests, and it's failed when you add -b "mybody" to the command,. If you remove it, it works well.

If you try with wrk, works well when you pass a post body.
wrk -c 5000 -d 30s -t 4 -s post.lua http://localhost:8080

post.lua

-- example HTTP POST script which demonstrates setting the
-- HTTP method, body, and adding a header

wrk.method = "POST"
wrk.body   = "foo=bar&baz=quux"
wrk.headers["Content-Type"] = "application/x-www-form-urlencoded"

So, i think it's a autocannon's bug

from router.

savsgio avatar savsgio commented on May 27, 2024

Result:

$ wrk -c 5000 -d 30s -t 4 -s post.lua http://localhost:8080
Running 30s test @ http://localhost:8080
  4 threads and 5000 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    26.17ms   47.82ms   1.96s    92.88%
    Req/Sec    10.66k    11.63k   75.91k    89.04%
  1268698 requests in 30.08s, 229.89MB read
  Socket errors: connect 0, read 3116, write 1, timeout 179
  Non-2xx or 3xx responses: 1268698
Requests/sec:  42173.96
Transfer/sec:      7.64MB

from router.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.