package org.libj.xquery.performance;

import org.junit.Test;

import static org.libj.xquery.Asserts.*;

public class TestBasicPerformance {
    @Test
    public void testLiteral() {
        assertRepeatedEvalPerSecond(" 1 ", 1000*1000*1000);
        assertRepeatedEvalPerSecond(" 's' ", 1000*1000*1000);
        assertRepeatedEvalPerSecond(" <x/> ", 1000*1000*100);
    }
    @Test
    public void testArithmeticExpression() {
        assertRepeatedEvalPerSecond(" 1 + 3 / 10 - 100 mod 4 ", 1000*1000*1000);
    }
}

@@ -289,32 +289,83 @@
 000*1000*1000);%0A
+    %7D%0A    @Test%0A    public void testLiteralXML() %7B%0A
         assertRe
@@ -407,16 +407,17 @@
 1000*100
+0
 );%0A    %7D

fix weird micro benchmark failure...