Java DumbFlops applet

This runs a speed test in its "paint" method.

The outer loop increases the number of repetitions for the inner loop until the inner loop has taken at least 10 seconds.

Each cycle in the inner loop is counted as two "flops", for one int-to-double conversion, one double multiplication and one double addition.

Click here for the source code.