Testing a Java method's execution time and memory consumption via JUnit
1889
How do I write a correct micro-benchmark in Java?
148856
JUnit test for System.out.println()
128212
Performance of using static methods vs instantiating the class containing the methods
16556
How do you performance test JavaScript code?
68196
Measuring RAM usage of a program
26186
Should I use Java's String.format() if performance is important?
145348
Java: How to test methods that call System.exit()?
119905
Mocking static methods with Mockito
16882
How can I write a unit test to determine whether an object can be garbage collected?
574
Can a java application allocate more memory than specified by jvm startup parameters?
119560
How to test void method with Junit testing tools?
73880
JUnit testing with simulated user input
91833
Unit testing a multithreaded application?
11381
Streaming`LazyList`Testing may have a leak
90296
Should I test private methods or only public ones?
150772
JUnit Testing Exceptions
71855
How do I Dynamically create a Test Suite in JUnit 4?