forked from I2P_Developers/i2p.i2p
Shorten the benchmark names
This commit is contained in:
@ -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();
|
@ -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();
|
@ -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();
|
Reference in New Issue
Block a user