> If the value was in your L1 cache the difference in access time is 100 ns vs 1 ms which is an order of magnitude faster.
I see this mistake all the time, even in print! It's millis -> micros -> nanos, so...that's a lot more than a single order of magnitude.