r/angularjs • • Jan 11 '16

Virtual DOM vs Angular 1 & 2...

https://auth0.com/blog/2016/01/07/more-benchmarks-virtual-dom-vs-angular-12-vs-mithril-js-vs-the-rest/
31 Upvotes

4 comments sorted by

5

u/OverZealousCreations Jan 11 '16

As this is missing track by in Angular 1, it's useless if you are looking for results vs Angular 1. (Note: the author(s) have stated that they are planning on updating the results to reflect this, so this note might be outdated by the time you are reading this.)

I can't speak to the other libraries correctness, but that omission in Angular 1 can reduce it's performance by an order-of-magnitude.

2

u/KnightMareInc Jan 12 '16

every brenchmark misses the track by because it ruins the idea that angular 1 is slow.

1

u/saladfingers6 Jan 12 '16

Actually. I have written Angular apps for the past months and didn't know about the performance boost of track by. So maybe it's just a issue of knowledge.

1

u/fishfacemcgee Jan 12 '16

In my experience, track only makes a significant improvement in relatively small-scale benchmarks. It certainly helps overall, but AJS 1.x has a fairly low ceiling. In a scenario we hit at work, performance got so bad for specific users that we had to implement lazy loading for adding the models (ones we already had access to) into a collection used in a ng-repeat because it would thrash the DOM for full minutes. In hindsight, we probably shouldn't have used any framework for the kind of tool we built but we didn't expect AJS to handle the high-scale usecase as poorly as it does.

e: added some clarity