zio-http icon indicating copy to clipboard operation
zio-http copied to clipboard

Introduce benchmark for ZIO HTTP API

Open jdegoes opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe.

zio.http.api has no benchmark. A variety of benchmarks should be added so that optimization may proceed in a data-driven way.

Describe the solution you'd like

  • [x] A benchmark that tests simple request/response of small data
  • [ ] A benchmark that tests simple request/response of large data
  • [x] A benchmark that tests dispatch to a large number of similar routes (benefits from radix tree)
  • [ ] A benchmark that tests performance of unhappy path (no matches)
  • [ ] A benchmark that tests performance of unhappy path (malformed data)

Ideally, each benchmark would come with a version for ZIO HTTP API, and another version for an equivalent in the space (e.g. Tapir on Akka HTTP).

Describe alternatives you've considered

None.

jdegoes avatar Sep 19 '22 21:09 jdegoes

@adamgfraser and I are taking this

kitlangton avatar Sep 20 '22 18:09 kitlangton

🙏

jdegoes avatar Sep 21 '22 03:09 jdegoes