Skip to content

Commit a57ed36

Browse files
committed
Move performance-relative classes in perf package
1 parent 22cdfc7 commit a57ed36

32 files changed

+39
-72
lines changed

HTML_PERFORMANCE_TOOLS.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ to the root folder of the binary distribution and run the following
3232
command to start the benchmark:
3333

3434
```bash
35-
bin/runjava com.rabbitmq.examples.PerfTestMulti
35+
bin/runjava com.rabbitmq.perf.PerfTestMulti
3636
publish-consume-spec.js publish-consume-result.js
3737
```
3838

@@ -345,23 +345,23 @@ As an alternative, from the root directory of the binary distribution,
345345
you can launch a Java-based web server:
346346

347347
```
348-
bin/runjava com.rabbitmq.examples.WebServer
348+
bin/runjava com.rabbitmq.perf.WebServer
349349
```
350350

351351
The latter command starts a web server listening on port 8080, with the
352352
`html` directory as its base directory. You can then see the included
353353
sample at http://localhost:8080/examples/sample.html. To change these defaults:
354354

355355
```
356-
bin/runjava com.rabbitmq.examples.WebServer ./other-base-dir 9090
356+
bin/runjava com.rabbitmq.perf.WebServer ./other-base-dir 9090
357357
```
358358

359359
At last, if you want a quick preview of your results (same layout
360360
as the first 'consume' scenario above), ensure the scenario name is
361361
'benchmark' in the result file and launch the following command:
362362

363363
```
364-
$ bin/runjava com.rabbitmq.examples.BenchmarkResults my-result-file.js
364+
$ bin/runjava com.rabbitmq.perf.BenchmarkResults my-result-file.js
365365
```
366366

367367
The latter command will start a web server on port 8080 and open

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Assuming the current directory is the root directory of the binary distribution,
1111
to launch a performance test with 1 producer and 1 consumer:
1212

1313
```
14-
bin/runjava com.rabbitmq.examples.PerfTest
14+
bin/runjava com.rabbitmq.perf.PerfTest
1515
```
1616

1717
### Using the HTML performance tools

scripts/PerfTest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ SRCDIR=$(cd "$SCRIPTDIR"/.. && pwd)
99
cd "$SRCDIR"
1010
mvn -q test-compile -P '!setup-test-cluster'
1111
mvn -q exec:java \
12-
-Dexec.mainClass="com.rabbitmq.examples.PerfTest" "$@"
12+
-Dexec.mainClass="com.rabbitmq.perf.PerfTest" "$@"
1313
)

scripts/runperftest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
run() {
44
echo "=== running with '$2'"
5-
sh `dirname $0`/runjava com.rabbitmq.examples.PerfTest -h $1 -z 10 -i 20 $2
5+
sh `dirname $0`/runjava com.rabbitmq.perf.PerfTest -h $1 -z 10 -i 20 $2
66
sleep 2
77
}
88

scripts/runperftestMaven

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
cd `dirname $0`/..
44
run() {
55
echo "=== running with '$2'"
6-
mvn -q exec:java -Dexec.mainClass="com.rabbitmq.examples.PerfTest" -Dexec.args=" -h $1 -z 10 -i 20 $2"
6+
mvn -q exec:java -Dexec.mainClass="com.rabbitmq.perf.PerfTest" -Dexec.args=" -h $1 -z 10 -i 20 $2"
77
sleep 2
88
}
99

src/main/java/com/rabbitmq/examples/MulticastMain.java

Lines changed: 0 additions & 33 deletions
This file was deleted.

src/main/java/com/rabbitmq/examples/BenchmarkResults.java renamed to src/main/java/com/rabbitmq/perf/BenchmarkResults.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// If you have any questions regarding licensing, please contact us at
1414
1515

16-
package com.rabbitmq.examples;
16+
package com.rabbitmq.perf;
1717

1818
import org.eclipse.jetty.server.Server;
1919
import org.eclipse.jetty.servlet.DefaultServlet;

src/main/java/com/rabbitmq/examples/perf/Broker.java renamed to src/main/java/com/rabbitmq/perf/Broker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// If you have any questions regarding licensing, please contact us at
1414
1515

16-
package com.rabbitmq.examples.perf;
16+
package com.rabbitmq.perf;
1717

1818
import com.rabbitmq.tools.Host;
1919

src/main/java/com/rabbitmq/examples/perf/BrokerValue.java renamed to src/main/java/com/rabbitmq/perf/BrokerValue.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// If you have any questions regarding licensing, please contact us at
1414
1515

16-
package com.rabbitmq.examples.perf;
16+
package com.rabbitmq.perf;
1717

1818
import java.io.IOException;
1919

src/main/java/com/rabbitmq/examples/perf/BrokerVariable.java renamed to src/main/java/com/rabbitmq/perf/BrokerVariable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// If you have any questions regarding licensing, please contact us at
1414
1515

16-
package com.rabbitmq.examples.perf;
16+
package com.rabbitmq.perf;
1717

1818
import java.util.ArrayList;
1919
import java.util.List;

0 commit comments

Comments
 (0)