}
private static void measureSpeed(String expr, int times, ExprNodeEvaluator eval, InspectableObject input, Object standardOutput) throws HiveException {
System.out.println("Evaluating " + expr + " for " + times + " times");
// evaluate on row
InspectableObject output = new InspectableObject();
long start = System.currentTimeMillis();
for (int i=0; i<times; i++) {
eval.evaluate(input.o, input.oi, output);
assertEquals(output.o, standardOutput);
}