content: package com.alibaba.fastjson2.benchmark.jjb;
  
  import static com.alibaba.fastjson2.benchmark.JMH.BH;
  
  public class UsersParseUTF8BytesTest {
      static final UsersParseUTF8Bytes benchmark = new UsersParseUTF8Bytes();
  
      public static void fastjson2() {
          for (int j = 0; j < 5; j++) {
              long start = System.currentTimeMillis();
              for (int i = 0; i < 1000 * 1000; ++i) {
                  benchmark.fastjson2(BH);
              }
              long millis = System.currentTimeMillis() - start;
              System.out.println("fastjson2 millis : " + millis);
              // zulu17.40.19 : 2198 2189 1633 1576 1496
          }
      }
  
      public static void fastjson2_str() {
          for (int j = 0; j < 5; j++) {
              long start = System.currentTimeMillis();
              for (int i = 0; i < 1000 * 1000; ++i) {
                  benchmark.fastjson2_str(BH);
              }
              long millis = System.currentTimeMillis() - start;
              System.out.println("fastjson2 millis : " + millis);
              // zulu17.40.19 : 1479
          }
      }
  
      public static void fastjson2_chars() {
          for (int j = 0; j < 5; j++) {
              long start = System.currentTimeMillis();
              for (int i = 0; i < 1000 * 1000; ++i) {
                  benchmark.fastjson2_chars(BH);
              }
              long millis = System.currentTimeMillis() - start;
              System.out.println("fastjson2 millis : " + millis);
              // zulu17.40.19 :
          }
      }
  
      public static void wast() {
          for (int j = 0; j < 5; j++) {
              long start = System.currentTimeMillis();
              for (int i = 0; i < 1000 * 1000; ++i) {
                  benchmark.wast(BH);
              }
              long millis = System.currentTimeMillis() - start;
              System.out.println("wast millis : " + millis);
              // zulu17.40.19 :
          }
      }
  
      public static void dsljson() throws Exception {
          for (int j = 0; j < 5; j++) {
              long start = System.currentTimeMillis();
              for (int i = 0; i < 1000 * 1000; ++i) {
                  benchmark.dsljson(BH);
              }
              long millis = System.currentTimeMillis() - start;
              System.out.println("dsljson millis : " + millis);
              // zulu17.40.19 : 2191
          }
      }
  
      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("jackson millis : " + millis);
          }
      }
  
      public static void main(String[] args) throws Exception {
          fastjson2();
  //        fastjson2_str();
  //        fastjson2_chars();
  //        wast();
  //        dsljson();
  //        jackson();
      }
  }
  