I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit d828ed43 authored by str4d's avatar str4d
Browse files

Shorten the benchmark names

parent a06c3fe0
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,7 @@ import net.i2p.data.SessionKey; ...@@ -28,7 +28,7 @@ import net.i2p.data.SessionKey;
@Measurement(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS) @Measurement(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS)
@Fork(1) @Fork(1)
@State(Scope.Benchmark) @State(Scope.Benchmark)
public class AESBenchmarks { public class AESBench {
I2PAppContext ctx = I2PAppContext.getGlobalContext(); I2PAppContext ctx = I2PAppContext.getGlobalContext();
SessionKey key; SessionKey key;
CryptixAESEngine aes; CryptixAESEngine aes;
...@@ -62,7 +62,7 @@ public class AESBenchmarks { ...@@ -62,7 +62,7 @@ public class AESBenchmarks {
public static void main(String args[]) throws RunnerException { public static void main(String args[]) throws RunnerException {
Options opt = new OptionsBuilder() Options opt = new OptionsBuilder()
.include(AESBenchmarks.class.getSimpleName()) .include(AESBench.class.getSimpleName())
.build(); .build();
new Runner(opt).run(); new Runner(opt).run();
......
...@@ -28,7 +28,7 @@ import net.i2p.data.PublicKey; ...@@ -28,7 +28,7 @@ import net.i2p.data.PublicKey;
@Measurement(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS) @Measurement(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS)
@Fork(1) @Fork(1)
@State(Scope.Benchmark) @State(Scope.Benchmark)
public class ElGamalBenchmarks { public class ElGamalBench {
I2PAppContext ctx = I2PAppContext.getGlobalContext(); I2PAppContext ctx = I2PAppContext.getGlobalContext();
PublicKey pubkey; PublicKey pubkey;
PrivateKey privkey; PrivateKey privkey;
...@@ -62,7 +62,7 @@ public class ElGamalBenchmarks { ...@@ -62,7 +62,7 @@ public class ElGamalBenchmarks {
public static void main(String args[]) throws RunnerException { public static void main(String args[]) throws RunnerException {
Options opt = new OptionsBuilder() Options opt = new OptionsBuilder()
.include(ElGamalBenchmarks.class.getSimpleName()) .include(ElGamalBench.class.getSimpleName())
.build(); .build();
new Runner(opt).run(); new Runner(opt).run();
......
...@@ -49,7 +49,7 @@ import org.openjdk.jmh.runner.options.OptionsBuilder; ...@@ -49,7 +49,7 @@ import org.openjdk.jmh.runner.options.OptionsBuilder;
@Measurement(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS) @Measurement(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS)
@Fork(1) @Fork(1)
@State(Scope.Benchmark) @State(Scope.Benchmark)
public class SHA256Benchmarks { public class SHA256Bench {
MessageDigest md; MessageDigest md;
@Param({"40", "387", "10240"}) @Param({"40", "387", "10240"})
...@@ -73,7 +73,7 @@ public class SHA256Benchmarks { ...@@ -73,7 +73,7 @@ public class SHA256Benchmarks {
public static void main(String args[]) throws RunnerException { public static void main(String args[]) throws RunnerException {
Options opt = new OptionsBuilder() Options opt = new OptionsBuilder()
.include(SHA256Benchmarks.class.getSimpleName()) .include(SHA256Bench.class.getSimpleName())
.build(); .build();
new Runner(opt).run(); new Runner(opt).run();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment