Skip to content

Instantly share code, notes, and snippets.

View TheLivan's full-sized avatar
🎯
Focusing

Kirill Epifanov TheLivan

🎯
Focusing
View GitHub Profile
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();
@TheLivan
TheLivan / test.java
Created June 5, 2024 14:45
Test bitwise and logical
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;