ReactiveX / ReactiveX/RxJava

4.x: parallel performs poorly with 10+ parallelism

Open
#6,931 3 comments 2 reactions 1 assignee View on GitHub

@akarnokd is already working on this.

Since Mar 11, 2020.

4.x Performance
Dominant language
Java
Stars
48.2k
Forks
7.6k
Avg merge
39m
Merged PRs (30d)
11

Description

For some reason, the parallel Scrabble benchmark performs poorly when the parallelism level is 10+, for example, on my i7 8700 CPU (6 cores/12 threads):

image

However, my older i7 4770K processor (4 cores/8 threads) shows no such performance degradation. Neither does the reactive-streams-commons implementation (the parent of RxJava's parallel implementation) with parallelism=12.
Correction: The Rsc benchmark was pinned to 8 threads and actually shows a similar inefficiency with 10+.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.