Skip to content

Reimplement zio/fs2 backends without dependencies#73

Merged
ghostdogpr merged 7 commits into
mainfrom
native_backends
May 20, 2026
Merged

Reimplement zio/fs2 backends without dependencies#73
ghostdogpr merged 7 commits into
mainfrom
native_backends

Conversation

@ghostdogpr
Copy link
Copy Markdown
Owner

The performance difference is quite noticeable for the ZIO backend.

  ┌──────────────────────────┬───────────┬─────────┬─────────┬──────────┬─────────┬────────────────┐
  │         backend          │ avg req/s │ avg p50 │ avg p90 │ avg CPU% │ avg Mem │ req/s per CPU% │
  ├──────────────────────────┼───────────┼─────────┼─────────┼──────────┼─────────┼────────────────┤
  │ proteus_ox               │ 182,190   │ 3.36ms  │ 6.72ms  │ 367%     │ 261 MiB │ 497            │
  ├──────────────────────────┼───────────┼─────────┼─────────┼──────────┼─────────┼────────────────┤
  │ proteus_zio              │ 170,427   │ 3.91ms  │ 7.10ms  │ 381%     │ 335 MiB │ 447            │
  ├──────────────────────────┼───────────┼─────────┼─────────┼──────────┼─────────┼────────────────┤
  │ proteus_fs2              │ 145,123   │ 5.19ms  │ 9.83ms  │ 406%     │ 282 MiB │ 357            │
  ├──────────────────────────┼───────────┼─────────┼─────────┼──────────┼─────────┼────────────────┤
  │ scala_fs2 (raw fs2-grpc) │ 143,689   │ 5.52ms  │ 10.88ms │ 408%     │ 289 MiB │ 352            │
  ├──────────────────────────┼───────────┼─────────┼─────────┼──────────┼─────────┼────────────────┤
  │ scala_zio (raw zio-grpc) │ 121,750   │ 6.83ms  │ 13.58ms │ 402%     │ 415 MiB │ 303            │
  └──────────────────────────┴───────────┴─────────┴─────────┴──────────┴─────────┴────────────────┘

@He-Pin
Copy link
Copy Markdown

He-Pin commented May 20, 2026

@ghostdogpr
Copy link
Copy Markdown
Owner Author

https://github.com/apache/pekko-grpc/releases/tag/v2.0.0-M1 add this?

My grpc implementation is based on grpc-java, but akka/pekko have their own implementation of the gRPC protocol, so I can't support it easily.

@ghostdogpr ghostdogpr merged commit 16fceec into main May 20, 2026
3 checks passed
@ghostdogpr ghostdogpr deleted the native_backends branch May 20, 2026 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants