gregtatum / console-perf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Console Perf

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.

Batch add messages on an interval.

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>

<MessageBatcher> component

This test takes the list of messages and tries to minimize the O(n) characteristics of updating the list of messages.

It looks like:

<Console>
  <MessageBatcher>
    <MessageBatch>
      <Message />
      <Message />
      <Message />
      <Message />
    </MessageBatch>
    <MessageBatch>
      <Message />
      <Message />
      <Message />
      <Message />
    </MessageBatch>
    <MessageBatch>
      <Message />
    </MessageBatch>
  </MessageBatcher>
</Console>

Binary Message Tree

<Console>
  <MessageTree>
    <MessageTree>
        <Message />
        <Message />
    </MessageTree>
    <MessageTree>
        <Message />
        <Message />
    </MessageTree>
  </MessageTree>
  <MessageTree>
    <MessageTree>
        <Message />
        null
    </MessageTree>
    null
  </MessageTree>
</Console>

About