You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make JMH executor threads look like event loop threads (#14444)
Motivation:
Our buffer allocators make specific optimisations for event loop
threads. Thus it makes sense that our benchmark executors look as much
like event loops as possible, to trigger those optimisations.
Modification:
Make sure that JMH executor threads add themselves to the
`ThreadExecutorMap` so that they look like event loop threads.
Result:
The various `ByteBufAllocator*Benchmarks` show improved performance
because they now go through event-loop optimised code paths.
When needed, it's still possible to disable this behavior by disabling
the custom harness executor. That functionality has been part of our
custom JMH harness for a long time.
0 commit comments