Re:ES6 Performance
by fenomas on Friday July 03, 2015 @09:43PM
(#9828802)
I don't think that would go far enough. Consider: even if all the functions returned something, a clever compiler might inline the hot function calls, and might then see that most of the argument checks are unnecessary, and eliminate them. Which would mean it's gotten rid of precisely the code that's being benchmarked!
In short, writing JS microbenchmarks that actually test what they claim to test is quite hard.
In short, writing JS microbenchmarks that actually test what they claim to test is quite hard.