Search in sources :

Example 1 with JacksonCodec

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();
}
Also used : JacksonCodec(io.vertx.core.json.jackson.JacksonCodec) DatabindCodec(io.vertx.core.json.jackson.DatabindCodec)

Example 2 with JacksonCodec

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();
}
Also used : JacksonCodec(io.vertx.core.json.jackson.JacksonCodec) DatabindCodec(io.vertx.core.json.jackson.DatabindCodec)

Aggregations

DatabindCodec (io.vertx.core.json.jackson.DatabindCodec)2 JacksonCodec (io.vertx.core.json.jackson.JacksonCodec)2