From 3d24cc9e92bc88568eee56e0f6b6c73c3f7cfb35 Mon Sep 17 00:00:00 2001 From: str4d Date: Fri, 8 Sep 2017 11:16:40 +0000 Subject: [PATCH] Move benchmarks into core --- benchmarks/java/build.xml | 105 ------------------ build.xml | 5 +- .../java/bench}/net/i2p/crypto/AESBench.java | 0 .../bench}/net/i2p/crypto/ElGamalBench.java | 0 .../bench}/net/i2p/crypto/SHA256Bench.java | 0 core/java/build.xml | 60 ++++++++++ {benchmarks => tests/scripts}/benchmark.sh | 8 +- 7 files changed, 66 insertions(+), 112 deletions(-) delete mode 100644 benchmarks/java/build.xml rename {benchmarks/java/src => core/java/bench}/net/i2p/crypto/AESBench.java (100%) rename {benchmarks/java/src => core/java/bench}/net/i2p/crypto/ElGamalBench.java (100%) rename {benchmarks/java/src => core/java/bench}/net/i2p/crypto/SHA256Bench.java (100%) rename {benchmarks => tests/scripts}/benchmark.sh (68%) diff --git a/benchmarks/java/build.xml b/benchmarks/java/build.xml deleted file mode 100644 index 9e88b83211..0000000000 --- a/benchmarks/java/build.xml +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/build.xml b/build.xml index 64b73c57f8..4acd0ba3f1 100644 --- a/build.xml +++ b/build.xml @@ -994,7 +994,6 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/benchmarks/benchmark.sh b/tests/scripts/benchmark.sh similarity index 68% rename from benchmarks/benchmark.sh rename to tests/scripts/benchmark.sh index e27f33da7d..0ce278b5b3 100755 --- a/benchmarks/benchmark.sh +++ b/tests/scripts/benchmark.sh @@ -8,11 +8,11 @@ fi if [ "x$BENCHMARKS" = 'x' ] then - BENCHMARKS="$CWD/benchmarks.jar" + BENCHMARKS="$CWD/i2p-benchmarks.jar" stat "$BENCHMARKS" >/dev/null 2>&1 if [ "x$?" != 'x0' ] then - BENCHMARKS="$CWD/java/build/benchmarks.jar" + BENCHMARKS="$CWD/../../core/java/build/i2p-benchmarks.jar" fi fi @@ -22,7 +22,7 @@ then stat "$JBIGI" >/dev/null 2>&1 if [ "x$?" != 'x0' ] then - JBIGI="$CWD/../build/jbigi.jar" + JBIGI="$CWD/../../build/jbigi.jar" fi fi @@ -33,4 +33,4 @@ then shift fi -$JAVA -cp "$CLASSPATH" "$@" +$JAVA -cp "$CLASSPATH" org.openjdk.jmh.Main "$@"