slachiewicz / caliper

Automatically exported from code.google.com/p/caliper
Apache License 2.0
0 stars 0 forks source link

Patch for /tutorial/Tutorial.java #258

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I added a main method so that new users know how to run their first Benchmarks. 
I copied the comment word for word from 
http://code.google.com/p/caliper/source/browse/caliper/src/main/java/com/google/
caliper/runner/CaliperMain.java?r=0df573e14d0c6193111c700839bcb5690c9b7510

Most people probably wouldn't see that comment unless they're tenacious like 
me; I couldn't figure out how to run a benchmark until I started clicking 
through the main code base.

Original issue reported on code.google.com by martin.j...@gmail.com on 5 Jun 2013 at 2:15

Attachments:

GoogleCodeExporter commented 9 years ago
That patch was necessary, but now HEAD has caught up to the new methodology.  
Now, you can just run CaliperMain with your benchmark class as the first 
argument.  No more main method proliferation.

Original comment by gak@google.com on 8 Jul 2013 at 5:50