Giter Site home page Giter Site logo

dormanze / rabbitmq-perf-test Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rabbitmq/rabbitmq-perf-test

0.0 0.0 0.0 3.02 MB

A load testing tool

Home Page: https://www.rabbitmq.com/java-tools.html

License: Other

Shell 0.84% JavaScript 36.79% Java 61.05% TypeScript 0.04% CSS 0.17% Makefile 0.29% HTML 0.42% Batchfile 0.15% Dockerfile 0.25%

rabbitmq-perf-test's Introduction

RabbitMQ Performance Testing Tool

Test against RabbitMQ 3.11 stable

This repository contains source code of the RabbitMQ Performance Testing Tool. The client is maintained by the RabbitMQ team at VMware.

PerfTest uses the AMQP 0.9.1 protocol to communicate with a RabbitMQ cluster. Use Stream PerfTest if you want to test RabbitMQ Streams with the stream protocol.

Installation

This is a standalone tool that is distributed in binary form using GitHub releases and as a JAR file on Maven Central (see below). A Docker image is available as well.

The latest snapshot is also available.

Documentation

Usage

Running Performance Tests

Download the latest snapshot:

wget https://github.com/rabbitmq/rabbitmq-java-tools-binaries-dev/releases/download/v-rabbitmq-perf-test-latest/perf-test-latest.jar

Launch a performance test with 1 producer and 1 consumer:

java -jar perf-test-latest.jar

Use

java -jar perf-test-latest.jar --help

to see all supported options.

Producing HTML Output of Runs

The HTML Performance Tools are a set of tools that can help you run automated benchmarks by wrapping around the PerfTest benchmarking framework. You can provide benchmark specs, and the tool will take care of running the benchmark, collecting results and displaying them in an HTML page. Learn more here.

Contributing

See CONTRIBUTING.md for an overview of the development process.

Building from Source

To build the uber JAR:

./mvnw clean package -P uber-jar -Dgpg.skip=true -Dmaven.test.skip

The generated file is target/perf-test.jar.

To build the JAR file:

./mvnw clean package -Dmaven.test.skip

The file is then in the target directory.

Running tests

The test suite needs to execute rabbitmqctl to test connection recovery. You can specify the path to rabbitmqctl like the following:

./mvnw clean verify -Drabbitmqctl.bin=/path/to/rabbitmqctl

You need a local running RabbitMQ instance.

Running tests with Docker

Start a RabbitMQ container:

docker run -it --rm --name rabbitmq -p 5672:5672 rabbitmq:3.10

Run the test suite:

./mvnw clean verify -Drabbitmqctl.bin=DOCKER:rabbitmq

Files are then in the target directory.

Maven Artifact

Maven Central

perf-test search.maven.org

Logging

PerfTest depends transitively on SLF4J for logging (through RabbitMQ Java Client). PerfTest binary distribution ships with Logback as a SLF4J binding and uses Logback default configuration (printing logs to the console). If for any reason you need to use a specific Logback configuration file, you can do it this way:

java -Dlogback.configurationFile=/path/to/logback.xml -jar perf-test.jar

As of PerfTest 2.11.0, it is possible to define loggers directly from the command line. This is less powerful than using a configuration file, yet simpler to use and useful for quick debugging. Use the rabbitmq.perftest.loggers system property with name=level pairs, e.g.:

java -Drabbitmq.perftest.loggers=com.rabbitmq.perf=debug -jar perf-test.jar

It is possible to define several loggers by separating them with commas, e.g. -Drabbitmq.perftest.loggers=com.rabbitmq.perf=debug,com.rabbitmq.perf.Producer=info.

It is also possible to use an environment variable:

export RABBITMQ_PERF_TEST_LOGGERS=com.rabbitmq.perf=info

The system property takes precedence over the environment variable.

Use the environment variable with the Docker image:

docker run -it --rm --network perf-test \
  --env RABBITMQ_PERF_TEST_LOGGERS=com.rabbitmq.perf=debug,com.rabbitmq.perf.Producer=debug \
  pivotalrabbitmq/perf-test:latest --uri amqp://rabbitmq

If you use PerfTest as a standalone JAR in your project, please note it doesn't depend on any SLF4J binding, you can use your favorite one.

Versioning

This tool uses semantic versioning.

Support

See the RabbitMQ Java libraries support page for the support timeline of this library.

License

This package, the RabbitMQ Performance Testing Tool library, is triple-licensed under the Mozilla Public License 2.0 ("MPL"), the GNU General Public License version 2 ("GPL") and the Apache License version 2 ("ASL").

rabbitmq-perf-test's People

Contributors

acogoluegnes avatar ansd avatar binarin avatar dependabot[bot] avatar dumbbell avatar gerhard avatar johanrhodin avatar johnlonganecker avatar krdlab avatar lukebakken avatar mcintyredu avatar michaelklishin avatar mkuratczyk avatar rabbitmq-ci avatar rafalgoslawski avatar rnsc avatar sethpyle376 avatar spring-operator avatar stefanmoser avatar tinygrasshopper avatar urjitbhatia avatar vanlightly avatar zerpet 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.