Establish perf baseline comparison (C# vs C++)
Gather some baseline perf numbers for both C++ and C# implementation and compare. C++ should outperform C#.
FYI - we have some ETW events sprinkled throughout the C# repo. They are based on the Systrace events used on Android.
E.g., if you're measuring startup, we have e.g.:
- an event that measures time to create view managers: https://github.com/Microsoft/react-native-windows/blob/master/ReactWindows/ReactNative.Shared/ReactInstanceManager.cs#L474
- an event that measures time to invoke a JS function: https://github.com/Microsoft/react-native-windows/blob/master/ReactWindows/ReactNative.Shared/Bridge/ReactInstance.cs#L154
- an event that measures time to invoke a native module: https://github.com/Microsoft/react-native-windows/blob/master/ReactWindows/ReactNative.Shared/Bridge/NativeModuleRegistry.cs#L253
Here's the LoggingChannel info: https://github.com/Microsoft/react-native-windows/blob/master/ReactWindows/ReactNative/Tracing/Tracer.cs#L33
Any interest in comparing performance to a regular XAML UWP (C++ or C#)? Ideally this would be even faster 🔥🔥
Ideally we should have one "app" with a lot of UI that gets implemented in multiple ways:
- RNWCS
- RNWCPP
- C# XAML Markup
- C# Xaml APIs
- C# XamlDirect
Then we do a bunch of perf tests.
This work currently in jonthysell:perfcompare.