Hacker News new | ask | show | jobs
by oabm 4035 days ago
I'm just generally not a big fan of "X is some percent slower than Y" stats, because I find them counterintuitive. However, in this case I think something is wrong.

Rendering:

  jsblocks: 700ms
  React:    950ms (35% slower)
  Angular: 2200ms (310% slower)

Doing some maths:

  700ms + (700ms * 0.35) = 945ms
  700ms + (700ms * 3.10) = 2870ms
Looks like they got a little carried away when calculating Angular's rendering speed. Same thing with the "Syncing Changes" stats.

Edit: formatting

1 comments

You are absolutely correct. It actually is an error. Thanks I will fix it.
Also, please add 'track by $index' to the Angular example.. might be a suprise for you.

(Makes Angular outperform both frameworks)

Are you sure you are getting correct results. Theoretically Angular can't be faster than both libraries because it does not implement diffing algorithm.
You can try yourself, the samples are there.

And it does, just not Virtual DOM