mathiasbynens / jsperf.com

jsPerf.com source code
http://jsperf.com/
Other
473 stars 56 forks source link

Add DCE recommendation to FAQ #246

Closed gsnedders closed 8 years ago

gsnedders commented 8 years ago

We should really recommend some way for people to avoid their entire test loop from getting dead-code eliminated by a sufficiently smart compiler (and for some tests compilers definitely are sufficiently smart!). Probably just by storing an array of values on the global object.

jdalton commented 8 years ago

@mathiasbynens has done some great talks on creating benchmarks. I think we'll just reference those.