mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-06-11 03:46:56 +08:00
feature #IASS9Z 新的java脚本插件,支持java8~java17的所有语法特性
This commit is contained in:
@@ -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,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
|
||||
Reference in New Issue
Block a user