System.out.println( "Totaltime Search = " + measureSearch );
}
public long measure(boolean plainLucene) throws Exception {
ThreadPoolExecutor threadPool = (ThreadPoolExecutor) Executors.newFixedThreadPool( SEARCH_THREADS );
threadPool.prestartAllCoreThreads();
CountDownLatch startSignal = new CountDownLatch(1);
List<SearcherThread> threadsList = new ArrayList<SearcherThread>( TOTAL_SEARCHES );
IndexSearcher indexSearcher = getNewSearcher();
for (int i = 0; i < TOTAL_SEARCHES; i++) {
// Create a thread and invoke it