GithubHelp home page GithubHelp logo

msg-benchmarks's Introduction

ZMQ vs nanomsg Benchmarking for XREQ / XREP

Benchmarking of C-Libraries for both ZMQ (czmq) as well as nanomsg for a XREQ/XREP pattern.

Similar to a XPUB/XSUB pattern which utilizes multiple publisher and subscriber nodes, this XREQ/XREP has multiple processes sending messages to a single master process via a router/proxy process.

How to run (Unix)

Make sure have the czmq and/or the nanomsg library installed. You can compile and execute yourself, or you directly start with the benchmark which will take care of everything itself.

Compilation

Compiles czmq or nanomsg and saves in the ./dist folder. Example:

./compile.sh czmq|nanomsg

Running

Runs proxy, master and a number of clients with a url (tcp (both) or ipc(nanomsg)) for a msg size up to 2^x. Example:

./run.sh frontend_url backend_url amount_of_clients biggest_msg_size_exponent czmq|nanomsg
# Exanmple:
./run.sh "tcp://localhost:5559" "tcp://localhost:5560" 1 20 czmq

Benchmark

The Benchmarking script will compile and run on your behalf.

You need 4 Arguments:

  1. target (czmq or nanomsg)
  2. Protocoll (ipc or tcp)
  3. maximum amount of clients as power (base is 2)
  4. The power of the biggest msg size you want to send (base is 2)\n" printf 'A good starting point would me: \n\t: ./benchmark.sh czmq ipc 4 16\n\t-> Results in a max msg size of 64KiB and 128 clients\n' printf 'Note that this cmq implementation does not does not with IPC.\n\n'

Example:

./benchmark.sh czmq ipc 2 12

You can pipe > to_some_file.txt to save the results. Do a regex ^(?![GE]).*\n to get rid of all non-csv data and import it into the tool of your choice.

msg-benchmarks's People

Contributors

medizinmensch avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.