编辑代码

class Main {
	public static void main(String[] args) {
        //JSRUN引擎2.0,支持多达30种语言在线运行,全仿真在线交互输入输出。
		String dayStr = "20241219";
		long start = System.currentTimeMillis();
        for (int i1 = 0; i1 < 11111111; i1++) {
            int v = 0;
            int l = dayStr.length();
            for (int i = 0; i < l; i++) {
                char c = dayStr.charAt(i);
                v = v * 10 + c - 48;
            }
        }
        long during = System.currentTimeMillis() - start;
        System.out.println("FastString.parseInt: " + during);
	}
}