1314151617181920212223
@Before public void setup() { // warm up for (int i = 0; i < 5000; ++i) { new NewLifeCycle("foo", "bar").save(); } for (int i = 0; i < 5000; ++i) { new LegacyLifeCycle("foo", "bar").save(); } }
626364656667686970
} private long n(int times) { long l1 = System.currentTimeMillis(); for (int i = 0; i < times; ++i) { new NewLifeCycle("foo", "bar").save(); } return System.currentTimeMillis() - l1; }