private final int accessResultFiveTimes(Result result) {
        // 8 sets, 8 gets
        int foundCount=0;
        if (null!=result.hits().get("firstTopLevel1"))
            foundCount++;
        if (null!=result.hits().get("secondTopLevel3"))
            foundCount++;
        if (null!=result.hits().get("group3hit5"))
            foundCount++;
        if (null!=result.hits().get("group1hit2"))
            foundCount++;
        if (null!=result.hits().get("group2hit4"))
            foundCount++;
        return foundCount;
    }
Tests the speed of accessing hits in the query by id

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