I came across jsblock yesterday on Hacker News. They had a nice performance comparison test case set comparing jsblocks with Angular and React. It made me curious to see how the small library we use (Weya.coffee) compares in performance with these.
I came across jsblock yesterday on Hacker News. They had a nice performance comparison test case set comparing jsblocks with Angular and React. It made me curious to see how the small library we use (Weya.coffee) compares in performance with these.
I ran the tests on Chrome broswer on a Macbook Air (1.6Ghz i5, 2GB). I have not altered test cases provided on jsblock, and have added test cases for Weya for Rendering and Syncing Changes., The results on Safari are not accurate in syncing-changes test case, because jsblock test case use setTimeout(0)
to resync which is called before html is actually rendered while the Weya test case use requestAnimationFrame
which waits till it's rendered.
Library | Time (ms) | Bar (shorter is better) |
---|---|---|
Weya.coffee | 404 | ==== |
jsblocks | 801 | ======== |
React | 1065 | ========== |
Angular | 2432 | ======================== |
Library | Time (ms) | Bar (shorter is better) |
---|---|---|
Weya.coffee | 1593 | ======== |
jsblocks | 2035 | ========== |
React | 2781 | ============== |
Angular | 8081 | ======================================== |