Skip to content

Commit e4bfff9

Browse files
committed
updated jmh results
1 parent 990efc0 commit e4bfff9

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

docs/jmh_results.ods

1.2 KB
Binary file not shown.

docs/jmh_results.png

-3.82 KB
Loading

jbbp/src/test/jmh/com/igormaznitsa/jbbp/benchmarks/JBBP_Benchmark.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public class JBBP_Benchmark {
4747

4848
@Benchmark
4949
public void measureParse_DynamicAndMapping() throws IOException {
50-
parser.parse(DATA).mapTo(Data.class);
50+
parser.parse(DATA).mapTo(new Data());
5151
}
5252

5353
@Benchmark
@@ -75,5 +75,9 @@ public static class Data {
7575

7676
@Bin(name = "data")
7777
public InData[] data;
78+
79+
public Object newInstance(Class<?> klazz) {
80+
return klazz == InData.class ? new InData() : null;
81+
}
7882
}
7983
}

0 commit comments

Comments
 (0)