Mojang / ore-ui

💎 Building blocks to construct game UIs using web tech.
https://react-facet.mojang.com/
MIT License
409 stars 18 forks source link

Imports benchmarking examples from main repo #3

Closed pirelenito closed 3 years ago

pirelenito commented 3 years ago

This PR brings a collection of test screens we've developed to help compare the native React State implementation versus our custom Facet renderer.

Automated performance check

I'm also doing an attempt at automating running a comparison between two implementations. The numbers I'm getting are not 100% complete (I'm missing some data while parsing the trace files), but it is probably a good start for us to continuously evolve.

To try this draft implementation, go to the examples\benchmarking folder and build the examples:

yarn build

Then start a compare script (58 is the target relative performance of the first example comparing with the second):

yarn compare listMemoFacet listMemoState 58

It currently has a 10% error that is accounted when running the tests.