Hacker News new | ask | show | jobs
by swyx 1328 days ago
how is it a correction? the main controversy was the 10x and 700x faster thing... the 0.01s thing was just a typo really
1 comments

From Evan You:

> There were number rounding issues in the original numbers for the 1k component case - Turbopack's 15ms was rounded down to 0.01s while Vite's 87ms was rounded up to 0.09s. This further got marketed as a 10x advantage when the original numbers were close to 6x.

I guess they 'typo-ed' Vite's numbers as well.

https://github.com/yyx990803/vite-vs-next-turbo-hmr/discussi...

`0.015.toFixed(2) === "0.01"`, and `0.087.toFixed(2) === "0.09"`
At this level of detail it _is_ super misleading however to say "a 10x improvement" whilst in reality it's more like 6x