Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Subscription Wrapper from Observable.subscribe #1243

Merged
merged 2 commits into from
May 22, 2014

Conversation

benjchristensen
Copy link
Member

Remove Subscription Wrapper from Observable.subscribe

Performance increase from 7.7m to 8.8m ops/second

Before:

Benchmark (size) Mode Samples Mean Mean error Units
r.u.PerfTransforms.mapTransformation 1 thrpt 5 7714453.187 362218.633 ops/s
r.u.PerfTransforms.mapTransformation 1 thrpt 5 7527144.767 497816.471 ops/s

After:

Benchmark (size) Mode Samples Mean Mean error Units
r.u.PerfTransforms.mapTransformation 1 thrpt 5 8853534.333 183494.242 ops/s
r.u.PerfTransforms.mapTransformation 1 thrpt 5 8806958.403 452595.219 ops/s

Test can be run using:

../gradlew benchmarks '-Pjmh=-f 1 -tu s -bm thrpt -wi 5 -i 5 -r 5 -prof GC .*PerfTransforms.mapTransformation*'

Performance increase from 7.7m to 8.8m ops/second

Before:

Benchmark                              (size)   Mode   Samples         Mean   Mean error    Units
r.u.PerfTransforms.mapTransformation        1  thrpt         5  7714453.187   362218.633    ops/s
r.u.PerfTransforms.mapTransformation        1  thrpt         5  7527144.767   497816.471    ops/s

After:

Benchmark                              (size)   Mode   Samples         Mean   Mean error    Units
r.u.PerfTransforms.mapTransformation        1  thrpt         5  8853534.333   183494.242    ops/s
r.u.PerfTransforms.mapTransformation        1  thrpt         5  8806958.403   452595.219    ops/s
benjchristensen added a commit that referenced this pull request May 22, 2014
Remove Subscription Wrapper from Observable.subscribe
@benjchristensen benjchristensen merged commit a2f4782 into ReactiveX:master May 22, 2014
@benjchristensen benjchristensen deleted the perf branch May 22, 2014 04:25
@benjchristensen benjchristensen mentioned this pull request Jun 1, 2014
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.

1 participant