@Test
    void benchQueryCreation() throws InterruptedException {
        QueryProfile p = new QueryProfile("test");
        p.setDimensions(new String[]{"x", "y"});
        p.set("clustering.something", "bar", null);
        p.set("clustering.something", "bar", new String[]{"x1", "y1"}, null);
        p.freeze();
        CompiledQueryProfile cqp = p.compile(null);
        var httpRequest = HttpRequest.createTestRequest("?x=x1&y=y1&query=bar&clustering.timeline.kano=tur&" +
                "clustering.enable=true&clustering.timeline.bucketspec=-" +
                "7d/3h&clustering.timeline.tophit=false&clustering.timeli" +
                "ne=true", Method.GET);
        for (int i = 0; i < 30000; i++) {
            Query q = new Query(httpRequest, cqp);
            assertTrue(q.properties().getBoolean(CompoundName.from("clustering.timeline"), false));
        }
        Thread.sleep(2000);
        long start = System.nanoTime();
        for (int i = 0; i < 100000; i++) {
            Query q = new Query(httpRequest, cqp);
            assertTrue(q.properties().getBoolean(CompoundName.from("clustering.timeline"), false));
        }
        long now = System.nanoTime();
        System.out.println("Duration = " + (now - start)/1_000_000 + " ms");
    }
Tests having both an explicit reference and an override
container-search/src/test/java/com/yahoo/search/query/profile/test/QueryProfileTestCase.java