MCPcopy Index your code
hub / github.com/ReactiveX/RxJava / setup

Method setup

src/jmh/java/io/reactivex/rxjava3/core/ReducePerf.java:47–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45 }
46
47 @Setup
48 public void setup() {
49 Integer[] array = new Integer[times];
50 Arrays.fill(array, 777);
51
52 obsSingle = Observable.fromArray(array).reduce(0, this);
53
54 obsMaybe = Observable.fromArray(array).reduce(this);
55
56 flowSingle = Flowable.fromArray(array).reduce(0, this);
57
58 flowMaybe = Flowable.fromArray(array).reduce(this);
59 }
60
61 @Benchmark
62 public void obsSingle(Blackhole bh) {

Callers

nothing calls this directly

Calls 3

fromArrayMethod · 0.95
fromArrayMethod · 0.95
reduceMethod · 0.45

Tested by

no test coverage detected