public void benchmark(int repetitions,int mapSize) {
        String values = generateValues(mapSize);
        System.out.println("Ranking expression parsing");
        System.out.println("  warming up");
        rankingExpressionParserParse(1000, values, mapSize);
        long startTime = System.currentTimeMillis();
        System.out.println(  "starting ....");
        rankingExpressionParserParse(repetitions, values, mapSize);
        long totalTime = System.currentTimeMillis() - startTime;
        System.out.println("  Total time: " + totalTime + " ms, time per expression: " + (totalTime*1000/repetitions) + " microseconds");
    }
A benchmark of map parsing.
Expected time on Jon's mac: 200 microseconds per 1k size map.

@author bratseth
vespajlib/src/test/java/com/yahoo/text/MapParserMicroBenchmark.java