private final double nativeExpression(Context context) {
        double r;
        if (context.get("i").asDouble()>35) {
            if (context.get("i").asDouble()>context.get("one").asDouble()) {
                if (context.get("i").asDouble()>=670)
                    r=4;
                else
                    r=8;
            }
            else {
                if (context.get("i").asDouble()>8000)
                    r=5;
                else
                    r=3;
            }
        }
        else {
            if (context.get("i").asDouble()==478)
                r=90;
            else
                r=91;
        }
        return r*10;
    }
Two small benchmarks of ranking expression evaluation

@author bratseth
searchlib/src/test/java/com/yahoo/searchlib/rankingexpression/evaluation/EvaluationBenchmark.java