Test | Time (Microseconds) |
---|---|
ValueNotifier | 0.14619362615225495 |
StateNotifier | 0.6242255 |
Cubit | 1.2855485 |
StreamController | 1.3412715 |
macOS Mac Mini - 3.2 GHz 6-Core Intel Core i7, running under Flutter Release Mode
These benchmarks attempt to compare performance of different versions of the observer pattern in Flutter. Each test emits a single value on each call and the listener uses the value to make a simple assignment call.
Disclaimer: no claims are made about the correctness of the comparisons. Please post any corrections or other feedback here.