Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions benchmarks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,19 @@
2. From the iOS folder, run `pod install`.
3. From the root folder, run `yarn ios` or `yarn android`.

## Enable new architecture
## Enable old architecture

The Benchmark app uses React Native's New Architecture by default. However, you may need to switch to the Old Architecture to compare performance between the two systems or reproduce bugs that are specific to legacy environments.

### iOS

```
RCT_NEW_ARCH_ENABLED=1 pod install
RCT_NEW_ARCH_ENABLED=0 pod install
```

### Android

Set `newArchEnabled=true` in `benchmarks/android/gradle.properties`.
Set `newArchEnabled=false` in `benchmarks/android/gradle.properties`.

## ENV config

Expand Down
2 changes: 1 addition & 1 deletion benchmarks/android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
# your application. You should enable this flag either if you want
# to write custom TurboModules/Fabric components OR use libraries that
# are providing them.
newArchEnabled=false
newArchEnabled=true

# Use this property to enable or disable the Hermes JS engine.
# If set to false, you will be using JSC instead.
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/scripts/build-ios-benchmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function build_ios_app {

echo export NODE_BINARY=$(command -v node) > ${ROOT}/ios/.xcode.env
rm Podfile.lock || true
pod install --repo-update
RCT_NEW_ARCH_ENABLED=1 pod install --repo-update

# Build & Archive
LOG_PATH="${XCODEBUILD_LOG_PATH:-logs/xcodebuild_full_output_benchmark_runner.log}"
Expand Down
Loading