This file contains hidden or 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
| import javax.swing.*; | |
| import java.awt.*; | |
| /** | |
| * A Swing JFrame with sensible default settings. | |
| */ | |
| public class SimpleFrame extends JFrame { | |
| private static final int DEFAULT_WIDTH = 800; |
This file contains hidden or 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
| /** | |
| * Start of a framework for measuring perfromance and reporting the results. | |
| */ | |
| // TODO: Some tool for iterating through classes in source dirs and running the ones inheriting the performance test trait. | |
| // TODO: Refactor this to be unit test like instead with an overrideable setup method and reflection found test methods, this current approach seems clumsy to use | |
| final case class PerformanceProfiler[T]( subject : String ) { | |
| var warmupRounds = 5 | |
| var testRounds = 10 |