Skip to content

Evaluation of communication protocol performance # 通信协议(工具)性能评估

Notifications You must be signed in to change notification settings

zizdlp/eval_protocol

Repository files navigation

eval_protocol

Evaluation of communication protocol performance 通信协议(工具)性能评估

评估环境配置

测试使用docker,基于ubuntu的镜像,运行如下命令,启动环境(需要按照docker)

bash env.sh # or run `make env`

依赖安装

# you need to install bazel, see below how to install it
apt-get update
apt-get install openssl
apt-get install libssl-dev
openssl version

评估内容

数据传输场景,多次的发送一定规模的数据(25000字节),评估其耗时。

  • 评估grpc 同步传输(unary)
  • 评估grpc 异步传输(unary)
  • 评估socket 单连接
  • 评估httplib post
  • 评估workflow post

如何评估

make build
make benchmark

proxy

export https_proxy="http://127.0.0.1:1080"
export http_proxy="http://127.0.0.1:1080"

eval

测试环境macbook pro docker

=== socket;        port:50011;loop:1000;length:25000;time:127976us ===
=== workflow sync; port:50011;loop:1000;length:25000;time:581556us ===
=== workflow async;port:50011;loop:1000;length:25000;time:75762us ===
=== grpc sync;     port:50011;loop:1000;length:25000;time:722472us ===
=== grpc async;    port:50011;loop:1000;length:25000;time:169693us ===

bazel install

wget  https://github.com/bazelbuild/bazel/releases/download/6.1.1/bazel-6.1.1-installer-linux-x86_64.sh
sudo bash bazel-6.1.1-installer-linux-x86_64.sh
which bazel

About

Evaluation of communication protocol performance # 通信协议(工具)性能评估

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published