We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 990efc0 commit e4bfff9Copy full SHA for e4bfff9
docs/jmh_results.ods
1.2 KB
docs/jmh_results.png
-3.82 KB
jbbp/src/test/jmh/com/igormaznitsa/jbbp/benchmarks/JBBP_Benchmark.java
@@ -47,7 +47,7 @@ public class JBBP_Benchmark {
47
48
@Benchmark
49
public void measureParse_DynamicAndMapping() throws IOException {
50
- parser.parse(DATA).mapTo(Data.class);
+ parser.parse(DATA).mapTo(new Data());
51
}
52
53
@@ -75,5 +75,9 @@ public static class Data {
75
76
@Bin(name = "data")
77
public InData[] data;
78
+
79
+ public Object newInstance(Class<?> klazz) {
80
+ return klazz == InData.class ? new InData() : null;
81
+ }
82
83
0 commit comments