help with first simple benchmark test

21 views
Skip to first unread message

gitted

unread,
Oct 3, 2013, 10:47:46 PM10/3/13
to cal...@googlegroups.com
So I have a simple benchmark like this:

public class JustATest1 extends Benchmark{

    @Param({"10", "100", "1000", "10000"}) private int length;


    public void timeNanoTime(int reps) {
        for (int i = 0; i < reps; i++) {
            System.nanoTime();
        }
    }

    public static void main(String[] args) {
        CaliperMain.main(JustATest1.class, args);
    }
}


This benchmark is inside a maven module, in a multi-maven project that i have using IntelliJ version 12


Now how do I go about running this via IntelliJ and/or command line?   I added caliper to my pom.xml so I am not exaclty sure where the .jar will be either.



Reply all
Reply to author
Forward
0 new messages