Benchmark using a Jframe window and a loop