philadelphia-perf-test: Add 'FIXValue#asBoolean' and 'FIXValue#setBoolean'
@@ -16,6 +16,8 @@ public class FIXValueBenchmark extends FIXBenchmark {
private MutableDateTime timestamp;
+ private FIXValue booleanValue;
+
private FIXValue charValue;
private FIXValue intValue;
@@ -42,6 +44,9 @@ public class FIXValueBenchmark extends FIXBenchmark {
timestamp = new MutableDateTime(2015, 9, 24, 9, 30, 5, 250);
+ booleanValue = new FIXValue(64);
+ booleanValue.setBoolean(true);
+
charValue = new FIXValue(64);
charValue.setChar('Y');
@@ -70,6 +75,16 @@ public class FIXValueBenchmark extends FIXBenchmark {
public void baseline() {
}
+ @Benchmark
+ public boolean asBoolean() {
+ return booleanValue.asBoolean();
+ }
+
+ @Benchmark
+ public void setBoolean() {
+ booleanValue.setBoolean(true);
+ }
+
@Benchmark
public char asChar() {
return charValue.asChar();
