You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a benchmark for serialization of a List of 100 items. All list items are of the same type. There is an adapter registered for this type in JSONB engine.
Sample:
// Create configuration, attach adapters and create JSONB engineJsonbConfigconfig = newJsonbConfig()
.withAdapters(newAnimalAdapter());
Jsonbjsonb = JsonbBuilder.create(config);
// Create a list of animalsList<Dog> animals = newArrayList<>(3);
animals.add(newDog("Falco", 4, false, false));
animals.add(newDog("Cassidy", 6, false, true));
TypeanimalsListType = newArrayList<Animal>() {}.getClass().getGenericSuperclass();
// Serialize and print resultSystem.out.println("\nAfter serialization:");
finalStringadaptedMarshalling = jsonb.toJson(animals, animalsListType);
System.out.println(adaptedMarshalling);
This task assumes creation of benchmark for all supported engines (JSONB, Jackson, Genson, Gson) on cold and warm engines.
The text was updated successfully, but these errors were encountered:
Create a benchmark for serialization of a List of 100 items. All list items are of the same type. There is an adapter registered for this type in JSONB engine.
Sample:
This task assumes creation of benchmark for all supported engines (JSONB, Jackson, Genson, Gson) on cold and warm engines.
The text was updated successfully, but these errors were encountered: