content: package com.alibaba.fastjson2.benchmark.eishay;
  
  import static com.alibaba.fastjson2.benchmark.JMH.BH;
  
  public class EishayParseBinaryTest {
      static final EishayParseBinary benchmark = new EishayParseBinary();
  
      static final int LOOP = 1000 * 1000 * 10;
  
      public static void jsonb() throws Exception {
          System.out.println("jsonb size " + EishayParseBinary.fastjson2JSONBBytes.length); // 348
          System.out.println();
  
          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("EishayParseBinary-jsonb millis : " + millis);
              // zulu8.58.0.13 : 305
              // zulu11.52.13 : 249
              // zulu17.32.13 : 245
  
              // reflect-zulu8.58.0.13 : 389 386
              // reflect-zulu11.52.13 : 336
              // reflect-zulu11.52.13 : 325
          }
      }
  
      public static void jsonbValid() throws Exception {
          System.out.println("jsonb size " + EishayParseBinary.fastjson2JSONBBytes.length); // 348
          System.out.println();
  
          for (int j = 0; j < 5; j++) {
              long start = System.currentTimeMillis();
              for (int i = 0; i < LOOP; ++i) {
                  benchmark.jsonbValid(BH);
              }
              long millis = System.currentTimeMillis() - start;
              System.out.println("EishayParseBinary-jsonbValid millis : " + millis);
              // zulu8.58.0.13 : 1836 1743 1635
              // zulu11.52.13 :
              // zulu17.32.13 :
          }
      }
  
      public static void kryo() throws Exception {
          System.out.println("kryo size " + EishayParseBinary.kryoBytes.length); //
          System.out.println();
  
          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("EishayParseBinary-kryo millis : " + millis);
              // zulu8.58.0.13 : 462
              // zulu11.52.13 :
              // zulu17.32.13 :
          }
      }
  
      public static void fastjson2UTF8Bytes() throws Exception {
          System.out.println("fastjson2UTF8Bytes size " + EishayParseBinary.fastjson2UTF8Bytes.length); //
          System.out.println();
  
          for (int j = 0; j < 5; j++) {
              long start = System.currentTimeMillis();
              for (int i = 0; i < LOOP; ++i) {
                  benchmark.fastjson2UTF8Bytes(BH);
              }
              long millis = System.currentTimeMillis() - start;
              System.out.println("EishayParseBinary-fastjson2UTF8Bytes millis : " + millis);
              // zulu8.58.0.13 : 4259
              // zulu11.52.13 :
              // zulu17.32.13 : 3840
          }
      }
  
      public static void main(String[] args) throws Exception {
  //        jsonb();
  //        jsonbValid();
  //        kryo();
          fastjson2UTF8Bytes();
      }
  }
  