Skip to content

Getting Started (Dev)

mikeb01 edited this page Nov 13, 2014 · 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-3.3.0.jar [test name, e.g. com.lmax.disruptor.sequenced.OneToOneSequencedThroughputTest]
Clone this wiki locally