content: package com.alibaba.fastjson2.benchmark.eishay;
  
  import static com.alibaba.fastjson2.benchmark.JMH.BH;
  
  public class EishayWriteBinaryArrayMappingTest {
      static final EishayWriteBinaryArrayMapping benchmark = new EishayWriteBinaryArrayMapping();
      static final int LOOP = 10_000_000;
  
      public static void kryo() throws Exception {
          System.out.println("kryoSize size " + benchmark.kryoSize()); // 213
  
          for (int j = 0; j < 5; j++) {
              long start = System.currentTimeMillis();
              for (int i = 0; i < LOOP; ++i) {
                  benchmark.kryo(BH);
              }
              long millis = System.currentTimeMillis() - start;
              System.out.println("EishayWriteBinaryArrayMapping-kryo millis : " + millis);
              // zulu8.62.0.19 : 396
              // zulu11.52.13 :
              // zulu17.32.13 :
          }
      }
  
      public static void jsonb() throws Exception {
          System.out.println("protobuf size " + benchmark.jsonbSize()); // 235
  
          for (int j = 0; j < 5; j++) {
              long start = System.currentTimeMillis();
              for (int i = 0; i < LOOP; ++i) {
                  benchmark.jsonb(BH);
              }
              long millis = System.currentTimeMillis() - start;
              System.out.println("EishayWriteBinaryArrayMapping-jsonb millis : " + millis);
              // zulu8.62.0.19 : 796
              // zulu11.52.13 :  782
              // zulu17.32.13 : 790 767 716 804
          }
      }
  
      public static void fury() throws Exception {
          System.out.println("fury size " + benchmark.furySize()); // 388
  
          for (int j = 0; j < 5; j++) {
              long start = System.currentTimeMillis();
              for (int i = 0; i < LOOP; ++i) {
                  benchmark.fury(BH);
              }
              long millis = System.currentTimeMillis() - start;
              System.out.println("EishayWriteBinaryArrayMapping-fury millis : " + millis);
              // zulu8.62.0.19 : 1551
              // zulu11.52.13 : 1126
              // zulu17.32.13 : 1058
          }
      }
  
      public static void protobuf() throws Exception {
          System.out.println("protobuf size " + benchmark.protobufSize()); // 235
  
          for (int j = 0; j < 5; j++) {
              long start = System.currentTimeMillis();
              for (int i = 0; i < LOOP; ++i) {
                  benchmark.protobuf(BH);
              }
              long millis = System.currentTimeMillis() - start;
              System.out.println("EishayWriteBinaryArrayMapping-protobuf millis : " + millis);
              // zulu8.58.0.13 : 508
              // zulu11.52.13 :
              // zulu17.32.13 :
          }
      }
  
      public static void main(String[] args) throws Exception {
          jsonb();
  //        fury();
  //        kryo();
  //        protobuf();
      }
  }
  