Git Product home page Git Product logo

Comments (1)

costajob avatar costajob commented on August 16, 2024

Hi, i've already done it, throughput is worse as it is memory consumption.
It appears that, on Mac OS at least, Nim multi-threading is not able to use all of the CPUs: it hits 99% of usage.

./servers/httpbeast_server 
Starting 8 threads
Listening on port 9292
wrk -t 4 -c 100 -d30s --timeout 2000 http://0.0.0.0:9292
Running 30s test @ http://0.0.0.0:9292
  4 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.17ms  222.15us  14.33ms   90.17%
    Req/Sec    21.46k     1.94k   31.00k    89.86%
  2569344 requests in 30.10s, 323.44MB read
Requests/sec:  85359.04
Transfer/sec:     10.75MB

CPUs usage:
http_beast_cpus

from app-servers.

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.