Coder Social home page Coder Social logo

dubbo-benchmark's Introduction

Dubbo Benchmark

Build Status

This project focuses on benchmarking and profiling dubbo framework with the combination of different serialization and transporter options. The code and the idea behinds it is inspired by RPC Benchmark.

How To Run Benchmark

Clone this project onto your desktop, then

  • Start the target server first, for example:
./benchmark.sh dubbo-kryo-server
  • Start the corresponding client, for example:
./benchmark.sh dubbo-kryo-client
  • If you want run dubbo-go benchmark, use the script benchmark-go.sh, for example:
./benchmark-go.sh dubbo-go-triple-server
./benchmark-go.sh dubbo-go-triple-client

#You can use -h to see the configurable parameters, for example:
./benchmark-go.sh dubbo-go-triple-client -h

How to Run Profiling

  • Start the target server in profiling mode, for example:
./benchmark.sh -m profiling dubbo-kryo-server
  • Start the corresponding client, for example:
./benchmark.sh dubbo-kryo-client

Specify hostname, port and output file for service

./benchmark.sh -s [hostname|ip address] -p port -f output

dubbo-benchmark's People

Contributors

albumenj avatar alexstocks avatar beiwei30 avatar chickenlj avatar codingsinger avatar coolicev avatar dependabot[bot] avatar dkisser avatar earthchen avatar htynkn avatar icodening avatar lovepoem avatar songxiaosheng avatar wxbty avatar zonghaishang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dubbo-benchmark's Issues

No such extension gson for serialization/org.apache.dubbo.common.serialize.Serialization error

i run ./benchmark.sh dubbo-kryo-server will show error as follow in branch

Exception in thread "main" java.lang.IllegalStateException: No such extension gson for serialization/org.apache.dubbo.common.serialize.Serialization
at org.apache.dubbo.config.utils.ConfigValidationUtils.checkMultiExtension(ConfigValidationUtils.java:680)
at org.apache.dubbo.config.utils.ConfigValidationUtils.checkMultiExtension(ConfigValidationUtils.java:658)
at org.apache.dubbo.config.utils.ConfigValidationUtils.validateProtocolConfig(ConfigValidationUtils.java:574)
at org.apache.dubbo.config.utils.DefaultConfigValidator.validate(DefaultConfigValidator.java:37)
at org.apache.dubbo.config.context.AbstractConfigManager.checkDefaultAndValidateConfigs(AbstractConfigManager.java:588)
at org.apache.dubbo.config.context.ConfigManager.checkConfigs(ConfigManager.java:280)
at org.apache.dubbo.config.context.ConfigManager.loadConfigs(ConfigManager.java:261)
at org.apache.dubbo.config.deploy.DefaultApplicationDeployer.loadApplicationConfigs(DefaultApplicationDeployer.java:243)
at or

[Dubbo 3.0] Support benchmark test of Dubbo 3.0

Dubbo 3.0 will release in June 2021.

As far as now, if I change the config dubbo.version to 3.0.x directly, the tests will throw exceptions.

I have found these problems.

1) package org.apache.dubbo.common.serialize.protobuf.support does not exist

ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project benchmark-base: Compilation failure: Compilation failure:
[ERROR] /Users/plusman/Desktop/Learning/dubbo-group/dubbo-benchmark/benchmark-base/build/generated/source/proto/main/java/org/apache/dubbo/benchmark/
bean/UserServiceDubbo.java:[18,55] package org.apache.dubbo.common.serialize.protobuf.support does not exist
[ERROR] /Users/plusman/Desktop/Learning/dubbo-group/dubbo-benchmark/benchmark-base/build/generated/source/proto/main/java/org/apache/dubbo/benchmark/bean/
UserServiceDubbo.java:[20,55] package org.apache.dubbo.common.serialize.protobuf.support does not exist

2)Dubbo3.x only supports a few serialization protocols.

As far as now, it only supports:

  • hessian2
  • jdk (Java Serialzation)

to be continued...

Pressure testing tools included in dubbo ci tools

At present, there are some multithreading scenarios that are easily overlooked. To ensure the stability of Dubbo, it is considered to include pressure testing tools in continuous CI and do many threading and performance testing tools

Failed to execute goal org.xolstice.maven.plugins:protobuf-maven-plugin:0.6.1:compile

When running the sh script, an error is reported.

[ERROR] Failed to execute goal org.xolstice.maven.plugins:protobuf-maven-plugin:0.6.1:compile (default) on project benchmark-base: Unable to resolve artifact: Missing:
[ERROR] ----------
[ERROR] 1) com.google.protobuf:protoc:exe:osx-aarch_64:3.7.1
[ERROR] 
[ERROR]   Try downloading the file manually from the project website.
[ERROR] 
[ERROR]   Then, install it using the command: 
[ERROR]       mvn install:install-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=3.7.1 -Dclassifier=osx-aarch_64 -Dpackaging=exe -Dfile=/path/to/file
[ERROR] 
[ERROR]   Alternatively, if you host your own repository you can deploy the file there: 
[ERROR]       mvn deploy:deploy-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=3.7.1 -Dclassifier=osx-aarch_64 -Dpackaging=exe -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.