1 22 public class InterceptedPOJO 23 { 24 public InterceptedPOJO() {} 25 26 public void noop() {} 27 28 public long foo; 29 30 private long bar; 31 32 public void incfield() 33 { 34 System.out.println("InterceptedPOJO inner field access"); 35 long start = System.currentTimeMillis(); 36 for (int i = 0; i < Benchmark.ITERATIONS; i++) 37 { 38 bar++; 39 } 40 System.out.println("InterceptedPOJO inner field access: " + (System.currentTimeMillis() - start)); 41 } 42 } 43 44 45 46 | Popular Tags |