Browse Source

feature #IASS9Z 新的java脚本插件,支持java8~java17的所有语法特性

everywhere.z 7 tháng trước cách đây
mục cha
commit
c57d327a1e

+ 5 - 4
liteflow-benchmark/liteflow-benchmark-script-javax/src/test/java/com/yomahub/liteflow/benchmark/ScriptJavaxBenchmark.java

@@ -42,12 +42,13 @@ public class ScriptJavaxBenchmark {
         applicationContext.close();
     }
 
-    /*@Benchmark
+    //普通执行
+    @Benchmark
     public  void test1(){
         flowExecutor.execute2Resp("chain1");
-    }*/
+    }
 
-    //每次编译一样的的script性能
+    //LF动态创建组件和规则,并执行
     @Benchmark
     public  void test2(){
         String scriptContent = ResourceUtil.readUtf8Str("classpath:javaxScript.java");
@@ -66,7 +67,7 @@ public class ScriptJavaxBenchmark {
                 .mode(Mode.Throughput)
                 .warmupIterations(1)//预热次数
                 .measurementIterations(3)//执行次数
-                .measurementTime(new TimeValue(30, TimeUnit.SECONDS))//每次执行多少时间
+                .measurementTime(new TimeValue(10, TimeUnit.SECONDS))//每次执行多少时间
                 .threads(300)//多少个线程
                 .forks(1)//多少个进程
                 .timeUnit(TimeUnit.SECONDS)

+ 1 - 1
liteflow-benchmark/liteflow-benchmark-script-javax/src/test/resources/application.properties

@@ -1,3 +1,3 @@
 liteflow.rule-source=flow.xml
-liteflow.print-execution-log=true
+liteflow.print-execution-log=false
 liteflow.script-setting.javax-is-cache=false

+ 1 - 1
pom.xml

@@ -77,7 +77,7 @@
 		<redisson.version>3.21.0</redisson.version>
 		<janino.version>3.1.12</janino.version>
 		<kotlin.version>1.9.23</kotlin.version>
-		<liquor.version>1.3.5-SNAPSHOT</liquor.version>
+		<liquor.version>1.3.6</liquor.version>
 	</properties>
 
 	<dependencyManagement>