use of io.vertx.core.json.jackson.JacksonCodec in project vert.x by eclipse.
the class JsonEncodeBenchmark method setup.
@Setup
public void setup() {
ClassLoader classLoader = getClass().getClassLoader();
small = loadJson(classLoader.getResource("small_bench.json"));
wide = loadJson(classLoader.getResource("wide_bench.json"));
deep = loadJson(classLoader.getResource("deep_bench.json"));
jacksonCodec = new JacksonCodec();
databindCodec = new DatabindCodec();
}
use of io.vertx.core.json.jackson.JacksonCodec in project vert.x by eclipse.
the class JsonDecodeBenchmark method setup.
@Setup
public void setup() {
small = loadJsonAsBuffer("small_bench.json");
wide = loadJsonAsBuffer("wide_bench.json");
deep = loadJsonAsBuffer("deep_bench.json");
smallString = small.toString();
wideString = wide.toString();
deepString = deep.toString();
jacksonCodec = new JacksonCodec();
databindCodec = new DatabindCodec();
}
Aggregations