There was a similar thread recently. You may find some tips there.
Some low-hanging fruit to improve perf would be:
- Raise log level in prod to
:warn
to suppress logging each request. - If you’re testing a REST endpoint, make sure it goes through the
:api
pipeline, and not the:browser
one. - Build an OTP release and bench against that
Also, check your cpu usage while testing. If all your CPUs are not constantly near 100% then you may have some bottleneck.