This repo contains the code for the benchmark used in my talk "Speed Up Your React Server With These 6 Weird Tricks".
In the talk, I presented a small ReactJS benchmark, and I edited the code in stages to improve the benchmark performance. All 7 versions of the code are present in this repo as different branches, from stage-0 (no optimizations at all) to stage-6 (all optimizations from the talk applied). Note that each stage includes the tricks from the previous stages.
git clone https://github.com/aickin/react-server-perf-tricks.git
npm install
Checkout the stage you want to run and then type npm run benchmark
. For example, if you want to run stage 3 (Babel Transforms):
git checkout stage-3
npm run benchmark