Do we really have zero-cost abstraction? Let's test!
make test_looping
If you only want to run a benchmark for one compiler:
make test_looping.ldc
Or any of the tests available:
test_looping
- simple iteration test between manual loop and range APItest_save
- tests performance when returning a range (common for search algorithms)test_extremum
- different specializations ofstd.algorithm.searching.extremum
test_pow
- floating-point power calculationtest_powi
- integer power calculation
make all