This repo is a test-bed of console perf analysis. Each test is broken out into a different branch with its own README.md analysing the results. The tests use React 16.
This test batch adds 100 messages every 500ms. This is a useful way to see how React's performance regresses over time.
<Console>
<Message />
<Message />
<Message />
<Message />
</Console>
- View the branch and analysis
git checkout batch-add-interval
npm start
This test takes the list of messages and tries to minimize the O(n)
characteristics of updating the list of messages.
- View the branch and analysis
git checkout message-batcher-component
npm start
It looks like:
<Console>
<MessageBatcher>
<MessageBatch>
<Message />
<Message />
<Message />
<Message />
</MessageBatch>
<MessageBatch>
<Message />
<Message />
<Message />
<Message />
</MessageBatch>
<MessageBatch>
<Message />
</MessageBatch>
</MessageBatcher>
</Console>
- View the branch and analysis
git checkout binary-tree
npm start
<Console>
<MessageTree>
<MessageTree>
<Message />
<Message />
</MessageTree>
<MessageTree>
<Message />
<Message />
</MessageTree>
</MessageTree>
<MessageTree>
<MessageTree>
<Message />
null
</MessageTree>
null
</MessageTree>
</Console>