/grpc-perf-check

Comparison of gRPC performance by language.

Primary LanguageTypeScript

gRPCの速度比較(Go, Rust, Python)

構成

フロントエンド

  • Typescript

バックエンド

  • Go
  • Rust
  • Python

proto ファイル生成

Typescript

$ npm run codegen

Go

$ bash proto.sh

Rust

cargo buildで自動的に生成される

Python

$ python3 -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. ./proto/pf.proto

サーバー起動

Go

$ go run main.go

Rust

$ cargo run

Python

$ python server.py

クライアントプログラム実行

Typescript

$ npm run main