Ask HN: Can calc() be faster than static %

https://news.ycombinator.com/item?id=10035203
by batjaa • 11 years ago
1 1 11 years ago

I just made a little test to compare how slow calc() is comparing to an assigned % width.

But my test would show that calc() is much more faster. I can't believe it and think I made a mistake somewhere.

If you have the time please checkout and point where I made a mistake. If there's no mistake I would say calc() is truly much faster.

git: https://github.com/batjaa/compare-calc

Related Stories

Loading related stories...

Source preview

news.ycombinator.com