Hacker News new | ask | show | jobs
by spooningtamarin 3841 days ago
Benchmark showing that the composition is exactly the same in a for loop as unrolled functions would be nice.
1 comments

The proposed Ranges TS has some nice benchmarks: https://ericniebler.github.io/std/wg21/D4128.html.

See Appendix 1 and 4.

(It's not exactly what you're asking for, but showcases that such claims often hold true in practice.)