added benchmark subproject

This commit is contained in:
2019-09-21 16:15:45 +01:00
parent 3102122a89
commit 428c4a68d5
7 changed files with 205 additions and 11 deletions

View File

@@ -218,9 +218,9 @@ public class JSONParser extends ValueParser {
try {
String text = parseNumber(stream);
if (text.indexOf('.') > 0) {
floatValue(Double.valueOf(text));
floatValue(Double.parseDouble(text));
} else {
integerValue(Long.valueOf(text));
integerValue(Long.parseLong(text));
}
continue;
} catch (NumberFormatException nfe) {

View File

@@ -1,4 +1,4 @@
package net.woggioni.worth.serialization.json;
package net.woggioni.worth.utils;
public class Chronometer {

View File

@@ -199,7 +199,7 @@ class ListObjectValue implements ObjectValue {
@Override
public void put(String key, Value value2Put) {
value.add(new ObjectEntry(key, value2Put));
value.add(new ObjectEntry<>(key, value2Put));
}

View File

@@ -97,10 +97,6 @@ public interface Value {
public final ObjectValue.Implementation objectValueImplementation = ObjectValue.Implementation.valueOf(
System.getProperty(ObjectValue.class.getName() + ".implementation", "TreeMap"));
@Builder.Default
public final boolean useReferences = Boolean.valueOf(
System.getProperty(Value.class.getName() + ".useReferences", "false"));
@Builder.Default
public final int maxDepth =
Integer.parseInt(System.getProperty(Value.class.getName() + ".maxDepth", "1048576"));