Coder Social home page Coder Social logo

cluster / multicore about api HOT 2 CLOSED

pelias avatar pelias commented on July 17, 2024
cluster / multicore

from api.

Comments (2)

missinglink avatar missinglink commented on July 17, 2024

I experimented with this and couldn't get any better results by using cluster. I think multicore support is enabled by default in express4+ but I couldn't find any docs for this.

here is the branch if anyone else feels like giving it a go: https://github.com/pelias/api/tree/multicore

my results:

without cluster:

peter@manta:/var/www/express$ siege -c100 -t1M "http://localhost:3100/suggest?input=hack&lat=51.5&lon=0"
** SIEGE 3.0.5
** Preparing 100 concurrent users for battle.
The server is now under siege...
Lifting the server siege...      done.

Transactions:           7847 hits
Availability:         100.00 %
Elapsed time:          59.48 secs
Data transferred:         9.91 MB
Response time:            0.26 secs
Transaction rate:       131.93 trans/sec
Throughput:           0.17 MB/sec
Concurrency:           34.12
Successful transactions:        7847
Failed transactions:             0
Longest transaction:          0.51
Shortest transaction:         0.00

with cluster:

peter@manta:/var/www/express$ siege -c100 -t1M "http://localhost:3100/suggest?input=hack&lat=51.5&lon=0"
** SIEGE 3.0.5
** Preparing 100 concurrent users for battle.
The server is now under siege...
Lifting the server siege...      done.

Transactions:           7794 hits
Availability:         100.00 %
Elapsed time:          59.20 secs
Data transferred:         9.84 MB
Response time:            0.26 secs
Transaction rate:       131.66 trans/sec
Throughput:           0.17 MB/sec
Concurrency:           33.78
Successful transactions:        7794
Failed transactions:             0
Longest transaction:          0.61
Shortest transaction:         0.00

from api.

missinglink avatar missinglink commented on July 17, 2024

try to find a lib that works for 0.12

from api.

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.