This is an automated email from the ASF dual-hosted git repository.
liubao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-samples.git
The following commit(s) were added to refs/heads/master by this push:
new dbed3ae add 1.3.11 and test results (#126)
dbed3ae is described below
commit dbed3ae78f293807a4390c2ea2f175c08ba3793e
Author: liubao68 <[email protected]>
AuthorDate: Thu Nov 16 10:40:42 2023 +0800
add 1.3.11 and test results (#126)
---
java-chassis-benchmark/README.md | 33 +++++++++
.../basic-1.3.x/consumer/pom.xml | 52 +++++++++++++++
.../servicecomb/samples/ConsumerApplication.java} | 14 ++--
.../servicecomb/samples/ConsumerController.java} | 35 ++++------
.../servicecomb/samples/ProviderService.java} | 26 +-------
.../consumer/src/main/resources/application.yml | 17 +++--
.../consumer/src/main/resources/log4j2.xml | 71 ++++++++++++++++++++
java-chassis-benchmark/basic-1.3.x/gateway/pom.xml | 55 +++++++++++++++
.../servicecomb/samples/GatewayApplication.java} | 14 ++--
.../gateway/src/main/resources/application.yml | 16 +++--
.../gateway/src/main/resources/log4j2.xml | 71 ++++++++++++++++++++
java-chassis-benchmark/basic-1.3.x/pom.xml | 78 ++++++++++++++++++++++
.../basic-1.3.x/provider/pom.xml | 56 ++++++++++++++++
.../servicecomb/samples/ProviderApplication.java} | 14 ++--
.../servicecomb/samples/ProviderController.java} | 34 ++++------
.../provider/src/main/resources/application.yml | 15 +++--
.../provider/src/main/resources/log4j2.xml | 71 ++++++++++++++++++++
.../consumer/src/main/resources/application.yml | 3 +
.../gateway/src/main/resources/application.yml | 3 +
.../provider/src/main/resources/application.yml | 2 +
.../consumer/src/main/resources/application.yml | 3 +
.../gateway/src/main/resources/application.yml | 3 +
.../provider/src/main/resources/application.yml | 3 +
java-chassis-benchmark/pom.xml | 15 +++++
.../servicecomb/samples/TestCaseService.java | 3 +-
.../servicecomb/samples/TestToolApplication.java | 12 ++++
26 files changed, 602 insertions(+), 117 deletions(-)
diff --git a/java-chassis-benchmark/README.md b/java-chassis-benchmark/README.md
index e69de29..bac3b8e 100644
--- a/java-chassis-benchmark/README.md
+++ b/java-chassis-benchmark/README.md
@@ -0,0 +1,33 @@
+* 2023-11-16
+
+>>> Access Log not enabled
+
+| 版本 | 数据单位 | 等待时间 | 线程数 | 执行次数 | 执行时间 | 平均时延 |
+|--------|------|------|-----|------|--------|------|
+| 3.0.0 | 1 | 0 | 10 | 1000 | 7293 | 7 |
+| 3.0.0 | 100 | 0 | 10 | 1000 | 12971 | 12 |
+| 3.0.0 | 1000 | 0 | 10 | 1000 | 73123 | 71 |
+| 3.0.0 | 1 | 10 | 10 | 1000 | 15872 | 15 |
+| 3.0.0 | 100 | 10 | 10 | 1000 | 18565 | 18 |
+| 3.0.0 | 1000 | 10 | 10 | 1000 | 73655 | 72 |
+| 3.0.0 | 1 | 100 | 10 | 1000 | 104255 | 104 |
+| 3.0.0 | 100 | 100 | 10 | 1000 | 106170 | 106 |
+| 3.0.0 | 1000 | 100 | 10 | 1000 | 142257 | 141 |
+| 2.8.12 | 1 | 0 | 10 | 1000 | 7053 | 6 |
+| 2.8.12 | 100 | 0 | 10 | 1000 | 12077 | 11 |
+| 2.8.12 | 1000 | 0 | 10 | 1000 | 74395 | 72 |
+| 2.8.12 | 1 | 10 | 10 | 1000 | 15243 | 15 |
+| 2.8.12 | 100 | 10 | 10 | 1000 | 20000 | 19 |
+| 2.8.12 | 1000 | 10 | 10 | 1000 | 77241 | 76 |
+| 2.8.12 | 1 | 100 | 10 | 1000 | 103627 | 103 |
+| 2.8.12 | 100 | 100 | 10 | 1000 | 105355 | 105 |
+| 2.8.12 | 1000 | 100 | 10 | 1000 | 125475 | 125 |
+| 1.3.11 | 1 | 0 | 10 | 1000 | 8955 | 8 |
+| 1.3.11 | 100 | 0 | 10 | 1000 | 11821 | 11 |
+| 1.3.11 | 1000 | 0 | 10 | 1000 | 55996 | 55 |
+| 1.3.11 | 1 | 10 | 10 | 1000 | 17524 | 17 |
+| 1.3.11 | 100 | 10 | 10 | 1000 | 25360 | 25 |
+| 1.3.11 | 1000 | 10 | 10 | 1000 | 53831 | 53 |
+| 1.3.11 | 1 | 100 | 10 | 1000 | 107746 | 107 |
+| 1.3.11 | 100 | 100 | 10 | 1000 | 111357 | 110 |
+| 1.3.11 | 1000 | 100 | 10 | 1000 | 138234 | 137 |
diff --git a/java-chassis-benchmark/basic-1.3.x/consumer/pom.xml
b/java-chassis-benchmark/basic-1.3.x/consumer/pom.xml
new file mode 100644
index 0000000..83796e6
--- /dev/null
+++ b/java-chassis-benchmark/basic-1.3.x/consumer/pom.xml
@@ -0,0 +1,52 @@
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one or more
+ ~ contributor license agreements. See the NOTICE file distributed with
+ ~ this work for additional information regarding copyright ownership.
+ ~ The ASF licenses this file to You under the Apache License, Version 2.0
+ ~ (the "License"); you may not use this file except in compliance with
+ ~ the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.servicecomb.benchmark</groupId>
+ <artifactId>basic-application-1.3.x</artifactId>
+ <version>3.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>basic-consumer-1.3.x</artifactId>
+ <packaging>jar</packaging>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.servicecomb</groupId>
+ <artifactId>spring-boot2-starter-standalone</artifactId>
+ <exclusions>
+ <exclusion>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-starter-logging</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-maven-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+</project>
\ No newline at end of file
diff --git
a/java-chassis-benchmark/test-tool/src/main/java/org/apache/servicecomb/samples/TestToolApplication.java
b/java-chassis-benchmark/basic-1.3.x/consumer/src/main/java/org/apache/servicecomb/samples/ConsumerApplication.java
similarity index 79%
copy from
java-chassis-benchmark/test-tool/src/main/java/org/apache/servicecomb/samples/TestToolApplication.java
copy to
java-chassis-benchmark/basic-1.3.x/consumer/src/main/java/org/apache/servicecomb/samples/ConsumerApplication.java
index df85396..eb7abd8 100644
---
a/java-chassis-benchmark/test-tool/src/main/java/org/apache/servicecomb/samples/TestToolApplication.java
+++
b/java-chassis-benchmark/basic-1.3.x/consumer/src/main/java/org/apache/servicecomb/samples/ConsumerApplication.java
@@ -17,28 +17,22 @@
package org.apache.servicecomb.samples;
-import org.apache.servicecomb.foundation.common.utils.BeanUtils;
+import org.apache.servicecomb.springboot2.starter.EnableServiceComb;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
@SpringBootApplication
-public class TestToolApplication {
+@EnableServiceComb
+public class ConsumerApplication {
public static void main(String[] args) throws Exception {
try {
new SpringApplicationBuilder()
.web(WebApplicationType.NONE)
- .sources(TestToolApplication.class)
+ .sources(ConsumerApplication.class)
.run(args);
-
- runTests();
} catch (Exception e) {
e.printStackTrace();
}
}
-
- private static void runTests() throws Exception {
- TestCaseService testCaseService = BeanUtils.getBean(TestCaseService.class);
- testCaseService.run(10, 1000, 0, 1);
- }
}
diff --git
a/java-chassis-benchmark/test-tool/src/main/java/org/apache/servicecomb/samples/TestToolApplication.java
b/java-chassis-benchmark/basic-1.3.x/consumer/src/main/java/org/apache/servicecomb/samples/ConsumerController.java
similarity index 51%
copy from
java-chassis-benchmark/test-tool/src/main/java/org/apache/servicecomb/samples/TestToolApplication.java
copy to
java-chassis-benchmark/basic-1.3.x/consumer/src/main/java/org/apache/servicecomb/samples/ConsumerController.java
index df85396..b23a0e6 100644
---
a/java-chassis-benchmark/test-tool/src/main/java/org/apache/servicecomb/samples/TestToolApplication.java
+++
b/java-chassis-benchmark/basic-1.3.x/consumer/src/main/java/org/apache/servicecomb/samples/ConsumerController.java
@@ -17,28 +17,21 @@
package org.apache.servicecomb.samples;
-import org.apache.servicecomb.foundation.common.utils.BeanUtils;
-import org.springframework.boot.WebApplicationType;
-import org.springframework.boot.autoconfigure.SpringBootApplication;
-import org.springframework.boot.builder.SpringApplicationBuilder;
+import org.apache.servicecomb.provider.pojo.RpcReference;
+import org.apache.servicecomb.provider.rest.common.RestSchema;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestHeader;
+import org.springframework.web.bind.annotation.RequestMapping;
-@SpringBootApplication
-public class TestToolApplication {
- public static void main(String[] args) throws Exception {
- try {
- new SpringApplicationBuilder()
- .web(WebApplicationType.NONE)
- .sources(TestToolApplication.class)
- .run(args);
+@RestSchema(schemaId = "ConsumerController")
+@RequestMapping(path = "/")
+public class ConsumerController {
+ @RpcReference(schemaId = "ProviderController", microserviceName = "provider")
+ private ProviderService providerService;
- runTests();
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- private static void runTests() throws Exception {
- TestCaseService testCaseService = BeanUtils.getBean(TestCaseService.class);
- testCaseService.run(10, 1000, 0, 1);
+ @PostMapping("/benchmark")
+ public DataModel sayHello(@RequestHeader("wait") int wait, @RequestBody
DataModel dataModel) throws Exception {
+ return providerService.sayHello(wait, dataModel);
}
}
diff --git
a/java-chassis-benchmark/test-tool/src/main/java/org/apache/servicecomb/samples/TestToolApplication.java
b/java-chassis-benchmark/basic-1.3.x/consumer/src/main/java/org/apache/servicecomb/samples/ProviderService.java
similarity index 51%
copy from
java-chassis-benchmark/test-tool/src/main/java/org/apache/servicecomb/samples/TestToolApplication.java
copy to
java-chassis-benchmark/basic-1.3.x/consumer/src/main/java/org/apache/servicecomb/samples/ProviderService.java
index df85396..00d560e 100644
---
a/java-chassis-benchmark/test-tool/src/main/java/org/apache/servicecomb/samples/TestToolApplication.java
+++
b/java-chassis-benchmark/basic-1.3.x/consumer/src/main/java/org/apache/servicecomb/samples/ProviderService.java
@@ -17,28 +17,6 @@
package org.apache.servicecomb.samples;
-import org.apache.servicecomb.foundation.common.utils.BeanUtils;
-import org.springframework.boot.WebApplicationType;
-import org.springframework.boot.autoconfigure.SpringBootApplication;
-import org.springframework.boot.builder.SpringApplicationBuilder;
-
-@SpringBootApplication
-public class TestToolApplication {
- public static void main(String[] args) throws Exception {
- try {
- new SpringApplicationBuilder()
- .web(WebApplicationType.NONE)
- .sources(TestToolApplication.class)
- .run(args);
-
- runTests();
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- private static void runTests() throws Exception {
- TestCaseService testCaseService = BeanUtils.getBean(TestCaseService.class);
- testCaseService.run(10, 1000, 0, 1);
- }
+public interface ProviderService {
+ DataModel sayHello(int wait, DataModel dataModel);
}
diff --git
a/java-chassis-benchmark/basic-2.8.x/consumer/src/main/resources/application.yml
b/java-chassis-benchmark/basic-1.3.x/consumer/src/main/resources/application.yml
similarity index 87%
copy from
java-chassis-benchmark/basic-2.8.x/consumer/src/main/resources/application.yml
copy to
java-chassis-benchmark/basic-1.3.x/consumer/src/main/resources/application.yml
index 5401829..ec9b0b2 100644
---
a/java-chassis-benchmark/basic-2.8.x/consumer/src/main/resources/application.yml
+++
b/java-chassis-benchmark/basic-1.3.x/consumer/src/main/resources/application.yml
@@ -15,14 +15,17 @@
## See the License for the specific language governing permissions and
## limitations under the License.
## ---------------------------------------------------------------------------
-servicecomb:
- service:
- application: basic-application
- name: consumer
- version: 0.0.1
+APPLICATION_ID: basic-application
+
+service_description:
+ version: 0.0.1
+ name: consumer
+servicecomb:
rest:
address: 0.0.0.0:9092
- registry:
- address: http://localhost:30100
+ service:
+ registry:
+ address: http://localhost:30100
+
diff --git
a/java-chassis-benchmark/basic-1.3.x/consumer/src/main/resources/log4j2.xml
b/java-chassis-benchmark/basic-1.3.x/consumer/src/main/resources/log4j2.xml
new file mode 100644
index 0000000..e9e27f1
--- /dev/null
+++ b/java-chassis-benchmark/basic-1.3.x/consumer/src/main/resources/log4j2.xml
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+ http://www.apache.org/licenses/LICENSE-2.0
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<Configuration>
+ <Properties>
+ <property name="FILE_PATH" value="./logs/consumer"/>
+ </Properties>
+
+ <Appenders>
+ <Console name="Console" target="SYSTEM_OUT">
+ <PatternLayout pattern="%d [%p][%t][%c:%L] %m%n"/>
+ </Console>
+
+ <RollingFile name="AccessLog" fileName="${FILE_PATH}/access.log"
+ filePattern="${FILE_PATH}/access-%d{yyyy-MM-dd}_%i.log.gz">
+ <PatternLayout pattern="%d [%t] %m%n"/>
+ <Policies>
+ <SizeBasedTriggeringPolicy size="20MB"/>
+ </Policies>
+ <DefaultRolloverStrategy max="100"/>
+ </RollingFile>
+
+ <RollingFile name="MetricsLog" fileName="${FILE_PATH}/metrics.log"
+ filePattern="${FILE_PATH}/metrics-%d{yyyy-MM-dd}_%i.log.gz">
+ <PatternLayout pattern="%d [%t] %m%n"/>
+ <Policies>
+ <SizeBasedTriggeringPolicy size="20MB"/>
+ </Policies>
+ <DefaultRolloverStrategy max="100"/>
+ </RollingFile>
+
+ <RollingFile name="SlowLog" fileName="${FILE_PATH}/slow.log"
+ filePattern="${FILE_PATH}/slow-%d{yyyy-MM-dd}_%i.log.gz">
+ <PatternLayout pattern="%d [%t] %m%n"/>
+ <Policies>
+ <SizeBasedTriggeringPolicy size="20MB"/>
+ </Policies>
+ <DefaultRolloverStrategy max="100"/>
+ </RollingFile>
+ </Appenders>
+
+ <Loggers>
+ <Logger name="accesslog" level="INFO" additivity="false">
+ <AppenderRef ref="AccessLog"/>
+ </Logger>
+ <Logger
name="org.apache.servicecomb.metrics.core.publish.DefaultLogPublisher"
level="INFO" additivity="false">
+ <AppenderRef ref="MetricsLog"/>
+ </Logger>
+ <Logger
name="org.apache.servicecomb.metrics.core.publish.SlowInvocationLogger"
level="INFO" additivity="false">
+ <AppenderRef ref="SlowLog"/>
+ </Logger>
+
+ <Root level="INFO">
+ <AppenderRef ref="Console"/>
+ </Root>
+ </Loggers>
+</Configuration>
diff --git a/java-chassis-benchmark/basic-1.3.x/gateway/pom.xml
b/java-chassis-benchmark/basic-1.3.x/gateway/pom.xml
new file mode 100644
index 0000000..06999b4
--- /dev/null
+++ b/java-chassis-benchmark/basic-1.3.x/gateway/pom.xml
@@ -0,0 +1,55 @@
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one or more
+ ~ contributor license agreements. See the NOTICE file distributed with
+ ~ this work for additional information regarding copyright ownership.
+ ~ The ASF licenses this file to You under the Apache License, Version 2.0
+ ~ (the "License"); you may not use this file except in compliance with
+ ~ the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.servicecomb.benchmark</groupId>
+ <artifactId>basic-application-1.3.x</artifactId>
+ <version>3.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>basic-gateway-1.3.x</artifactId>
+ <packaging>jar</packaging>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.servicecomb</groupId>
+ <artifactId>spring-boot2-starter-standalone</artifactId>
+ <exclusions>
+ <exclusion>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-starter-logging</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.servicecomb</groupId>
+ <artifactId>edge-core</artifactId>
+ </dependency>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-maven-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+</project>
\ No newline at end of file
diff --git
a/java-chassis-benchmark/test-tool/src/main/java/org/apache/servicecomb/samples/TestToolApplication.java
b/java-chassis-benchmark/basic-1.3.x/gateway/src/main/java/org/apache/servicecomb/samples/GatewayApplication.java
similarity index 79%
copy from
java-chassis-benchmark/test-tool/src/main/java/org/apache/servicecomb/samples/TestToolApplication.java
copy to
java-chassis-benchmark/basic-1.3.x/gateway/src/main/java/org/apache/servicecomb/samples/GatewayApplication.java
index df85396..53bb51d 100644
---
a/java-chassis-benchmark/test-tool/src/main/java/org/apache/servicecomb/samples/TestToolApplication.java
+++
b/java-chassis-benchmark/basic-1.3.x/gateway/src/main/java/org/apache/servicecomb/samples/GatewayApplication.java
@@ -17,28 +17,22 @@
package org.apache.servicecomb.samples;
-import org.apache.servicecomb.foundation.common.utils.BeanUtils;
+import org.apache.servicecomb.springboot2.starter.EnableServiceComb;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
@SpringBootApplication
-public class TestToolApplication {
+@EnableServiceComb
+public class GatewayApplication {
public static void main(String[] args) throws Exception {
try {
new SpringApplicationBuilder()
.web(WebApplicationType.NONE)
- .sources(TestToolApplication.class)
+ .sources(GatewayApplication.class)
.run(args);
-
- runTests();
} catch (Exception e) {
e.printStackTrace();
}
}
-
- private static void runTests() throws Exception {
- TestCaseService testCaseService = BeanUtils.getBean(TestCaseService.class);
- testCaseService.run(10, 1000, 0, 1);
- }
}
diff --git
a/java-chassis-benchmark/basic-2.8.x/gateway/src/main/resources/application.yml
b/java-chassis-benchmark/basic-1.3.x/gateway/src/main/resources/application.yml
similarity index 90%
copy from
java-chassis-benchmark/basic-2.8.x/gateway/src/main/resources/application.yml
copy to
java-chassis-benchmark/basic-1.3.x/gateway/src/main/resources/application.yml
index 79aff6f..bab3f8d 100644
---
a/java-chassis-benchmark/basic-2.8.x/gateway/src/main/resources/application.yml
+++
b/java-chassis-benchmark/basic-1.3.x/gateway/src/main/resources/application.yml
@@ -15,17 +15,19 @@
## See the License for the specific language governing permissions and
## limitations under the License.
## ---------------------------------------------------------------------------
-servicecomb:
- service:
- application: basic-application
- name: gateway
- version: 0.0.1
+APPLICATION_ID: basic-application
+
+service_description:
+ version: 0.0.1
+ name: gateway
+servicecomb:
rest:
address: 0.0.0.0:9090?sslEnabled=false
- registry:
- address: http://localhost:30100
+ service:
+ registry:
+ address: http://localhost:30100
http:
dispatcher:
diff --git
a/java-chassis-benchmark/basic-1.3.x/gateway/src/main/resources/log4j2.xml
b/java-chassis-benchmark/basic-1.3.x/gateway/src/main/resources/log4j2.xml
new file mode 100644
index 0000000..5d52009
--- /dev/null
+++ b/java-chassis-benchmark/basic-1.3.x/gateway/src/main/resources/log4j2.xml
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+ http://www.apache.org/licenses/LICENSE-2.0
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<Configuration>
+ <Properties>
+ <property name="FILE_PATH" value="./logs/gateway"/>
+ </Properties>
+
+ <Appenders>
+ <Console name="Console" target="SYSTEM_OUT">
+ <PatternLayout pattern="%d [%p][%t][%c:%L] %m%n"/>
+ </Console>
+
+ <RollingFile name="AccessLog" fileName="${FILE_PATH}/access.log"
+ filePattern="${FILE_PATH}/access-%d{yyyy-MM-dd}_%i.log.gz">
+ <PatternLayout pattern="%d [%t] %m%n"/>
+ <Policies>
+ <SizeBasedTriggeringPolicy size="20MB"/>
+ </Policies>
+ <DefaultRolloverStrategy max="100"/>
+ </RollingFile>
+
+ <RollingFile name="MetricsLog" fileName="${FILE_PATH}/metrics.log"
+ filePattern="${FILE_PATH}/metrics-%d{yyyy-MM-dd}_%i.log.gz">
+ <PatternLayout pattern="%d [%t] %m%n"/>
+ <Policies>
+ <SizeBasedTriggeringPolicy size="20MB"/>
+ </Policies>
+ <DefaultRolloverStrategy max="100"/>
+ </RollingFile>
+
+ <RollingFile name="SlowLog" fileName="${FILE_PATH}/slow.log"
+ filePattern="${FILE_PATH}/slow-%d{yyyy-MM-dd}_%i.log.gz">
+ <PatternLayout pattern="%d [%t] %m%n"/>
+ <Policies>
+ <SizeBasedTriggeringPolicy size="20MB"/>
+ </Policies>
+ <DefaultRolloverStrategy max="100"/>
+ </RollingFile>
+ </Appenders>
+
+ <Loggers>
+ <Logger name="accesslog" level="INFO" additivity="false">
+ <AppenderRef ref="AccessLog"/>
+ </Logger>
+ <Logger
name="org.apache.servicecomb.metrics.core.publish.DefaultLogPublisher"
level="INFO" additivity="false">
+ <AppenderRef ref="MetricsLog"/>
+ </Logger>
+ <Logger
name="org.apache.servicecomb.metrics.core.publish.SlowInvocationLogger"
level="INFO" additivity="false">
+ <AppenderRef ref="SlowLog"/>
+ </Logger>
+
+ <Root level="INFO">
+ <AppenderRef ref="Console"/>
+ </Root>
+ </Loggers>
+</Configuration>
diff --git a/java-chassis-benchmark/basic-1.3.x/pom.xml
b/java-chassis-benchmark/basic-1.3.x/pom.xml
new file mode 100644
index 0000000..36f866e
--- /dev/null
+++ b/java-chassis-benchmark/basic-1.3.x/pom.xml
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one or more
+ ~ contributor license agreements. See the NOTICE file distributed with
+ ~ this work for additional information regarding copyright ownership.
+ ~ The ASF licenses this file to You under the Apache License, Version 2.0
+ ~ (the "License"); you may not use this file except in compliance with
+ ~ the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.servicecomb.benchmark</groupId>
+ <artifactId>benchmark-parent</artifactId>
+ <version>3.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>basic-application-1.3.x</artifactId>
+ <packaging>pom</packaging>
+
+ <properties>
+ <servicecomb.version>1.3.11</servicecomb.version>
+ </properties>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.servicecomb</groupId>
+ <artifactId>java-chassis-dependencies-springboot2</artifactId>
+ <version>${servicecomb.version}</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.servicecomb.benchmark</groupId>
+ <artifactId>benchmark-common</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.servicecomb</groupId>
+ <artifactId>solution-basic</artifactId>
+ </dependency>
+ <!-- using log4j2 -->
+ <dependency>
+ <groupId>org.apache.logging.log4j</groupId>
+ <artifactId>log4j-slf4j-impl</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.logging.log4j</groupId>
+ <artifactId>log4j-api</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.logging.log4j</groupId>
+ <artifactId>log4j-core</artifactId>
+ </dependency>
+ </dependencies>
+
+ <modules>
+ <module>provider</module>
+ <module>consumer</module>
+ <module>gateway</module>
+ </modules>
+</project>
diff --git a/java-chassis-benchmark/basic-1.3.x/provider/pom.xml
b/java-chassis-benchmark/basic-1.3.x/provider/pom.xml
new file mode 100644
index 0000000..1c09e8b
--- /dev/null
+++ b/java-chassis-benchmark/basic-1.3.x/provider/pom.xml
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one or more
+ ~ contributor license agreements. See the NOTICE file distributed with
+ ~ this work for additional information regarding copyright ownership.
+ ~ The ASF licenses this file to You under the Apache License, Version 2.0
+ ~ (the "License"); you may not use this file except in compliance with
+ ~ the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.servicecomb.benchmark</groupId>
+ <artifactId>basic-application-1.3.x</artifactId>
+ <version>3.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>basic-provider-1.3.x</artifactId>
+ <packaging>jar</packaging>
+
+ <properties>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.servicecomb</groupId>
+ <artifactId>spring-boot2-starter-standalone</artifactId>
+ <exclusions>
+ <exclusion>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-starter-logging</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-maven-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+</project>
\ No newline at end of file
diff --git
a/java-chassis-benchmark/test-tool/src/main/java/org/apache/servicecomb/samples/TestToolApplication.java
b/java-chassis-benchmark/basic-1.3.x/provider/src/main/java/org/apache/servicecomb/samples/ProviderApplication.java
similarity index 79%
copy from
java-chassis-benchmark/test-tool/src/main/java/org/apache/servicecomb/samples/TestToolApplication.java
copy to
java-chassis-benchmark/basic-1.3.x/provider/src/main/java/org/apache/servicecomb/samples/ProviderApplication.java
index df85396..66f7e98 100644
---
a/java-chassis-benchmark/test-tool/src/main/java/org/apache/servicecomb/samples/TestToolApplication.java
+++
b/java-chassis-benchmark/basic-1.3.x/provider/src/main/java/org/apache/servicecomb/samples/ProviderApplication.java
@@ -17,28 +17,22 @@
package org.apache.servicecomb.samples;
-import org.apache.servicecomb.foundation.common.utils.BeanUtils;
+import org.apache.servicecomb.springboot2.starter.EnableServiceComb;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
@SpringBootApplication
-public class TestToolApplication {
+@EnableServiceComb
+public class ProviderApplication {
public static void main(String[] args) throws Exception {
try {
new SpringApplicationBuilder()
.web(WebApplicationType.NONE)
- .sources(TestToolApplication.class)
+ .sources(ProviderApplication.class)
.run(args);
-
- runTests();
} catch (Exception e) {
e.printStackTrace();
}
}
-
- private static void runTests() throws Exception {
- TestCaseService testCaseService = BeanUtils.getBean(TestCaseService.class);
- testCaseService.run(10, 1000, 0, 1);
- }
}
diff --git
a/java-chassis-benchmark/test-tool/src/main/java/org/apache/servicecomb/samples/TestToolApplication.java
b/java-chassis-benchmark/basic-1.3.x/provider/src/main/java/org/apache/servicecomb/samples/ProviderController.java
similarity index 52%
copy from
java-chassis-benchmark/test-tool/src/main/java/org/apache/servicecomb/samples/TestToolApplication.java
copy to
java-chassis-benchmark/basic-1.3.x/provider/src/main/java/org/apache/servicecomb/samples/ProviderController.java
index df85396..b956fa1 100644
---
a/java-chassis-benchmark/test-tool/src/main/java/org/apache/servicecomb/samples/TestToolApplication.java
+++
b/java-chassis-benchmark/basic-1.3.x/provider/src/main/java/org/apache/servicecomb/samples/ProviderController.java
@@ -17,28 +17,20 @@
package org.apache.servicecomb.samples;
-import org.apache.servicecomb.foundation.common.utils.BeanUtils;
-import org.springframework.boot.WebApplicationType;
-import org.springframework.boot.autoconfigure.SpringBootApplication;
-import org.springframework.boot.builder.SpringApplicationBuilder;
+import org.apache.servicecomb.provider.rest.common.RestSchema;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestHeader;
+import org.springframework.web.bind.annotation.RequestMapping;
-@SpringBootApplication
-public class TestToolApplication {
- public static void main(String[] args) throws Exception {
- try {
- new SpringApplicationBuilder()
- .web(WebApplicationType.NONE)
- .sources(TestToolApplication.class)
- .run(args);
-
- runTests();
- } catch (Exception e) {
- e.printStackTrace();
+@RestSchema(schemaId = "ProviderController")
+@RequestMapping(path = "/")
+public class ProviderController {
+ @PostMapping("/benchmark")
+ public DataModel sayHello(@RequestHeader("wait") int wait, @RequestBody
DataModel dataModel) throws Exception {
+ if (wait > 0) {
+ Thread.sleep(wait);
}
- }
-
- private static void runTests() throws Exception {
- TestCaseService testCaseService = BeanUtils.getBean(TestCaseService.class);
- testCaseService.run(10, 1000, 0, 1);
+ return dataModel;
}
}
diff --git
a/java-chassis-benchmark/basic-2.8.x/provider/src/main/resources/application.yml
b/java-chassis-benchmark/basic-1.3.x/provider/src/main/resources/application.yml
similarity index 87%
copy from
java-chassis-benchmark/basic-2.8.x/provider/src/main/resources/application.yml
copy to
java-chassis-benchmark/basic-1.3.x/provider/src/main/resources/application.yml
index 6069a38..4c1b42d 100644
---
a/java-chassis-benchmark/basic-2.8.x/provider/src/main/resources/application.yml
+++
b/java-chassis-benchmark/basic-1.3.x/provider/src/main/resources/application.yml
@@ -15,12 +15,15 @@
## See the License for the specific language governing permissions and
## limitations under the License.
## ---------------------------------------------------------------------------
+APPLICATION_ID: basic-application
+
+service_description:
+ version: 0.0.1
+ name: provider
+
servicecomb:
- service:
- application: basic-application
- name: provider
- version: 0.0.1
rest:
address: 0.0.0.0:9093
- registry:
- address: http://localhost:30100
+ service:
+ registry:
+ address: http://localhost:30100
diff --git
a/java-chassis-benchmark/basic-1.3.x/provider/src/main/resources/log4j2.xml
b/java-chassis-benchmark/basic-1.3.x/provider/src/main/resources/log4j2.xml
new file mode 100644
index 0000000..ed57eea
--- /dev/null
+++ b/java-chassis-benchmark/basic-1.3.x/provider/src/main/resources/log4j2.xml
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+ http://www.apache.org/licenses/LICENSE-2.0
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<Configuration>
+ <Properties>
+ <property name="FILE_PATH" value="./logs/provider"/>
+ </Properties>
+
+ <Appenders>
+ <Console name="Console" target="SYSTEM_OUT">
+ <PatternLayout pattern="%d [%p][%t][%c:%L] %m%n"/>
+ </Console>
+
+ <RollingFile name="AccessLog" fileName="${FILE_PATH}/access.log"
+ filePattern="${FILE_PATH}/access-%d{yyyy-MM-dd}_%i.log.gz">
+ <PatternLayout pattern="%d [%t] %m%n"/>
+ <Policies>
+ <SizeBasedTriggeringPolicy size="20MB"/>
+ </Policies>
+ <DefaultRolloverStrategy max="100"/>
+ </RollingFile>
+
+ <RollingFile name="MetricsLog" fileName="${FILE_PATH}/metrics.log"
+ filePattern="${FILE_PATH}/metrics-%d{yyyy-MM-dd}_%i.log.gz">
+ <PatternLayout pattern="%d [%t] %m%n"/>
+ <Policies>
+ <SizeBasedTriggeringPolicy size="20MB"/>
+ </Policies>
+ <DefaultRolloverStrategy max="100"/>
+ </RollingFile>
+
+ <RollingFile name="SlowLog" fileName="${FILE_PATH}/slow.log"
+ filePattern="${FILE_PATH}/slow-%d{yyyy-MM-dd}_%i.log.gz">
+ <PatternLayout pattern="%d [%t] %m%n"/>
+ <Policies>
+ <SizeBasedTriggeringPolicy size="20MB"/>
+ </Policies>
+ <DefaultRolloverStrategy max="100"/>
+ </RollingFile>
+ </Appenders>
+
+ <Loggers>
+ <Logger name="accesslog" level="INFO" additivity="false">
+ <AppenderRef ref="AccessLog"/>
+ </Logger>
+ <Logger
name="org.apache.servicecomb.metrics.core.publish.DefaultLogPublisher"
level="INFO" additivity="false">
+ <AppenderRef ref="MetricsLog"/>
+ </Logger>
+ <Logger
name="org.apache.servicecomb.metrics.core.publish.SlowInvocationLogger"
level="INFO" additivity="false">
+ <AppenderRef ref="SlowLog"/>
+ </Logger>
+
+ <Root level="INFO">
+ <AppenderRef ref="Console"/>
+ </Root>
+ </Loggers>
+</Configuration>
diff --git
a/java-chassis-benchmark/basic-2.8.x/consumer/src/main/resources/application.yml
b/java-chassis-benchmark/basic-2.8.x/consumer/src/main/resources/application.yml
index 5401829..301f2c0 100644
---
a/java-chassis-benchmark/basic-2.8.x/consumer/src/main/resources/application.yml
+++
b/java-chassis-benchmark/basic-2.8.x/consumer/src/main/resources/application.yml
@@ -26,3 +26,6 @@ servicecomb:
registry:
address: http://localhost:30100
+
+ accesslog:
+ enabled: false
diff --git
a/java-chassis-benchmark/basic-2.8.x/gateway/src/main/resources/application.yml
b/java-chassis-benchmark/basic-2.8.x/gateway/src/main/resources/application.yml
index 79aff6f..22b5fd5 100644
---
a/java-chassis-benchmark/basic-2.8.x/gateway/src/main/resources/application.yml
+++
b/java-chassis-benchmark/basic-2.8.x/gateway/src/main/resources/application.yml
@@ -27,6 +27,9 @@ servicecomb:
registry:
address: http://localhost:30100
+ accesslog:
+ enabled: false
+
http:
dispatcher:
edge:
diff --git
a/java-chassis-benchmark/basic-2.8.x/provider/src/main/resources/application.yml
b/java-chassis-benchmark/basic-2.8.x/provider/src/main/resources/application.yml
index 6069a38..e9ad3ad 100644
---
a/java-chassis-benchmark/basic-2.8.x/provider/src/main/resources/application.yml
+++
b/java-chassis-benchmark/basic-2.8.x/provider/src/main/resources/application.yml
@@ -24,3 +24,5 @@ servicecomb:
address: 0.0.0.0:9093
registry:
address: http://localhost:30100
+ accesslog:
+ enabled: false
diff --git
a/java-chassis-benchmark/basic-3.0.x/consumer/src/main/resources/application.yml
b/java-chassis-benchmark/basic-3.0.x/consumer/src/main/resources/application.yml
index 597b7df..2883bd8 100644
---
a/java-chassis-benchmark/basic-3.0.x/consumer/src/main/resources/application.yml
+++
b/java-chassis-benchmark/basic-3.0.x/consumer/src/main/resources/application.yml
@@ -24,6 +24,9 @@ servicecomb:
rest:
address: 0.0.0.0:9092
+ accesslog:
+ enabled: false
+
spring:
profiles:
active: servicecomb # 注册中心类型:servicecomb 或者 nacos
diff --git
a/java-chassis-benchmark/basic-3.0.x/gateway/src/main/resources/application.yml
b/java-chassis-benchmark/basic-3.0.x/gateway/src/main/resources/application.yml
index 6d5a5be..65c9633 100644
---
a/java-chassis-benchmark/basic-3.0.x/gateway/src/main/resources/application.yml
+++
b/java-chassis-benchmark/basic-3.0.x/gateway/src/main/resources/application.yml
@@ -24,6 +24,9 @@ servicecomb:
rest:
address: 0.0.0.0:9090?sslEnabled=false
+ accesslog:
+ enabled: false
+
http:
dispatcher:
edge:
diff --git
a/java-chassis-benchmark/basic-3.0.x/provider/src/main/resources/application.yml
b/java-chassis-benchmark/basic-3.0.x/provider/src/main/resources/application.yml
index 939720b..cd8b9d4 100644
---
a/java-chassis-benchmark/basic-3.0.x/provider/src/main/resources/application.yml
+++
b/java-chassis-benchmark/basic-3.0.x/provider/src/main/resources/application.yml
@@ -23,6 +23,9 @@ servicecomb:
rest:
address: 0.0.0.0:9093
+ accesslog:
+ enabled: false
+
spring:
profiles:
active: servicecomb # 注册中心类型:servicecomb 或者 nacos
diff --git a/java-chassis-benchmark/pom.xml b/java-chassis-benchmark/pom.xml
index fdd4655..c6448af 100644
--- a/java-chassis-benchmark/pom.xml
+++ b/java-chassis-benchmark/pom.xml
@@ -29,10 +29,15 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven-compiler-plugin.version>3.11.0</maven-compiler-plugin.version>
<spring-boot-maven-plugin.version>3.1.3</spring-boot-maven-plugin.version>
+ <!--
+ <maven-compiler-plugin.version>3.11.0</maven-compiler-plugin.version>
+
<spring-boot-maven-plugin.version>2.1.6.RELEASE</spring-boot-maven-plugin.version>
-->
</properties>
<modules>
<module>common</module>
+ <!--
+ <module>basic-1.3.x</module> -->
<module>basic-2.8.x</module>
<module>basic-3.0.x</module>
<module>test-tool</module>
@@ -51,6 +56,16 @@
<target>17</target>
</configuration>
</plugin>
+ <!-- <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>${maven-compiler-plugin.version}</version>
+ <configuration>
+ <compilerArgument>-parameters</compilerArgument>
+ <source>8</source>
+ <target>8</target>
+ </configuration>
+ </plugin>-->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
diff --git
a/java-chassis-benchmark/test-tool/src/main/java/org/apache/servicecomb/samples/TestCaseService.java
b/java-chassis-benchmark/test-tool/src/main/java/org/apache/servicecomb/samples/TestCaseService.java
index b44cee3..4ff9055 100644
---
a/java-chassis-benchmark/test-tool/src/main/java/org/apache/servicecomb/samples/TestCaseService.java
+++
b/java-chassis-benchmark/test-tool/src/main/java/org/apache/servicecomb/samples/TestCaseService.java
@@ -73,7 +73,8 @@ public class TestCaseService {
}
public void run(int threadCount, int countPerThread, int wait, int dataSize)
throws Exception {
- System.out.println("Preparing run
=======================================");
+ System.out.println(String.format("Preparing run ====%s/%s/%s/%s====",
threadCount,
+ countPerThread, wait, dataSize));
DataModel dataModel = DataModel.create("test-case", dataSize);
ExecutorService executor = Executors.newFixedThreadPool(threadCount, new
ThreadFactory() {
diff --git
a/java-chassis-benchmark/test-tool/src/main/java/org/apache/servicecomb/samples/TestToolApplication.java
b/java-chassis-benchmark/test-tool/src/main/java/org/apache/servicecomb/samples/TestToolApplication.java
index df85396..cc272f9 100644
---
a/java-chassis-benchmark/test-tool/src/main/java/org/apache/servicecomb/samples/TestToolApplication.java
+++
b/java-chassis-benchmark/test-tool/src/main/java/org/apache/servicecomb/samples/TestToolApplication.java
@@ -39,6 +39,18 @@ public class TestToolApplication {
private static void runTests() throws Exception {
TestCaseService testCaseService = BeanUtils.getBean(TestCaseService.class);
+ // prepare
testCaseService.run(10, 1000, 0, 1);
+
+ // start tests
+ testCaseService.run(10, 1000, 0, 1);
+ testCaseService.run(10, 1000, 0, 100);
+ testCaseService.run(10, 1000, 0, 1000);
+ testCaseService.run(10, 1000, 10, 1);
+ testCaseService.run(10, 1000, 10, 100);
+ testCaseService.run(10, 1000, 10, 1000);
+ testCaseService.run(10, 1000, 100, 1);
+ testCaseService.run(10, 1000, 100, 100);
+ testCaseService.run(10, 1000, 100, 1000);
}
}