Skip to content

Instantly share code, notes, and snippets.

View PublishOnOverrideTckTest.java
package servicetalk;
import org.reactivestreams.Publisher;
import org.reactivestreams.tck.*;
import org.testng.annotations.*;
import io.servicetalk.concurrent.api.*;
import io.servicetalk.concurrent.reactivestreams.ReactiveStreamsAdapters;
@Test
View RepeatBench.kt
package hu.akarnokd.kotlin
import io.reactivex.rxjava3.core.Completable
import io.reactivex.rxjava3.schedulers.Schedulers
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
object RepeatBench {
@JvmStatic
@akarnokd
akarnokd / Reaktive_benchmark.txt
Last active Dec 11, 2019
Reaktive benchmark suite i7 8700, Windows 10 x64, JDk 8u231
View Reaktive_benchmark.txt
Benchmark Mode Cnt Score Error Units
c.b.r.b.j.concatmap.ConcatMapFlow.emitter avgt 10 78,889 ▒ 0,141 ms/op
c.b.r.b.j.concatmap.ConcatMapReaktive.emitter avgt 10 91,053 ▒ 0,372 ms/op
c.b.r.b.j.concatmap.ConcatMapRxJava2.emitter avgt 10 77,697 ▒ 0,270 ms/op
c.b.r.b.j.concatmap.ConcatMapFlow.iterable avgt 10 108,507 ▒ 0,380 ms/op
c.b.r.b.j.concatmap.ConcatMapReaktive.iterable avgt 10 76,537 ▒ 0,185 ms/op
c.b.r.b.j.concatmap.ConcatMapRxJava2.iterable avgt 10 93,363 ▒ 0,319 ms/op
c.b.r.b.j.filtermap.FilterMapFlow.emitter avgt 10 99,514 ▒ 2,216 ms/op
View RetryWhenDelay.java
import java.util.concurrent.TimeUnit;
import org.junit.Test;
import io.reactivex.Observable;
public class RetryWhenDelay {
@Test
public void test() throws Exception {
@akarnokd
akarnokd / log.txt
Created Oct 7, 2019
bnd + gradle 5.6.2+ failure
View log.txt
C:\Users\akarnokd\git\RxJava3_BuildMatrix>gradlew --version
------------------------------------------------------------
Gradle 5.6.2
------------------------------------------------------------
Build time: 2019-09-05 16:13:54 UTC
Revision: 55a5e53d855db8fc7b0e494412fc624051a8e781
Kotlin: 1.3.41
View Scrabble-0810.txt
11-internal+0-shenandoah-jdk11-sobornost-builds.shipilev.net-shenandoah-jdk11-b21-shenandoah-jdk-1125
====
Parallel GC
CyclopsReactOpt sample 100 50.857 ± 0.424 ms/op
Direct sample 804 6.242 ± 0.149 ms/op
GuavaOpt sample 152 33.540 ± 1.766 ms/op
I4JOpt sample 158 32.235 ± 0.135 ms/op
IEOpt sample 267 18.871 ± 0.072 ms/op
View SampleTest.java
import java.util.concurrent.TimeUnit;
import org.junit.Test;
import io.reactivex.Observable;
public class SampleTest {
@Test
public void test() throws Exception {
View ScrabbleDirect729.txt
Benchmark Mode Cnt Score Error Units
ShakespearePlaysScrabbleWithDirect.measureThroughput sample 8822 5,666 � 0,021 ms/op
ShakespearePlaysScrabbleWithDirect.measureThroughput:measureThroughput�p0.00 sample 4,948 ms/op
ShakespearePlaysScrabbleWithDirect.measureThroughput:measureThroughput�p0.50 sample 5,546 ms/op
ShakespearePlaysScrabbleWithDirect.measureThroughput:measureThroughput�p0.90 sample 6,291 ms/op
ShakespearePlaysScrabbleWithDirect.measureThroughput:measureThroughput�p0.95 sample 6,578 ms/op
ShakespearePlaysScrabbleWithDirect.measureThroughput:measureThroughput�p0.99 sample 8,344 ms/op
ShakespearePlaysScrabbleWithDirect.measureThroughput:measureThroughput�p0.999 sample 10,576 ms/op
ShakespearePlaysScrabbleWithDirect.measureThroughput:measureThroughput�p0.9999 sample 17
View Rx.NET_Release_4_1_0_old.md

NuGet: 4.1.0

>PM Install-Package System.Reactive -Version 4.1.0

Version 4.1.0 is an enhancement version over 4.0.0 by keeping the public API and extending it additively as well as having significant internal changes for better performance via less allocation, less indirection and less locking on the existing components. Note that the codebase now uses C# 7.1 language features.

API enhancements

  • Pull 486: Add the RetryWhen operator.
  • Pull 497: Add the IConnectableObservable.AutoConnect() operator.
  • Pull 536: Add the RepeatWhen operator.
View subjects_comparison.txt
BenchmarkDotNet=v0.10.14, OS=Windows 10.0.17134
Intel Core i7-4790 CPU 3.60GHz (Haswell), 1 CPU, 8 logical and 4 physical cores
Frequency=3513591 Hz, Resolution=284.6091 ns, Timer=TSC
[Host] : .NET Framework 4.6.2 (CLR 4.0.30319.42000), 64bit RyuJIT-v4.7.3110.0
DefaultJob : .NET Framework 4.6.2 (CLR 4.0.30319.42000), 64bit RyuJIT-v4.7.3110.0
#### Current
Method | N | M | Mean | Error | StdDev | Median | Gen 0 | Gen 1 | Gen 2 | Allocated |
-------------------- |-------- |-- |------------------:|------------------:|------------------:|------------------:|----------:|----------:|----------:|----------:|