Shouldn't a for loop which loops 10 time have a greater runtime than a for loop with 5 loops?
If so, how come am I getting the same result in both cases??
Maybe fibonacci() ends so quickly that chrono::system_clock::now() doesn't have enough precision. Maybe the compiler noticed that fibonacci() doesn't have any side effects and its return value is discarded, so it decided to simply not call it.
I've tested it by printing the result, and so no of the values gets discarded.
Precision might swell be the reason, until i tried a ratio of 1,100000000, and it still gave me results 1*10000000 and 0.