!752 sclass A { int a = 1, b = 2, c = 3, d = 4, e = 5, f = 6, g = 7, h = 8; } sclass B { int a = 1, b = 2, c = 3, d = 4, e = 5, f = 6, g = 7, h = 8; int i = 9, j = 10, k = 11, l = 12, m = 13, n = 14; } static final long rep = 1000000; p { twice { for (Class c : ll(A, B)) { time { for (long j = 0; j < rep; j++) c.getDeclaredFields(); } print(iterationsPerSecond(rep) + " getDeclaredFields/s"); time { for (long j = 0; j < rep; j++) getDeclaredFields_cached(c); } print(iterationsPerSecond(rep) + " getDeclaredFields_cached/s"); } } }