public void run() {
        int foundCount=0;

        // Warm-up
        out("Warming up...");
        Result result=createResult();
        for (int i=0; i<10*1000; i++)
            foundCount+=accessResultFiveTimes(result);
        foundCount=0;

        long startTime=System.currentTimeMillis();
        out("Running...");
        for (int i=0; i<200*1000; i++)
            foundCount+=accessResultFiveTimes(result);
        out("Successfully looked up " + foundCount + " hits");
        long endTime=System.currentTimeMillis();
        out("Accessing a result 1.000.000 times took " + (endTime-startTime) + " ms");
    }
Tests the speed of accessing hits in the query by id

@author bratseth
container-search/src/test/java/com/yahoo/search/test/ResultBenchmark.java