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.
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:Then start a compare script (
58
is the target relative performance of the first example comparing with the second):It currently has a 10% error that is accounted when running the tests.