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 export DEBUG='hvrn:*'
.
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
npm install
- Run
npm test
- Run
cd tmp/react_native_app
- 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 curl http://localhost:8081/index.ios.bundle