Created
December 15, 2016 12:23
-
-
Save volkov/8fadf1425957542b7ca678e0d5f91cd1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PerfomanceTesting { | |
public static void main(String[] args) throws SQLException { | |
final TestDao testDao = new TestDao(); | |
try { | |
long start = System.currentTimeMillis(); | |
for (int i = 0; i < 1000; i++) { | |
testDao.doUpdate(); | |
} | |
System.out.println("update done in " + (System.currentTimeMillis() - start)); | |
} finally { | |
testDao.close(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment