GithubHelp home page GithubHelp logo

smmf / pubsub-bench Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 164 KB

A micro-benchmark for the performance of a publish/subscribe architecture in a distributed system

License: The Unlicense

Java 100.00%

pubsub-bench's Introduction

pubsub-bench

A micro-benchmark for the performance of a publish/subscribe architecture in a distributed system

Running

Trivial way:

mvn compile
mvn exec:java -Dexec.mainClass="bench.pubsub.Bench" -Djava.net.preferIPv4Stack=true

It will run a single thread that publishes messages of 100 bytes. To change the defaults use:

-Dexec.args="NAME-OF-COMM-SYSTEM 3 1000 BOOT-SEQ"

Where NAME-OF-COMM-SYSTEM is one of "HazelcastCommSystem" or "ZeroMQCommSystem" (the default is the former).

Second arg is the number of threads and the third is the message payload in bytes.

If using ZeroMQ you need a sequencer. Either you run it by itself with

mvn exec:java -Dexec.mainClass="bench.pubsub.ZeroMQSequencer"

Or you need to use the fourth arg when launching one of the nodes.

To adjust the JVM params on can use e.g.:

export MAVEN_OPTS="-verbose:gc -Xmx1000M -Xms500M -server -XX:+UseConcMarkSweepGC -XX:+AggressiveOpts -verbose:gc -XX:ParallelGCThreads=4 -XX:NewRatio=5 -XX:SurvivorRatio=2 -Dhazelcast.operation.thread.count=4"

To start the benchmark without maven the following command may help

mvn dependency:build-classpath

pubsub-bench's People

Contributors

smmf avatar jcachopo 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.