flutter/dev/benchmarks/platform_channels_benchmarks
Greg Spencer ab2b0851a2
Add smoke tests for all the examples, fix 17 broken examples. (#89021)
This adds a smoke test for every single API example. It also fixes 17 tests that had bugs in them, or were otherwise broken, and even fixes one actual bug in the framework, and one limitation in the framework.

The bug in the framework is that NetworkImage's _loadAsync method had await response.drain<List<int>>();, but if the response is null, it will throw a cryptic exception saying that Null can't be assigned to List<int>. The fix was just to use await response.drain<void>(); instead.

The limitation is that RelativePositionedTransition takes an Animation<Rect> rect parameter, and if you want to use a RectTween with it, the value emitted there is Rect?, and one of the examples was just casting from Animation<Rect> to Animation<Rect?>, which is invalid, so I modified RelativePositionedTransition to take a Rect? and just use Rect.zero if the rect is null.
2021-09-28 09:32:06 -07:00
..
android/app/src/main/kotlin/com/example/platform_channels_benchmarks Started using direct ByteBuffers for our performance tests (#83371) 2021-06-02 13:50:58 -07:00
ios/Runner Made the android platform channel benchmarks comparable to iOS (#83110) 2021-05-24 10:45:49 -07:00
lib migrate platform channels benchmarks (#84066) 2021-06-07 16:49:03 -07:00
.metadata Added performance benchmarks for platform channels (#81414) 2021-05-07 10:24:03 -07:00
pubspec.yaml Add smoke tests for all the examples, fix 17 broken examples. (#89021) 2021-09-28 09:32:06 -07:00
README.md Added performance benchmarks for platform channels (#81414) 2021-05-07 10:24:03 -07:00

platform_channels_benchmarks

The harness for running performance benchmark tests for Platform Channels.

If you want to run these benchmarks outside of devicelab you need to first run: flutter create --platforms="ios,android" --no-overwrite .