tree: 481db03591a8b053f5a80eb5a2b96f8de3b0a167 [path history] [tgz]
  1. src/
  2. buf.gen.yaml
  3. package.json
  4. README.md
  5. report.mjs
  6. tsconfig.json
packages/dubbo-web-bench/README.md

Code size comparison

This is a simple code size comparison between Dubbo-Web and gRPC-web.

We are generating code for the module buf.build/bufbuild/eliza once with protoc-gen-grpc-web, once with protoc-gen-apache-dubbo-es. Then we bundle a client for the service buf.connect.demo.eliza.v1.ElizaService with esbuild, minify the bundle, and compress it like a web server would usually do.

code generatorbundle sizeminifiedcompressed
dubbo112,976 b49,590 b13,282 b
grpc-web414,906 b301,127 b53,279 b