diff --git a/liteflow-benchmark/liteflow-benchmark-common/pom.xml b/liteflow-benchmark/liteflow-benchmark-common/pom.xml new file mode 100644 index 000000000..2ca89408f --- /dev/null +++ b/liteflow-benchmark/liteflow-benchmark-common/pom.xml @@ -0,0 +1,15 @@ + + + + liteflow-benchmark + com.yomahub + ${revision} + ../pom.xml + + 4.0.0 + + liteflow-benchmark-common + + \ No newline at end of file diff --git a/liteflow-benchmark/liteflow-benchmark-common/src/test/resources/application.properties b/liteflow-benchmark/liteflow-benchmark-common/src/test/resources/application.properties new file mode 100644 index 000000000..55dc0b1ec --- /dev/null +++ b/liteflow-benchmark/liteflow-benchmark-common/src/test/resources/application.properties @@ -0,0 +1,2 @@ +liteflow.rule-source=flow.xml +liteflow.print-execution-log=false \ No newline at end of file diff --git a/liteflow-benchmark/liteflow-benchmark-common/src/test/resources/flow.xml b/liteflow-benchmark/liteflow-benchmark-common/src/test/resources/flow.xml new file mode 100644 index 000000000..ee2649be2 --- /dev/null +++ b/liteflow-benchmark/liteflow-benchmark-common/src/test/resources/flow.xml @@ -0,0 +1,55 @@ + + + + + + list = ListUtil.toList("a", "b", "c") + + List resultList = list.stream().map(s -> "hello," + s).collect(Collectors.toList()) + + defaultContext.setData("resultList", resultList) + + class Student { + int studentID + String studentName + } + + Student student = new Student() + student.studentID = 100301 + student.studentName = "张三" + defaultContext.setData("student", student) + + def a = 3 + def b = 2 + defaultContext.setData("s1", a * b) + ]]> + + + + + + + + + + + + + THEN(FOR(s2).DO(THEN(a, b, c, s1)), SWITCH(s3).TO(a,b)); + + \ No newline at end of file diff --git a/liteflow-benchmark/liteflow-benchmark-script-groovy/src/test/resources/application.properties b/liteflow-benchmark/liteflow-benchmark-script-groovy/src/test/resources/application.properties index 970b6d155..55dc0b1ec 100644 --- a/liteflow-benchmark/liteflow-benchmark-script-groovy/src/test/resources/application.properties +++ b/liteflow-benchmark/liteflow-benchmark-script-groovy/src/test/resources/application.properties @@ -1,3 +1,2 @@ liteflow.rule-source=flow.xml -liteflow.print-execution-log=false -liteflow.script-setting.javax-is-cache=false \ No newline at end of file +liteflow.print-execution-log=false \ No newline at end of file diff --git a/liteflow-benchmark/liteflow-benchmark-script-java/src/test/resources/application.properties b/liteflow-benchmark/liteflow-benchmark-script-java/src/test/resources/application.properties index 970b6d155..55dc0b1ec 100644 --- a/liteflow-benchmark/liteflow-benchmark-script-java/src/test/resources/application.properties +++ b/liteflow-benchmark/liteflow-benchmark-script-java/src/test/resources/application.properties @@ -1,3 +1,2 @@ liteflow.rule-source=flow.xml -liteflow.print-execution-log=false -liteflow.script-setting.javax-is-cache=false \ No newline at end of file +liteflow.print-execution-log=false \ No newline at end of file diff --git a/liteflow-benchmark/pom.xml b/liteflow-benchmark/pom.xml index 2cef30800..0d04a2078 100644 --- a/liteflow-benchmark/pom.xml +++ b/liteflow-benchmark/pom.xml @@ -46,7 +46,7 @@ liteflow-benchmark-script-javax liteflow-benchmark-script-java liteflow-benchmark-script-groovy - liteflow-benchmark-script-kotlin + liteflow-benchmark-common