Shorten the benchmark names

This commit is contained in:
str4d
2017-08-26 20:08:17 +00:00
parent a06c3fe043
commit d828ed4342
3 changed files with 6 additions and 6 deletions

View File

@ -28,7 +28,7 @@ import net.i2p.data.SessionKey;
@Measurement(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS)
@Fork(1)
@State(Scope.Benchmark)
public class AESBenchmarks {
public class AESBench {
I2PAppContext ctx = I2PAppContext.getGlobalContext();
SessionKey key;
CryptixAESEngine aes;
@ -62,7 +62,7 @@ public class AESBenchmarks {
public static void main(String args[]) throws RunnerException {
Options opt = new OptionsBuilder()
.include(AESBenchmarks.class.getSimpleName())
.include(AESBench.class.getSimpleName())
.build();
new Runner(opt).run();

View File

@ -28,7 +28,7 @@ import net.i2p.data.PublicKey;
@Measurement(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS)
@Fork(1)
@State(Scope.Benchmark)
public class ElGamalBenchmarks {
public class ElGamalBench {
I2PAppContext ctx = I2PAppContext.getGlobalContext();
PublicKey pubkey;
PrivateKey privkey;
@ -62,7 +62,7 @@ public class ElGamalBenchmarks {
public static void main(String args[]) throws RunnerException {
Options opt = new OptionsBuilder()
.include(ElGamalBenchmarks.class.getSimpleName())
.include(ElGamalBench.class.getSimpleName())
.build();
new Runner(opt).run();

View File

@ -49,7 +49,7 @@ import org.openjdk.jmh.runner.options.OptionsBuilder;
@Measurement(iterations = 5, time = 2, timeUnit = TimeUnit.SECONDS)
@Fork(1)
@State(Scope.Benchmark)
public class SHA256Benchmarks {
public class SHA256Bench {
MessageDigest md;
@Param({"40", "387", "10240"})
@ -73,7 +73,7 @@ public class SHA256Benchmarks {
public static void main(String args[]) throws RunnerException {
Options opt = new OptionsBuilder()
.include(SHA256Benchmarks.class.getSimpleName())
.include(SHA256Bench.class.getSimpleName())
.build();
new Runner(opt).run();