private final int createAndAccessQuery(int i) {
        // 8 sets, 8 gets

        Query query=new Query("?query=test&hits=10&presentation.bolding=true&model.type=all");
        query.properties().set("model.defaultIndex","title");
        query.properties().set("string1","value1:" + i);
        query.properties().set("string2","value2:" + i);
        query.properties().set("string3","value3:" + i);
        int result=((String)query.properties().get("string1")).length();
        result+=((String)query.properties().get("string2")).length();
        result+=((String)query.properties().get("string3")).length();
        result+=((String)query.properties().get("model.defaultIndex")).length();

        Query clone=query.clone();
        result+=((String)query.properties().get("string1")).length();
        result+=((String)query.properties().get("string2")).length();
        result+=((String)query.properties().get("string3")).length();
        result+=((String)clone.properties().get("model.defaultIndex")).length();
        return result;
    }
Tests the speed of accessing the query

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