Code for measuring performance of lucene 4.5