Skip to content

Commit fc29a75

Browse files
committed
Try to fix checkstyle issues with benchmark
ref #11
1 parent 59793a0 commit fc29a75

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

modules/benchmark-jmh/src/main/java/at/favre/lib/crypto/bcrypt/benchmark/BcryptBenchmark.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
@SuppressWarnings("CheckStyle")
1414
@State(Scope.Thread)
1515
@Fork(1)
16-
@Warmup(iterations = 3, time = 4)
16+
@Warmup(iterations = 2, time = 4)
1717
@Measurement(iterations = 3, time = 12)
1818
@BenchmarkMode(Mode.AverageTime)
1919
@OutputTimeUnit(TimeUnit.MILLISECONDS)
@@ -30,7 +30,7 @@ public String encode(byte[] bytes, ByteOrder byteOrder) {
3030
}
3131
};
3232

33-
@Param({"5", "6", "8", "10", "12"})
33+
@Param({"10", "12"})
3434
private int cost;
3535
private byte[] pw;
3636

@@ -51,12 +51,12 @@ public byte[] benchmarkFavreBcrypt() {
5151
return benchmark(favreBcrypt, cost, pw);
5252
}
5353

54-
@Benchmark
54+
//@Benchmark
5555
public byte[] benchmarkJBcrypt() {
5656
return benchmark(jBcrypt, cost, pw);
5757
}
5858

59-
@Benchmark
59+
//@Benchmark
6060
public byte[] benchmarkBcBcrypt() {
6161
return benchmark(bcBcrypt, cost, pw);
6262
}

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
<version>3.0.0</version>
6767
<configuration>
6868
<configLocation>checkstyle.xml</configLocation>
69-
<excludes>BcryptBenchmark.*</excludes>
69+
<excludes>**/benchmark-jmh/**</excludes>
7070
</configuration>
7171
<dependencies>
7272
<dependency>
@@ -116,7 +116,7 @@
116116
</executions>
117117
<configuration>
118118
<excludes>
119-
<exclude>BcryptBenchmark.*</exclude>
119+
<exclude>**/benchmark-jmh/**</exclude>
120120
</excludes>
121121
</configuration>
122122
</plugin>

0 commit comments

Comments
 (0)