ProfileExample -- assessing the speed of some
Math class methods, in comparison to each other and to
some baseline methods that do very little.
To see this example in action:
Compile the Java source file, ProfileExample.java:
javac ProfileExample.java
Run the class, using the -prof switch:
java -prof ProfileExample
Inspect the resulting java.prof file with your
favorite text editor.