Skip to content

Commit a665202

Browse files
committed
Fix benchmarks
1 parent 05e4956 commit a665202

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/test/java/org/apache/commons/io/jmh/IOUtilsContentEqualsInputStreamsBenchmark.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ public boolean[] testFileRelease_2_8_0() throws IOException {
234234
}
235235

236236
@Benchmark
237-
void testStringCurrent(final Blackhole blackhole) throws IOException {
237+
public void testStringCurrent(final Blackhole blackhole) throws IOException {
238238
for (int i = 0; i < 5; i++) {
239239
for (int j = 0; j < 5; j++) {
240240
try (InputStream inputReader1 = IOUtils.toInputStream(STRINGS[i], DEFAULT_CHARSET);
@@ -246,7 +246,7 @@ void testStringCurrent(final Blackhole blackhole) throws IOException {
246246
}
247247

248248
@Benchmark
249-
void testStringFileChannels(final Blackhole blackhole) throws IOException {
249+
public void testStringFileChannels(final Blackhole blackhole) throws IOException {
250250
for (int i = 0; i < 5; i++) {
251251
for (int j = 0; j < 5; j++) {
252252
try (InputStream input1 = IOUtils.toInputStream(STRINGS[i], DEFAULT_CHARSET);
@@ -258,7 +258,7 @@ void testStringFileChannels(final Blackhole blackhole) throws IOException {
258258
}
259259

260260
@Benchmark
261-
void testStringPr118(final Blackhole blackhole) throws IOException {
261+
public void testStringPr118(final Blackhole blackhole) throws IOException {
262262
for (int i = 0; i < 5; i++) {
263263
for (int j = 0; j < 5; j++) {
264264
try (InputStream input1 = IOUtils.toInputStream(STRINGS[i], DEFAULT_CHARSET);
@@ -270,7 +270,7 @@ void testStringPr118(final Blackhole blackhole) throws IOException {
270270
}
271271

272272
@Benchmark
273-
void testStringRelease_2_8_0(final Blackhole blackhole) throws IOException {
273+
public void testStringRelease_2_8_0(final Blackhole blackhole) throws IOException {
274274
for (int i = 0; i < 5; i++) {
275275
for (int j = 0; j < 5; j++) {
276276
try (InputStream input1 = IOUtils.toInputStream(STRINGS[i], DEFAULT_CHARSET);

src/test/java/org/apache/commons/io/jmh/IOUtilsContentEqualsReadersBenchmark.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public boolean[] testFileRelease_2_8_0() throws IOException {
203203
}
204204

205205
@Benchmark
206-
void testStringCurrent(final Blackhole blackhole) throws IOException {
206+
public void testStringCurrent(final Blackhole blackhole) throws IOException {
207207
for (int i = 0; i < 5; i++) {
208208
for (int j = 0; j < 5; j++) {
209209
try (StringReader input1 = new StringReader(STRINGS[i]);
@@ -215,7 +215,7 @@ void testStringCurrent(final Blackhole blackhole) throws IOException {
215215
}
216216

217217
@Benchmark
218-
void testStringPr118(final Blackhole blackhole) throws IOException {
218+
public void testStringPr118(final Blackhole blackhole) throws IOException {
219219
for (int i = 0; i < 5; i++) {
220220
for (int j = 0; j < 5; j++) {
221221
try (StringReader input1 = new StringReader(STRINGS[i]);
@@ -227,7 +227,7 @@ void testStringPr118(final Blackhole blackhole) throws IOException {
227227
}
228228

229229
@Benchmark
230-
void testStringRelease_2_8_0(final Blackhole blackhole) throws IOException {
230+
public void testStringRelease_2_8_0(final Blackhole blackhole) throws IOException {
231231
for (int i = 0; i < 5; i++) {
232232
for (int j = 0; j < 5; j++) {
233233
try (StringReader input1 = new StringReader(STRINGS[i]);

src/test/java/org/apache/commons/io/jmh/PathUtilsContentEqualsBenchmark.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public boolean[] testCurrent_fileContentEquals() throws IOException {
9292
}
9393

9494
@Benchmark
95-
void testCurrent_fileContentEquals_Blackhole(final Blackhole blackhole) throws IOException {
95+
public void testCurrent_fileContentEquals_Blackhole(final Blackhole blackhole) throws IOException {
9696
for (int i = 0; i < 5; i++) {
9797
for (int j = 0; j < 5; j++) {
9898
blackhole.consume(PathUtils.fileContentEquals(bigFile1, bigFile2));
@@ -108,7 +108,7 @@ public boolean[] testProposal_contentEquals() throws IOException {
108108
}
109109

110110
@Benchmark
111-
void testProposal_contentEquals_Blackhole(final Blackhole blackhole) throws IOException {
111+
public void testProposal_contentEquals_Blackhole(final Blackhole blackhole) throws IOException {
112112
for (int i = 0; i < 5; i++) {
113113
for (int j = 0; j < 5; j++) {
114114
blackhole.consume(newFileContentEquals(bigFile1, bigFile2));

0 commit comments

Comments
 (0)