Skip to content

Getting Started (Dev)

Nick Palmer edited this page Jan 8, 2021 · 4 revisions

A guide to checking out the code, building it and running the performance tests

Getting Started

We have switched from ant to gradle. More detailed instructions on how to work on the disruptor using gradle will follow. To get started list the available tasks by issuing:

> ./gradlew tasks

and take it from there.

No gradle install is necessary as gradle is self-provisioning.

Basic workflow

1. Check out the project locally to your machine

> cd ${MY_PROJECTS_HOME}
> git clone git://github.com/LMAX-Exchange/disruptor.git

2. Build a distribution

> cd ${MY_PROJECTS_HOME}/disruptor
> ./gradlew

As a result of the build you should find the following files:

${MY_PROJECTS_HOME}/disruptor/build/libs/disruptor-{VERSION_NUMBER}-SNAPSHOT.jar
${MY_PROJECTS_HOME}/disruptor/build/libs/disruptor-{VERSION_NUMBER}-SNAPSHOT-javadoc.jar
${MY_PROJECTS_HOME}/disruptor/build/libs/disruptor-{VERSION_NUMBER}-SNAPSHOT-sources.jar

3. Run the performance tests

> cd ${MY_PROJECTS_HOME}/disruptor
> ./gradlew perfJar
> java -cp build/libs/disruptor-perf-*.jar [test name, e.g. com.lmax.disruptor.sequenced.OneToOneSequencedThroughputTest]
Clone this wiki locally