This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public final class Main { | |
public static void main(String[] args) { | |
long t0, t1, t2, t3; | |
t0 = System.currentTimeMillis(); | |
boolean a = false, b = false, c = true; | |
for (int i = 0; i < 700000; i++) { | |
if (a || b || c) { System.currentTimeMillis(); } | |
} | |
t1 = System.currentTimeMillis(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public final class Main { | |
public static void main(String[] args) { | |
boolean[] data = new boolean[10000]; | |
java.util.Random r = new java.util.Random(0); | |
for (int i = 0; i < data.length; i++) { | |
data[i] = r.nextInt(2) > 0; | |
} | |
long t0, t1, t2, t3, t4, t5, t6, tEnd; | |
int sz1 = 100; |