content: package com.alibaba.fastjson2.benchmark.primitves;
  
  import static com.alibaba.fastjson2.benchmark.JMH.BH;
  
  public class BigInteger20Test {
      static final BigInteger20 benchmark = new BigInteger20();
  
      public static void fastjson2() {
          for (int j = 0; j < 10; j++) {
              long start = System.currentTimeMillis();
              for (int i = 0; i < 1000 * 1000; ++i) {
                  benchmark.fastjson2(BH);
              }
              long millis = System.currentTimeMillis() - start;
              System.out.println("BigInteger20-fastjson2 : " + millis);
  
              // zulu8.68.0.21 : 367 246
              // zulu11.52.13 :
              // zulu17.32.13 :
          }
      }
  
      public static void fastjson2_array_bytes() {
          for (int j = 0; j < 10; j++) {
              long start = System.currentTimeMillis();
              for (int i = 0; i < 1000 * 1000; ++i) {
                  benchmark.fastjson2_array_bytes(BH);
              }
              long millis = System.currentTimeMillis() - start;
              System.out.println("BigInteger20-fastjson2_array_bytes : " + millis);
  
              // zulu8.68.0.21 : 1166
              // zulu11.52.13 :
              // zulu17.32.13 :
          }
      }
  
      public static void jsonb() {
          for (int j = 0; j < 10; j++) {
              long start = System.currentTimeMillis();
              for (int i = 0; i < 1000 * 1000; ++i) {
                  benchmark.jsonb(BH);
              }
              long millis = System.currentTimeMillis() - start;
              System.out.println("BigInteger20-jsonb : " + millis);
  
              // zulu8.62.0.19 : 280
              // zulu11.52.13 :
              // zulu17.40.19 :
          }
      }
  
      public static void jackson() throws Exception {
          for (int j = 0; j < 10; j++) {
              long start = System.currentTimeMillis();
              for (int i = 0; i < 1000 * 1000; ++i) {
                  benchmark.jackson(BH);
              }
              long millis = System.currentTimeMillis() - start;
              System.out.println("BigInteger20-jackson : " + millis);
              // zulu8.62.0.19 : 1150
              // zulu11.52.13 :
              // zulu17.32.13 :
          }
      }
  
      public static void wastjson() throws Exception {
          for (int j = 0; j < 10; j++) {
              long start = System.currentTimeMillis();
              for (int i = 0; i < 1000 * 1000; ++i) {
                  benchmark.wastjson(BH);
              }
              long millis = System.currentTimeMillis() - start;
              System.out.println("BigInteger20-wastjson : " + millis);
              // zulu8.62.0.19 : 1104
              // zulu11.52.13 :
              // zulu17.32.13 :
          }
      }
  
      public static void main(String[] args) throws Exception {
  //        fastjson2();
  //        fastjson2_array_bytes();
          jsonb();
  //        jackson();
  //        wastjson();
      }
  }
  