@SuppressWarnings("deprecation")
  @Setup(Level.Invocation)
  public void buildResponse() {
    response =
        Response.builder()
            .status(200)
            .reason("OK")
            .request(Request.create(HttpMethod.GET, "/", Collections.emptyMap(), null, Util.UTF_8))
            .headers(Collections.emptyMap())
            .body(carsJson(Integer.parseInt(size)), Util.UTF_8)
            .build();
  }
This test shows up how fast different json array response processing implementations are.
benchmark/src/main/java/feign/benchmark/DecoderIteratorsBenchmark.java