Skip to content

Commit 93bd190

Browse files
Performance comparison
… numbers from my machine. Can’t fully explain the increases in performance.
1 parent 028d189 commit 93bd190

File tree

5 files changed

+47
-1
lines changed

5 files changed

+47
-1
lines changed

rxjava-core/src/perf/java/rx/operators/OperatorFromIterablePerformance.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,15 @@ public void remove() {
119119
* Run: 12 - 8,256,288 ops/sec
120120
* Run: 13 - 8,139,703 ops/sec
121121
* Run: 14 - 8,011,023 ops/sec
122+
*
123+
* ... after v0.17 work:
124+
*
125+
* Run: 10 - 31,296,553 ops/sec
126+
* Run: 11 - 30,080,435 ops/sec
127+
* Run: 12 - 31,886,941 ops/sec
128+
* Run: 13 - 32,281,807 ops/sec
129+
* Run: 14 - 33,519,028 ops/sec
130+
*
122131
*/
123132
public long timeTenLongs() {
124133

rxjava-core/src/perf/java/rx/operators/OperatorMapPerformance.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ public void call() {
3333
* Run: 12 - 11,655,527 ops/sec
3434
* Run: 13 - 11,528,440 ops/sec
3535
* Run: 14 - 11,321,181 ops/sec
36+
*
37+
* ... after v0.17 work:
38+
*
39+
* Run: 10 - 17,674,464 ops/sec
40+
* Run: 11 - 17,890,239 ops/sec
41+
* Run: 12 - 17,919,155 ops/sec
42+
* Run: 13 - 16,356,974 ops/sec
43+
* Run: 14 - 16,723,414 ops/sec
3644
*/
3745
public long timeMapPlusOne() {
3846

rxjava-core/src/perf/java/rx/operators/OperatorMergePerformance.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ public void call() {
3434
* Run: 12 - 34,768,096 ops/sec
3535
* Run: 13 - 32,376,499 ops/sec
3636
* Run: 14 - 33,166,835 ops/sec
37+
*
38+
* ... after v0.17 work:
39+
*
40+
* Run: 10 - 45,945,747 ops/sec
41+
* Run: 11 - 46,342,209 ops/sec
42+
* Run: 12 - 44,493,090 ops/sec
43+
* Run: 13 - 44,999,640 ops/sec
44+
* Run: 14 - 47,389,771 ops/sec
3745
*/
3846
public long timeRepetitionsEmissionSynchronous() {
3947

rxjava-core/src/perf/java/rx/operators/OperatorTakePerformance.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ public void call() {
3232
* Run: 12 - 7,783,276 ops/sec
3333
* Run: 13 - 8,435,373 ops/sec
3434
* Run: 14 - 7,894,454 ops/sec
35+
*
36+
* ... after v0.17 work:
37+
*
38+
* Run: 10 - 9,524,154 ops/sec
39+
* Run: 11 - 9,527,330 ops/sec
40+
* Run: 12 - 9,510,006 ops/sec
41+
* Run: 13 - 9,543,714 ops/sec
42+
* Run: 14 - 9,467,383 ops/sec
3543
*/
3644
public long timeTake5() {
3745

rxjava-core/src/perf/java/rx/operators/OperatorZipPerformance.java

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static void main(String args[]) {
1717
@Override
1818
public void call() {
1919
spt.timeZipAandBwithSingleItems();
20-
// spt.timeZipAandBwith100Items();
20+
// spt.timeZipAandBwith100Items();
2121
}
2222
});
2323
} catch (Exception e) {
@@ -34,6 +34,14 @@ public void call() {
3434
* Run: 12 - 1,420,459 ops/sec
3535
* Run: 13 - 1,409,877 ops/sec
3636
* Run: 14 - 1,426,019 ops/sec
37+
*
38+
* ... after v0.17 work (still old implementation of zip):
39+
*
40+
* Run: 10 - 1,202,371 ops/sec
41+
* Run: 11 - 1,204,806 ops/sec
42+
* Run: 12 - 1,196,630 ops/sec
43+
* Run: 13 - 1,206,332 ops/sec
44+
* Run: 14 - 1,206,169 ops/sec
3745
*/
3846
public long timeZipAandBwithSingleItems() {
3947

@@ -64,6 +72,11 @@ public Integer call(Integer t1, Integer t2) {
6472
* Run: 0 - 30,698 ops/sec
6573
* Run: 1 - 31,061 ops/sec
6674
*
75+
* ... after v0.17 work (still old implementation of zip):
76+
*
77+
* Run: 0 - 40,048 ops/sec
78+
* Run: 1 - 40,165 ops/sec
79+
*
6780
*/
6881
public long timeZipAandBwith100Items() {
6982

0 commit comments

Comments
 (0)