1617181920212223
// 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(); } }
545556575859606162
} private long l(int times) { long l1 = System.currentTimeMillis(); for (int i = 0; i < times; ++i) { new LegacyLifeCycle("foo", "bar").save(); } return System.currentTimeMillis() - l1; }