Skip to content

Commit

Permalink
Merge pull request #22 from htynkn/upgrade-dubbo
Browse files Browse the repository at this point in the history
update dubbo to latest version
  • Loading branch information
hank-whu authored Feb 3, 2019
2 parents ef27f7d + 33d877c commit 88538cd
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 23 deletions.
4 changes: 2 additions & 2 deletions dubbo-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<maven.compiler.target>1.9</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<version.benchmark-base>round-4</version.benchmark-base>
<version.dubbo>2.6.0</version.dubbo>
<version.dubbo>2.7.0</version.dubbo>
</properties>

<dependencies>
Expand All @@ -25,7 +25,7 @@
<version>${version.benchmark-base}</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo</artifactId>
<version>${version.dubbo}</version>
</dependency>
Expand Down
3 changes: 0 additions & 3 deletions dubbo-client/src/main/java/benchmark/rpc/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
import org.openjdk.jmh.runner.options.TimeValue;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.alibaba.dubbo.config.ProtocolConfig;

import benchmark.bean.Page;
import benchmark.bean.User;
import benchmark.service.UserService;
Expand All @@ -43,7 +41,6 @@ protected UserService getUserService() {
@TearDown
public void close() throws IOException {
context.close();
ProtocolConfig.destroyAll();
}

@Benchmark
Expand Down
11 changes: 5 additions & 6 deletions dubbo-kryo-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
<maven.compiler.target>1.9</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<version.benchmark-base>round-4</version.benchmark-base>
<version.dubbo>2.6.0</version.dubbo>
<version.javakaffee>0.42</version.javakaffee>
<version.dubbo>2.7.0</version.dubbo>
</properties>

<dependencies>
Expand All @@ -26,14 +25,14 @@
<version>${version.benchmark-base}</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo</artifactId>
<version>${version.dubbo}</version>
</dependency>
<dependency>
<groupId>de.javakaffee</groupId>
<artifactId>kryo-serializers</artifactId>
<version>${version.javakaffee}</version>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-serialization-kryo</artifactId>
<version>${version.dubbo}</version>
</dependency>

<dependency>
Expand Down
3 changes: 0 additions & 3 deletions dubbo-kryo-client/src/main/java/benchmark/rpc/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
import org.openjdk.jmh.runner.options.TimeValue;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.alibaba.dubbo.config.ProtocolConfig;

import benchmark.bean.Page;
import benchmark.bean.User;
import benchmark.service.UserService;
Expand All @@ -43,7 +41,6 @@ protected UserService getUserService() {
@TearDown
public void close() throws IOException {
context.close();
ProtocolConfig.destroyAll();
}

@Benchmark
Expand Down
2 changes: 1 addition & 1 deletion dubbo-kryo-client/src/main/resources/consumer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<!-- 生成远程服务代理,可以和本地bean一样使用demoService -->
<dubbo:reference id="userService" check="false"
interface="benchmark.service.UserService" url="dubbo://benchmark-server:8080?serialization=kryo" />
interface="benchmark.service.UserService" url="dubbo://benchmark-server:8080" />

<!-- dubbo://benchmark-rpc:8080?serialization=kryo -->

Expand Down
11 changes: 5 additions & 6 deletions dubbo-kryo-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
<maven.compiler.target>1.9</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<version.benchmark-base>round-4</version.benchmark-base>
<version.dubbo>2.6.0</version.dubbo>
<version.javakaffee>0.42</version.javakaffee>
<version.dubbo>2.7.0</version.dubbo>
</properties>

<dependencies>
Expand All @@ -26,14 +25,14 @@
<version>${version.benchmark-base}</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo</artifactId>
<version>${version.dubbo}</version>
</dependency>
<dependency>
<groupId>de.javakaffee</groupId>
<artifactId>kryo-serializers</artifactId>
<version>${version.javakaffee}</version>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-serialization-kryo</artifactId>
<version>${version.dubbo}</version>
</dependency>

<dependency>
Expand Down
4 changes: 2 additions & 2 deletions dubbo-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<maven.compiler.target>1.9</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<version.benchmark-base>round-4</version.benchmark-base>
<version.dubbo>2.6.0</version.dubbo>
<version.dubbo>2.7.0</version.dubbo>
</properties>

<dependencies>
Expand All @@ -25,7 +25,7 @@
<version>${version.benchmark-base}</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo</artifactId>
<version>${version.dubbo}</version>
</dependency>
Expand Down

0 comments on commit 88538cd

Please sign in to comment.