Giter VIP home page Giter VIP logo

consolewebload's People

Contributors

dependabot[bot] avatar john0king avatar

Stargazers

 avatar

Watchers

 avatar  avatar

consolewebload's Issues

怎样让请求更多更快

在 Loop 命令中,因为没有多少需要CPU 的操作,大部分时间都是在等待服务器响应, 但是现在仍然有以下问题:

  1. 虽然使用了async 但是只有对应数量的线程在工作/等待,没有发挥出全部的性能
  2. 线程数量越大,刚开始很快,最后却进入到类似于假死的状态(比如 TaskSize:100

希望得到帮助解决上面的问题,请查看 LoopRunner.cs

把 HttpClient 分散到 各个线程中

虽然 HttpClient 是线程安全的,但是在发送请求的时候, HttpClient 仍然会有一小段时间的 同步锁定,所以每个线程一个 HttpClient 预计将 有更好利用 CPU

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.