Giter Site home page Giter Site logo

How to send as many post requests per second to the same url, with the same data, as fast as possible? about faster-than-requests HOT 2 CLOSED

juancarlospaco avatar juancarlospaco commented on May 18, 2024 1
How to send as many post requests per second to the same url, with the same data, as fast as possible?

from faster-than-requests.

Comments (2)

juancarlospaco avatar juancarlospaco commented on May 18, 2024

post2str should do.

For benchmarking you must use a local web server, maybe is just your ISP Routing/DNS capping everything to same speed.

Theres a basic web server that you can use to test stuff here:
https://github.com/juancarlospaco/faster-than-requests/blob/master/docker/server4benchmarks.nim

Whats the full command you used to compile it?, it depends a lot on the options used to compile, try using:
nim c -d:danger -d:ssl --threads:on --app:lib --gc:arc --out:faster_than_requests.pyd faster_than_requests.nim

is possible that some stuff may be similar speed to other libs nowadays, when it started it was faster on everything,
or maybe is just that your bottleneck is somewhere, like GIL, interpreter itself, mechanical disk, Routing/DNS, antivirus, etc.

It is not a drop-in replacement to any pre-existent software.

from faster-than-requests.

juancarlospaco avatar juancarlospaco commented on May 18, 2024

If theres no new question it will be closed soon.

For more speed you do it from the Nim side,
the more stuff you move from the interpreter side to the compiled side the faster it goes, so is really up to you,
Nim has Python syntax, just need to import it
https://github.com/Yardanico/nimpylib

from faster-than-requests.

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.