Description
I was very interested in seeing how fast Riot was compared to React based on the intro docs.
So I put together these simple demos to help me learn and compare.
10k item list with reverse button. After you click the button, you'll see the time it took to reverse and finish rendering. (Actually, in a separate issue, I don't understand why you have to click the button twice on the Riot version before the timing text appears.)
React: http://jsfiddle.net/brianmfranklin/w674Lv7p/
Riot2: http://jsfiddle.net/brianmfranklin/j05ukz2r/
On my MacBook Pro, I consistently get about 2500 ms for Riot, and only 250-350ms for React.
I thought maybe this was a quirk of how I was having to measure the timing. But it DOES seem to actually take longer to do the re-render.
Is this expected? Or are there more optimizations to do?