// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.search.query.test; import com.yahoo.prelude.query.WeightedSetItem; import com.yahoo.search.Query; /** * @author bratseth */ public class QueryCloneMicroBenchmark { public void benchmark() { int runs = 10000; Query query = createQuery(); for (int i = 0; i<100000; i++) // yes, this much is needed query.clone(); long startTime = System.currentTimeMillis(); for (int i = 0; i