react-native-windows icon indicating copy to clipboard operation
react-native-windows copied to clipboard

Establish perf baseline comparison (C# vs C++)

Open kmelmon opened this issue 7 years ago • 4 comments

Gather some baseline perf numbers for both C++ and C# implementation and compare. C++ should outperform C#.

kmelmon avatar Mar 05 '19 22:03 kmelmon

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

rozele avatar Mar 06 '19 10:03 rozele

Any interest in comparing performance to a regular XAML UWP (C++ or C#)? Ideally this would be even faster 🔥🔥

stecrain avatar Mar 06 '19 17:03 stecrain

Ideally we should have one "app" with a lot of UI that gets implemented in multiple ways:

  1. RNWCS
  2. RNWCPP
  3. C# XAML Markup
  4. C# Xaml APIs
  5. C# XamlDirect

Then we do a bunch of perf tests.

jonthysell avatar Apr 30 '19 18:04 jonthysell

This work currently in jonthysell:perfcompare.

jonthysell avatar May 03 '19 23:05 jonthysell