class EishayWriteStringNoneCache {
    static MediaContent mc;
    static {
        try {
            InputStream is = EishayWriteString.class.getClassLoader().getResourceAsStream("data/eishay.json");
            String str = IOUtils.toString(is, "UTF-8");

            ObjectReaderProvider provider = new ObjectReaderProvider(ObjectReaderCreator.INSTANCE);
            JSONReader.Context readContext = JSONFactory.createReadContext(provider);
            mc = JSON.parseObject(str, MediaContent.class, readContext);
        } catch (Throwable ex) {
            ex.printStackTrace();
        }
    }

    @Benchmark
    public void fastjson1(Blackhole bh) {
        SerializeConfig config = new SerializeConfig();
        bh.consume(com.alibaba.fastjson.JSON.toJSONString(mc, config));
    }

    @Benchmark
    public void fastjson2(Blackhole bh) {
        ObjectWriterProvider provider = new ObjectWriterProvider();
        bh.consume(JSON.toJSONString(mc, JSONFactory.createWriteContext(provider)));
    }

    @Benchmark
    public void fastjson2Mixin(Blackhole bh) {
        ObjectWriterProvider provider = new ObjectWriterProvider();
        provider.register(MediaContent.class, MediaContentMixin.objectWriter);
        provider.register(Media.class, MediaMixin.objectWriter);
        provider.register(Image.class, ImageMixin.objectWriter);
        bh.consume(JSON.toJSONString(mc, JSONFactory.createWriteContext(provider)));
    }

    @Benchmark
    public void jackson(Blackhole bh) throws Exception {
        ObjectMapper mapper = new ObjectMapper();
        bh.consume(mapper.writeValueAsString(mc));
    }

    //    @Benchmark
    public void wastjson(Blackhole bh) throws Exception {
        bh.consume(
                io.github.wycst.wast.json.JSON.toJsonString(mc)
        );
    }

    @Benchmark
    public void gson(Blackhole bh) throws Exception {
        Gson gson = new Gson();
        bh.consume(
                gson.toJson(mc)
        );
    }

    public static void main(String[] args) throws RunnerException {<FILL_FUNCTION_BODY>}
}

        Options options = new OptionsBuilder()
                .include(EishayWriteStringNoneCache.class.getName())
                .mode(Mode.Throughput)
                .warmupIterations(3)
                .timeUnit(TimeUnit.MILLISECONDS)
                .warmupIterations(3)
                .forks(1)
                .threads(16)
                .build();
        new Runner(options).run();
    
<no_super_class>