class EishayFuryWriteNoneCache {
    static final Class[] classes = new Class[10_000];
    static final Object[] objects = new Object[classes.length];
    static int index;

    static io.fury.ThreadSafeFury fury = io.fury.Fury.builder()
            .withLanguage(io.fury.config.Language.JAVA)
            .withRefTracking(true)
            .buildThreadSafeFury();

    static JSONWriter.Feature[] features = {
            JSONWriter.Feature.WriteClassName,
            JSONWriter.Feature.IgnoreNoneSerializable,
            JSONWriter.Feature.FieldBased,
            JSONWriter.Feature.ReferenceDetection,
            JSONWriter.Feature.WriteNulls,
            JSONWriter.Feature.NotWriteDefaultValue,
            JSONWriter.Feature.NotWriteHashMapArrayListClassName,
            JSONWriter.Feature.BeanToArray
    };
    static JSONWriter.Context context = new JSONWriter.Context(
            JSONFactory.getDefaultObjectWriterProvider(), features
    );

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

            DynamicClassLoader classLoader = DynamicClassLoader.getInstance();
            EishayClassGen gen = new EishayClassGen();
            for (int i = 0; i < classes.length; i++) {
                Class objectClass = gen.genMedia(classLoader, "com/alibaba/fastjson2/benchmark/eishay" + i);
                classes[i] = objectClass;
                objects[i] = JSONReader.of(str).read(objectClass);
            }
        } catch (Throwable ex) {
            ex.printStackTrace();
        }
    }

    @Benchmark
    public void fastjson2JSONB(Blackhole bh) {
        Object object = objects[(index++) % objects.length];
        bh.consume(
                JSONB.toBytes(object, context)
        );
    }

    @Benchmark
    public void fury(Blackhole bh) {<FILL_FUNCTION_BODY>}

    public static void main(String[] args) throws RunnerException {
        Options options = new OptionsBuilder()
                .include(EishayFuryWriteNoneCache.class.getName())
                .mode(Mode.Throughput)
                .timeUnit(TimeUnit.MILLISECONDS)
                .warmupIterations(3)
                .forks(1)
                .threads(16)
                .build();
        new Runner(options).run();
    }
}

        Object object = objects[(index++) % objects.length];
        byte[] bytes = fury.serialize(object);
        bh.consume(bytes);
    
<no_super_class>