React Native packager or Haul ?
An experiment to determine the performance characteristics of the stock React Native packages vs Webpack based Haul.
To run all the test cases under
src/cases, clone this repo, run
npm install and then
npm test. To view detailed logs for the tests, ensure that you set an environment variable
The results are available in
_results.json. The tests can be run multiple times to aggregate the results in the json file.
- Download this repo
- Install node dependencies using
- To get the transform time for React Native app, run
react-native start --resetCache.
- To see transform time for Haul, run
haul start --platform ios.
These show the first transform times for each packager. To see how they react to changes, change
App.js file. Note that for React Native packager to trigger a re-transform, you may need to fetch the bundle again using