Created
March 2, 2017 20:09
-
-
Save brianegan/9f3f8ad5281cbd1385f3ee0ecde6299b to your computer and use it in GitHub Desktop.
A couple memory / process tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:rxdart/rxdart.dart'; | |
import 'package:test/test.dart'; | |
void main() { | |
final int count = 10000000; | |
final List<ExtraWrapper> observables = new List<ExtraWrapper>(count); | |
for (int i = 0; i < count; i++) { | |
observables[i] = new ExtraWrapper(new Observable<int>.just(1).call(onData: (_) {})); | |
} | |
} | |
class ExtraWrapper { | |
final Observable<int> observable; | |
ExtraWrapper(this.observable); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment